common-header-lib 0.0.21 → 0.0.23

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.
Files changed (114) hide show
  1. package/README.md +330 -12
  2. package/assets/i18n/ar.json +25 -2
  3. package/assets/i18n/de.json +25 -2
  4. package/assets/i18n/en.json +26 -3
  5. package/assets/i18n/es.json +25 -2
  6. package/assets/i18n/fr.json +25 -2
  7. package/assets/i18n/hi.json +25 -2
  8. package/assets/i18n/ja.json +25 -2
  9. package/assets/i18n/ko.json +25 -2
  10. package/assets/images/APP035.svg +20 -0
  11. package/assets/images/APP036.svg +14 -0
  12. package/assets/images/check.svg +3 -3
  13. package/assets/images/copy-success.svg +4 -0
  14. package/assets/images/copy.svg +3 -3
  15. package/assets/images/download-blue.svg +3 -0
  16. package/assets/images/generate.svg +3 -0
  17. package/assets/images/regenerate.svg +3 -0
  18. package/fesm2022/common-header-lib.mjs +4370 -0
  19. package/fesm2022/common-header-lib.mjs.map +1 -0
  20. package/index.d.ts +664 -5
  21. package/package.json +20 -31
  22. package/src/assets/i18n/ar.json +25 -2
  23. package/src/assets/i18n/de.json +25 -2
  24. package/src/assets/i18n/en.json +26 -3
  25. package/src/assets/i18n/es.json +25 -2
  26. package/src/assets/i18n/fr.json +25 -2
  27. package/src/assets/i18n/hi.json +25 -2
  28. package/src/assets/i18n/ja.json +25 -2
  29. package/src/assets/i18n/ko.json +25 -2
  30. package/src/assets/images/APP035.svg +20 -0
  31. package/src/assets/images/APP036.svg +14 -0
  32. package/src/assets/images/check.svg +3 -3
  33. package/src/assets/images/copy-success.svg +4 -0
  34. package/src/assets/images/copy.svg +3 -3
  35. package/src/assets/images/download-blue.svg +3 -0
  36. package/src/assets/images/generate.svg +3 -0
  37. package/src/assets/images/regenerate.svg +3 -0
  38. package/assets/scss/_sidebar.scss +0 -257
  39. package/assets/scss/styles.scss +0 -577
  40. package/esm2020/common-header-lib.mjs +0 -5
  41. package/esm2020/lib/Validators/noSpaceAllowed.mjs +0 -16
  42. package/esm2020/lib/common-header-lib.component.mjs +0 -629
  43. package/esm2020/lib/common-header-lib.module.mjs +0 -178
  44. package/esm2020/lib/common-header-lib.service.mjs +0 -200
  45. package/esm2020/lib/components/confirm-dialog/confirm-dialog.component.mjs +0 -49
  46. package/esm2020/lib/components/general-configuration/general-configuration.component.mjs +0 -399
  47. package/esm2020/lib/components/general-configuration/landingpg-config/landingpg-config.component.mjs +0 -124
  48. package/esm2020/lib/components/general-configuration/timezone-configuration/timezone-configuration.component.mjs +0 -137
  49. package/esm2020/lib/components/grid-pagination/grid-pagination.component.mjs +0 -38
  50. package/esm2020/lib/components/ng-translation/ng-translation.component.mjs +0 -82
  51. package/esm2020/lib/components/no-service-my-access-pg/no-service-my-access-pg.component.mjs +0 -19
  52. package/esm2020/lib/components/notification-sidebar/notification-sidebar.component.mjs +0 -40
  53. package/esm2020/lib/components/side-popup/side-popup.component.mjs +0 -34
  54. package/esm2020/lib/components/user-mailbox/user-mailbox.component.mjs +0 -168
  55. package/esm2020/lib/components/user-sidebar/user-sidebar.component.mjs +0 -274
  56. package/esm2020/lib/components/viewpassword-popup/viewpassword-popup.component.mjs +0 -197
  57. package/esm2020/lib/model/data_model.mjs +0 -229
  58. package/esm2020/lib/pipes/custome-dateformat.pipe.mjs +0 -27
  59. package/esm2020/lib/pipes/date-diff.pipe.mjs +0 -55
  60. package/esm2020/lib/pipes/slice-to-two.pipe.mjs +0 -34
  61. package/esm2020/lib/services/EncrypDecryp_RSA.service.mjs +0 -100
  62. package/esm2020/lib/services/async-passwordcheck.service.mjs +0 -70
  63. package/esm2020/lib/services/cookie-storage-manager.service.mjs +0 -78
  64. package/esm2020/lib/services/encrpdata.service.mjs +0 -55
  65. package/esm2020/lib/services/encrydecrydata.service.mjs +0 -205
  66. package/esm2020/lib/services/event.service.mjs +0 -132
  67. package/esm2020/lib/services/http/http-common.service.mjs +0 -245
  68. package/esm2020/lib/services/http/http-general-config.service.mjs +0 -84
  69. package/esm2020/lib/services/rest-login-form.service.mjs +0 -294
  70. package/esm2020/lib/services/rest-signalr.service.mjs +0 -104
  71. package/esm2020/lib/services/storage.service.mjs +0 -33
  72. package/esm2020/lib/services/toast-msg.service.mjs +0 -101
  73. package/esm2020/lib/services/vapt-validation.service.mjs +0 -31
  74. package/esm2020/public-api.mjs +0 -13
  75. package/fesm2015/common-header-lib.mjs +0 -4206
  76. package/fesm2015/common-header-lib.mjs.map +0 -1
  77. package/fesm2020/common-header-lib.mjs +0 -4186
  78. package/fesm2020/common-header-lib.mjs.map +0 -1
  79. package/lib/Validators/noSpaceAllowed.d.ts +0 -2
  80. package/lib/common-header-lib.component.d.ts +0 -149
  81. package/lib/common-header-lib.module.d.ts +0 -56
  82. package/lib/common-header-lib.service.d.ts +0 -25
  83. package/lib/components/confirm-dialog/confirm-dialog.component.d.ts +0 -13
  84. package/lib/components/general-configuration/general-configuration.component.d.ts +0 -86
  85. package/lib/components/general-configuration/landingpg-config/landingpg-config.component.d.ts +0 -37
  86. package/lib/components/general-configuration/timezone-configuration/timezone-configuration.component.d.ts +0 -38
  87. package/lib/components/grid-pagination/grid-pagination.component.d.ts +0 -20
  88. package/lib/components/ng-translation/ng-translation.component.d.ts +0 -21
  89. package/lib/components/no-service-my-access-pg/no-service-my-access-pg.component.d.ts +0 -8
  90. package/lib/components/notification-sidebar/notification-sidebar.component.d.ts +0 -16
  91. package/lib/components/side-popup/side-popup.component.d.ts +0 -14
  92. package/lib/components/user-mailbox/user-mailbox.component.d.ts +0 -40
  93. package/lib/components/user-sidebar/user-sidebar.component.d.ts +0 -62
  94. package/lib/components/viewpassword-popup/viewpassword-popup.component.d.ts +0 -47
  95. package/lib/model/data_model.d.ts +0 -185
  96. package/lib/pipes/custome-dateformat.pipe.d.ts +0 -8
  97. package/lib/pipes/date-diff.pipe.d.ts +0 -9
  98. package/lib/pipes/slice-to-two.pipe.d.ts +0 -7
  99. package/lib/services/EncrypDecryp_RSA.service.d.ts +0 -15
  100. package/lib/services/async-passwordcheck.service.d.ts +0 -18
  101. package/lib/services/cookie-storage-manager.service.d.ts +0 -16
  102. package/lib/services/encrpdata.service.d.ts +0 -12
  103. package/lib/services/encrydecrydata.service.d.ts +0 -33
  104. package/lib/services/event.service.d.ts +0 -30
  105. package/lib/services/http/http-common.service.d.ts +0 -40
  106. package/lib/services/http/http-general-config.service.d.ts +0 -15
  107. package/lib/services/rest-login-form.service.d.ts +0 -39
  108. package/lib/services/rest-signalr.service.d.ts +0 -23
  109. package/lib/services/storage.service.d.ts +0 -11
  110. package/lib/services/toast-msg.service.d.ts +0 -23
  111. package/lib/services/vapt-validation.service.d.ts +0 -7
  112. package/public-api.d.ts +0 -8
  113. package/src/assets/scss/_sidebar.scss +0 -257
  114. package/src/assets/scss/styles.scss +0 -577
@@ -1,4206 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Injectable, EventEmitter, Component, Output, Input, Pipe, ViewEncapsulation, ViewChild, NgModule } from '@angular/core';
3
- import { map, catchError, debounceTime, take, switchMap, takeUntil, finalize } from 'rxjs/operators';
4
- import * as i1 from '@angular/common/http';
5
- import { HttpParams, HttpClientModule } from '@angular/common/http';
6
- import { throwError, BehaviorSubject, Subject, map as map$1, catchError as catchError$1, of, takeUntil as takeUntil$1, finalize as finalize$1, forkJoin } from 'rxjs';
7
- import { __awaiter } from 'tslib';
8
- import * as i10$2 from 'primeng/overlaypanel';
9
- import { OverlayPanel, OverlayPanelModule } from 'primeng/overlaypanel';
10
- import * as signalR from '@microsoft/signalr';
11
- import * as i1$1 from 'ngx-cookie-service';
12
- import * as i4 from '@ngx-translate/core';
13
- import { TranslateModule } from '@ngx-translate/core';
14
- import * as i1$2 from 'ngx-toastr';
15
- import * as i6 from '@angular/common';
16
- import { DatePipe, CommonModule } from '@angular/common';
17
- import * as i2 from '@angular/forms';
18
- import { FormGroup, Validators, ReactiveFormsModule } from '@angular/forms';
19
- import * as i8 from 'primeng/dropdown';
20
- import { DropdownModule } from 'primeng/dropdown';
21
- import * as i9 from 'primeng/api';
22
- import { ConfirmationService } from 'primeng/api';
23
- import * as i11 from 'primeng/badge';
24
- import { BadgeModule } from 'primeng/badge';
25
- import * as i10$1 from 'primeng/skeleton';
26
- import { SkeletonModule } from 'primeng/skeleton';
27
- import * as i1$3 from 'primeng/dynamicdialog';
28
- import { DialogService } from 'primeng/dynamicdialog';
29
- import * as CryptoJS from 'crypto-js';
30
- import JSEncrypt from 'jsencrypt';
31
- import { decode } from '@msgpack/msgpack';
32
- import * as bigintCryptoUtils from 'bigint-crypto-utils';
33
- import * as i13 from 'primeng/inputtext';
34
- import { InputTextModule } from 'primeng/inputtext';
35
- import * as i10 from 'primeng/button';
36
- import { ButtonModule } from 'primeng/button';
37
- import * as i3 from '@angular/router';
38
- import * as i9$1 from 'primeng/tooltip';
39
- import { TooltipModule } from 'primeng/tooltip';
40
- import * as i1$4 from 'primeng/dialog';
41
- import { DialogModule } from 'primeng/dialog';
42
- import * as i9$2 from 'primeng/table';
43
- import { TableModule } from 'primeng/table';
44
- import * as i1$5 from 'primeng/paginator';
45
- import { PaginatorModule } from 'primeng/paginator';
46
- import * as i2$1 from 'primeng/confirmdialog';
47
- import { ConfirmDialogModule } from 'primeng/confirmdialog';
48
- import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
49
-
50
- class GlobalConstants {
51
- }
52
- GlobalConstants.COOKIEDELETEVENT = 'd';
53
- GlobalConstants.ALLCOOKIEDELET = '-100';
54
- GlobalConstants.TimeForEncToken = 30;
55
- GlobalConstants.AgGridPaginationSize = 50;
56
- GlobalConstants.reconcileServiceLimit = 100;
57
- GlobalConstants.applicationName = 'Converged IAM';
58
- GlobalConstants.publicKey = '';
59
- GlobalConstants.PAMPluginURL = 'http://localhost:55755/';
60
- GlobalConstants.APPName = 'workspace';
61
- GlobalConstants.PlugInDownloadURL = 'https://hfarcon.arconnet.com/helppageui/';
62
- GlobalConstants.cipluginversion = '';
63
- GlobalConstants.localInstalledCIPluginVersion = ''; // to store installed CI plugin version
64
- GlobalConstants.PCI_DSS_Standard = false;
65
- GlobalConstants.TOKENTIME = 30;
66
- GlobalConstants.LOGOUTIMER = 60;
67
- GlobalConstants.PAGEROW = 10;
68
- GlobalConstants.CONFIGCONNECTORS = false;
69
- GlobalConstants.USERLANGUAGES = [
70
- { langKey: 'en', langName: 'English' },
71
- { langKey: 'hi', langName: 'हिन्दी' },
72
- { langKey: 'mr', langName: 'मराठी' },
73
- { langKey: 'ar', langName: 'العربية' },
74
- { langKey: 'fr', langName: 'Français' },
75
- { langKey: 'es', langName: 'Español' },
76
- { langKey: 'de', langName: 'Deutsch' },
77
- { langKey: 'ja', langName: '日本語' },
78
- { langKey: 'ko', langName: '한국어' },
79
- { langKey: 'zh', langName: '中文' },
80
- { langKey: 'ru', langName: 'Русский' },
81
- { langKey: 'pt', langName: 'Português' },
82
- { langKey: 'it', langName: 'Italiano' },
83
- { langKey: 'nl', langName: 'Nederlands' },
84
- { langKey: 'tr', langName: 'Türkçe' },
85
- { langKey: 'sv', langName: 'Svenska' },
86
- { langKey: 'pl', langName: 'Polski' },
87
- { langKey: 'th', langName: 'ไทย' },
88
- { langKey: 'vi', langName: 'Tiếng Việt' },
89
- ];
90
- GlobalConstants.USERFILTEREDLANGUAGES = [];
91
- GlobalConstants.DEFAULTLANG = { langKey: 'en', langName: 'English' };
92
- GlobalConstants.DEFAULTLANGKEY = 'en';
93
- GlobalConstants.DEFAULT_IMGPATH = 'assets/images/';
94
- GlobalConstants.DEFAULT_BGIMG = `${GlobalConstants.DEFAULT_IMGPATH}login-bg/default_bg.svg`;
95
- GlobalConstants.DEFAULT_LOGO = `${GlobalConstants.DEFAULT_IMGPATH}default_logo.svg`;
96
- GlobalConstants.IMG_CODE = 'data:image/png;base64,';
97
- GlobalConstants.DYNAMIC_LOGO = '';
98
- GlobalConstants.DYNAMIC_BGIMG = '';
99
- GlobalConstants.APP_VERSION = '';
100
- class LoggedInUserInfo {
101
- static setPrivateKeyFromBigInts(arr) {
102
- this.privateKey = arr.map((b) => b.toString()).join(',');
103
- }
104
- }
105
- LoggedInUserInfo.domainName = null;
106
- LoggedInUserInfo.domainId = 0;
107
- class RoutePaths {
108
- }
109
- RoutePaths.LOGINPG_PATH = 'login';
110
- RoutePaths.WINDOW_AUTH = 'domainauth';
111
- RoutePaths.OTHER_METHODS_PATH = 'othermethods';
112
- RoutePaths.MY_ACCESS_PATH = 'my-access';
113
- RoutePaths.FORGOT_PASSWORD_PATH = 'forgotpassword';
114
- RoutePaths.AUTH_STATUS_PATH = 'auth-status';
115
- RoutePaths.LOGOUT_PATH = 'logout';
116
- RoutePaths.PAGE_NOT_FOUND_PATH = 'page-not-found';
117
- RoutePaths.INTERNAL_SERVER_ERROR_PATH = 'internal-server-error';
118
- RoutePaths.ERROR_PATH = 'error';
119
- RoutePaths.AUTH_LOADING = 'session-verify';
120
- class errorMsg {
121
- }
122
- errorMsg.NOASSET = `No assets have been assigned to the user in the selected LOB. Please select a different LOB.`;
123
- errorMsg.NORECENTASSET = `No recently accessed Asset found.`;
124
- errorMsg.NOSEARCHRESULT = `We couldn't find any service matching your search within the chosen LOB. Try refining your keywords or choosing a different LOB for better results'`;
125
- errorMsg.NOMAILFOUND = `We couldn't find any mails assigned to you`;
126
- errorMsg.SERVERDOWN = `Something Went Wrong, Please Try Again later`;
127
- errorMsg.NOCIPLUGIN = `Install the CI Plugin or Contact Administrator`;
128
- errorMsg.CIPLUGINVERSIONISSUE = `Kindly Install latest version of CI Plugin`;
129
- errorMsg.ADMINMSG = `Kindly Contact Administrator`;
130
- errorMsg.PLUGINMSG = `Kindly check below link for downloadables.`;
131
- errorMsg.PAMPLUGINBTN = `Install the CI Plugin or Contact Administrator`;
132
- errorMsg.USERNOTFOUND = `Invalid User Details`;
133
- errorMsg.TIMEZONESUCCESS = `Time Zone Updated SuccessFully`;
134
- errorMsg.TIMEZONERROR = `Time Zone Updated Couldn't Update`;
135
- errorMsg.LOGOUTERROR = 'Logout Attempt Failed';
136
- errorMsg.ASSETSTATUS = 'Asset Under Maintenance';
137
- errorMsg.REFERENCEPOPUPTITLE = 'Reference Case ID for Accessing Asset';
138
- errorMsg.DICREDENTIALINFO = 'Digital Identity Credentials Updated Successfully';
139
- errorMsg.DICREDENTIALERROR = "Digital Identity Credentials Couldn't updated";
140
- errorMsg.PATHSUCCESS = 'Preference Path Updated SuccessFully';
141
- errorMsg.PATHERROR = "Preference Path Couldn't Update";
142
- errorMsg.USERCREDENIALERROR = 'Configure Credentials';
143
- errorMsg.CREDENIALERROR = 'Kindly Configure Credentials';
144
- errorMsg.ADMINCREDENIALERROR = 'The credentials have yet to be configured by the Admin';
145
- errorMsg.COMMONError = 'Something Went Wrong !';
146
- errorMsg.NODIGITALIDENTITES = 'There are no digital identities assigned. Kindly contact administrator.';
147
- errorMsg.SEARCHTEXT = 'Search Results';
148
- errorMsg.MFACONFIGUREERROR = 'MFA is not configured for the user, Please contact the system administrator';
149
- errorMsg.SESSIONIDERROR = 'Session Service ID not found';
150
- errorMsg.CHROMEEXTENSIONERROR = 'Kindly Install the CI Extension or Contact Administrator';
151
- errorMsg.WINDOW_DOMAIN_LOGINERR = 'Please wait, Domain Authentication is in progress for your login';
152
- errorMsg.LANDINGPGSUCCESS = `Landing Page Configured SuccessFully`;
153
- errorMsg.LANDINGPGERROR = `Landing Page Configuration Couldn't Update`;
154
- errorMsg.SCRIPTERROR = `Unexpected Script Detected`;
155
- class COOKIECONSTANT {
156
- }
157
- COOKIECONSTANT.LOBNAME = 'lobdata';
158
- COOKIECONSTANT.DOMAINAME = 'domainname';
159
- COOKIECONSTANT.DOMAINID = 'domainid';
160
- COOKIECONSTANT.USERDETAILS = 'UserDetail';
161
- COOKIECONSTANT.SESSIONID = 'userSessionId';
162
- COOKIECONSTANT.USERNAME = 'username';
163
- COOKIECONSTANT.USERID = 'userId';
164
- COOKIECONSTANT._AT = '_AT';
165
- COOKIECONSTANT._RT = '_RT';
166
- COOKIECONSTANT.USERDISPLAYNAME = 'userDisplayName';
167
- COOKIECONSTANT.ENCRYPTEDKEY = 'EncryptedKey';
168
- COOKIECONSTANT.MFASTATUS = 'MFAStatus';
169
- COOKIECONSTANT.EVENTNAME = 'Event';
170
- COOKIECONSTANT.MACHINEDETAILS = 'machinedetails';
171
- COOKIECONSTANT.COOKIEDELETEVENT = 'd';
172
- COOKIECONSTANT.COOKIECREATEEVENT = 'c';
173
- COOKIECONSTANT.COOKIEUPDATEEVENT = 'c';
174
- COOKIECONSTANT.ALLCOOKIEDELET = '-100';
175
- COOKIECONSTANT.NEWUSER = '003-NU-GEC';
176
- COOKIECONSTANT.UNLOCKACC = 'Unlock';
177
- COOKIECONSTANT.ERRORCODE = '001-SAC-GEC';
178
- COOKIECONSTANT.PUBLICCODE = '001-PUB-GEC';
179
- COOKIECONSTANT.USERLANG = 'lang';
180
- COOKIECONSTANT.MFATIMEOUT = 180000; //3 mins
181
- COOKIECONSTANT.MFASTATUSCHECK = '_ssmf';
182
- COOKIECONSTANT.MFASTATUSCHECKFAIL = '_ssmff';
183
- COOKIECONSTANT.MFACLI = '_SSIDMFACLI';
184
- COOKIECONSTANT.WINDOWAUTH_HEADER = 'Authentication-Window';
185
- COOKIECONSTANT.SIGNALR_INDEX = '002-SR-NO';
186
- COOKIECONSTANT.ONETIME_TOKEN = 'state';
187
- COOKIECONSTANT.THICKCLIENT_KEY = 'APP_VER';
188
- const EXCLUDED_URLS = [
189
- 'http://localhost:55755/',
190
- 'workflow/api/Workflow/Workflow/GetWorkFlowTicketCount',
191
- 'workflow/api/Workflow/Workflow/GetWorkFlowTicketCountEventWise',
192
- 'xaccess/api/SecureAccess/GetBackgroundImage',
193
- 'xaccess/api/SecureAccess/UpdateLogoutTimer',
194
- ];
195
- class MFAEvent {
196
- }
197
- MFAEvent.ForgotPwd = 1;
198
- MFAEvent.unlockAcc = 2;
199
- MFAEvent.Login = 3;
200
- class BrowserName {
201
- }
202
- BrowserName.Chrome = 'Chrome';
203
- BrowserName.Firefox = 'Firefox';
204
- BrowserName.Edge = 'Edge';
205
- BrowserName.Safari = 'Safari';
206
- BrowserName.Opera = 'Opera';
207
- BrowserName.InterNetExp = 'Internet Explorer';
208
- // GetLocalIPAddress
209
- // GetLocalMACAddress
210
- // GetProcessorID
211
- // GetBIOSSerialID
212
- // GetDomainName
213
- // GetPAMPluginInstalledVersion
214
- //GetLocalHostName
215
- class PAMParameter {
216
- constructor() {
217
- this.ipAddress = '';
218
- this.macAddress = '';
219
- this.processorID = '';
220
- this.bIOSSerialID = '';
221
- this.domainName = '';
222
- this.hostname = '';
223
- this.pAMPluginInstalledVersion = '';
224
- }
225
- }
226
- // "Status : for user status
227
- // Active = 0,
228
- // NewUserCreated = 1,
229
- // ResetbyAdmin = 2,
230
- // LockedOut = 5,
231
- // Dormant = 4,
232
- // Disabled = 3
233
- // Suspended = 6,
234
- // Sabbatical = 7 ,
235
- // ACMO CLI Priviledge not assigned=9"
236
- // export const loginStatusMsg = {
237
- // 0: {
238
- // status: 'Active',
239
- // msg: 'Successfull login',
240
- // },
241
- // 1: {
242
- // status: 'NewUserCreated',
243
- // msg: 'New Created User',
244
- // },
245
- // 2: {
246
- // status: 'ResetbyAdmin',
247
- // msg: 'Password Is Reset By Admin',
248
- // },
249
- // 3: {
250
- // status: 'Disabled',
251
- // msg: 'User is Disabled',
252
- // },
253
- // 4: {
254
- // status: 'Dormant',
255
- // msg: 'User is Dormant',
256
- // },
257
- // 5: {
258
- // status: 'LockedOut',
259
- // msg: 'User is Locked Out',
260
- // },
261
- // 6: {
262
- // status: 'Suspended',
263
- // msg: 'User is Suspended',
264
- // },
265
- // 7: {
266
- // status: 'Sabbatical',
267
- // msg: 'User is Sabbatical',
268
- // },
269
- // 9: {
270
- // status: 'ACMO CLI Priviledge not assigned',
271
- // msg: '',
272
- // },
273
- // 11: {
274
- // status: 'Invalid User',
275
- // msg: 'Invalid User Name OR Password',
276
- // },
277
- // };
278
-
279
- class CommonHeaderLibService {
280
- constructor(http) {
281
- this.http = http;
282
- this.apiUrl = '';
283
- }
284
- getGlobalTimeZone() {
285
- return this.http
286
- .get(GlobalConstants.baseURL + 'xaccess/api/SecureAccess/GetSystemTimeZones')
287
- .pipe(map((response) => {
288
- if (response && response['success']) {
289
- return response['result'];
290
- }
291
- else {
292
- return [];
293
- }
294
- }));
295
- }
296
- getLoggedInUserDetails(url) {
297
- return this.http
298
- .post(url + 'xaccess/api/SecureAccess/GetUsersDetailsById', {})
299
- .pipe(map((response) => {
300
- // return response['result'];
301
- return response;
302
- }));
303
- }
304
- getLOBList(url) {
305
- return this.http.get(url + 'meta/api/metadata/Lobs').pipe(map((response) => {
306
- let result = [];
307
- if (response['statusCode'] === 200) {
308
- // let result = response['result'];
309
- let result = response;
310
- return result;
311
- }
312
- }));
313
- }
314
- getUserAssignedApps(url) {
315
- return this.http
316
- .post(url + 'xaccess/api/SecureAccess/GetUserPriviledgesList', {})
317
- .pipe(map((response) => {
318
- if (response && response['success']) {
319
- return response['result'].filter((x) => x.appCode != null
320
- // (x) => x.appCode !== 'APP026' && x.appCode != null
321
- );
322
- }
323
- else {
324
- return [];
325
- }
326
- }));
327
- }
328
- getUnreadUserEmailsCount(url) {
329
- return this.http.get(url + 'xservice/api/CIInfraAsset/MailBoxCount').pipe(map((response) => {
330
- if (response && response['success'] && response['result'] > 0) {
331
- return response['result'];
332
- }
333
- else {
334
- return 0;
335
- }
336
- }));
337
- }
338
- getUserAssignedMails(userDetails, url) {
339
- return this.http
340
- .post(url + 'xservice/api/CIInfraAsset/MailBox', userDetails)
341
- .pipe(map((response) => {
342
- if (response && response['success']) {
343
- return response['result'];
344
- }
345
- else {
346
- return [];
347
- }
348
- }));
349
- }
350
- getWorkFlowTicketEventwiseCount(userDetails, url) {
351
- return this.http
352
- .post(url + 'workflow/api/Workflow/Workflow/GetWorkFlowTicketCountEventWise', userDetails)
353
- .pipe(map((response) => {
354
- if (response && response[0]['Success']) {
355
- return response[0]['Data'];
356
- }
357
- else {
358
- return [];
359
- }
360
- }), catchError((e) => throwError(this.errorHandler(e))));
361
- }
362
- errorHandler(e) {
363
- throw new Error('Method not implemented.');
364
- }
365
- getUserPreferredAssetTypeDetails(url) {
366
- return this.http
367
- .get(url + 'xaccess/api/PagePreference/GetAssetTypeDetails')
368
- .pipe(map((response) => {
369
- if (response && response['success']) {
370
- return response['result'];
371
- }
372
- else {
373
- return [];
374
- }
375
- }), catchError((e) => throwError(this.errorHandler(e))));
376
- }
377
- getUserPreferredAssetName(payload, url) {
378
- return this.http
379
- .post(url + 'xaccess/api/PagePreference/GetAssetName', payload)
380
- .pipe(map((response) => {
381
- if (response && response['success']) {
382
- return response['result'];
383
- }
384
- else {
385
- return [];
386
- }
387
- }), catchError((e) => throwError(this.errorHandler(e))));
388
- }
389
- getServiceNameByAssetTypeEvent(payload, url) {
390
- return this.http
391
- .post(url + 'xaccess/api/PagePreference/GetServiceDetails', payload)
392
- .pipe(map((response) => {
393
- if (response && response['success']) {
394
- return response['result'];
395
- }
396
- else {
397
- return [];
398
- }
399
- }), catchError((e) => throwError(this.errorHandler(e))));
400
- }
401
- getPreferencePathDetails(payload, url) {
402
- return this.http
403
- .post(url + 'xaccess/api/PagePreference/CurrentPreferencepathDetails', payload)
404
- .pipe(map((response) => {
405
- if (response && response['success']) {
406
- return response['result'];
407
- }
408
- else {
409
- return {};
410
- }
411
- }), catchError((e) => throwError(this.errorHandler(e))));
412
- }
413
- updatePreferencePath(payload, url) {
414
- return this.http
415
- .post(url + 'xaccess/api/PagePreference/UpdatePreferencePath', payload)
416
- .pipe(map((response) => {
417
- if (response && response['success']) {
418
- return true;
419
- }
420
- else {
421
- return false;
422
- }
423
- }), catchError((e) => throwError(this.errorHandler(e))));
424
- }
425
- updateUserTimeZone(tz, url) {
426
- const params = new HttpParams().set('timezone', tz);
427
- return this.http
428
- .post(url + 'xaccess/api/SecureAccess/UpdateTimeZone', {}, { params: params })
429
- .pipe(map((response) => {
430
- if (response && response['success']) {
431
- return response['result'];
432
- }
433
- else {
434
- return '';
435
- }
436
- }), catchError((e) => throwError(this.errorHandler(e))));
437
- }
438
- setLandingPgPreference(moduleId, url) {
439
- return this.http
440
- .post(url + 'xaccess/api/SecureAccess/SetLandingPage', {
441
- moduleId: moduleId,
442
- })
443
- .pipe(map((response) => {
444
- if (response && response['success']) {
445
- return response['result'];
446
- }
447
- else {
448
- return '';
449
- }
450
- }), catchError((e) => throwError(this.errorHandler(e))));
451
- }
452
- getInitiateUserLogout() {
453
- return this.http.post(GlobalConstants.baseURL + 'xaccess/api/SecureAccess/logout', {}).pipe(map((response) => {
454
- if (response && response['success']) {
455
- return response['result'];
456
- }
457
- else {
458
- return {};
459
- }
460
- }), catchError((e) => throwError(this.errorHandler(e))));
461
- }
462
- }
463
- CommonHeaderLibService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CommonHeaderLibService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
464
- CommonHeaderLibService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CommonHeaderLibService, providedIn: 'root' });
465
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CommonHeaderLibService, decorators: [{
466
- type: Injectable,
467
- args: [{
468
- providedIn: 'root',
469
- }]
470
- }], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
471
-
472
- class StorageService {
473
- constructor() { }
474
- saveData(key, value) {
475
- localStorage.setItem(key, value);
476
- }
477
- getData(key) {
478
- return localStorage.getItem(key);
479
- }
480
- removeData(key) {
481
- localStorage.removeItem(key);
482
- }
483
- clearData() {
484
- localStorage.clear();
485
- }
486
- checkData(key) {
487
- const data = localStorage.getItem(key);
488
- if (data) {
489
- return true;
490
- }
491
- return false;
492
- }
493
- }
494
- StorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
495
- StorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StorageService, providedIn: 'root' });
496
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StorageService, decorators: [{
497
- type: Injectable,
498
- args: [{
499
- providedIn: 'root',
500
- }]
501
- }], ctorParameters: function () { return []; } });
502
-
503
- class EncrpdataService {
504
- constructor() {
505
- // private publicKey: string =
506
- // '10234186980819816859565723471972110581900468266056266385607156653250136308259057583501560583440295112186917105135474383769292631464432088817050933329522683,65537';
507
- this.privateKey = "";
508
- }
509
- getASCIIValue(text) {
510
- let charCodeArr = [];
511
- for (let i = 0; i < text.length; i++) {
512
- let code = text.charCodeAt(i);
513
- charCodeArr.push(BigInt(code));
514
- }
515
- return charCodeArr;
516
- }
517
- getModuleValue(arr, num1, num2) {
518
- let numArr = [];
519
- for (let i = 0; i < arr.length; i++) {
520
- let code = Math.pow(arr[i], num2) % num1;
521
- numArr.push(code);
522
- }
523
- return numArr;
524
- }
525
- getEncrpytedData(text) {
526
- this.privateKey = LoggedInUserInfo.privateKey;
527
- let key = this.privateKey.split(',');
528
- const num1 = BigInt(key[0]);
529
- const num2 = BigInt(key[1]);
530
- //1. Convert string to phiN
531
- let asciiValue = this.getASCIIValue(text);
532
- //2. Get Mod of All Value
533
- let ModValue = this.getModuleValue(asciiValue, num1, num2);
534
- //3. Convert Arr to String
535
- // let encodedText = ModValue.join('-');
536
- const encodedText = ModValue.map(b => b.toString()).join('-');
537
- return encodedText;
538
- }
539
- encodeToBase64(text) {
540
- return btoa(text);
541
- }
542
- decodeToBase64(text) {
543
- return atob(text);
544
- }
545
- }
546
- EncrpdataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: EncrpdataService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
547
- EncrpdataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: EncrpdataService, providedIn: 'root' });
548
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: EncrpdataService, decorators: [{
549
- type: Injectable,
550
- args: [{
551
- providedIn: 'root',
552
- }]
553
- }], ctorParameters: function () { return []; } });
554
-
555
- // import { CookieStorageManagerService } from '../cookie-storage-manager.service';
556
- class RestSignalRService {
557
- constructor(_localStorage, _encrpdataService) {
558
- this._localStorage = _localStorage;
559
- this._encrpdataService = _encrpdataService;
560
- this.eventMsg = new BehaviorSubject({});
561
- this.AuthToken = '';
562
- this.hubURLS = [];
563
- //Method: Established the Connection With SignalR to get RealTime Data
564
- this.establishedConnection = () => __awaiter(this, void 0, void 0, function* () {
565
- this.hubConnection = new signalR.HubConnectionBuilder()
566
- .withUrl(`${GlobalConstants.signalRURL}/chatHub`, {
567
- skipNegotiation: true,
568
- transport: signalR.HttpTransportType.WebSockets,
569
- headers: { Authorization: `Bearer ${this.AuthToken}` },
570
- })
571
- .build();
572
- try {
573
- yield this.hubConnection.start();
574
- //* SignalR connection established successfully
575
- this.addMessageListener();
576
- }
577
- catch (error) {
578
- console.error('Error establishing SignalR connection:', error);
579
- throw error;
580
- }
581
- });
582
- }
583
- initializeSignalRConnection() {
584
- return __awaiter(this, void 0, void 0, function* () {
585
- if (!GlobalConstants.signalRURL) {
586
- throw new Error('No hub URLs provided');
587
- }
588
- this.hubURLS = GlobalConstants.signalRURL
589
- ? GlobalConstants.signalRURL.split(',')
590
- : [];
591
- if (this.hubURLS.length === 1) {
592
- GlobalConstants.signalRURL = this.hubURLS[0];
593
- yield this.establishedConnection();
594
- return;
595
- }
596
- let lastUsedIndex = this.getLastUsedIndex();
597
- for (let i = 0; i < this.hubURLS.length; i++) {
598
- const index = (lastUsedIndex + i) % this.hubURLS.length;
599
- GlobalConstants.signalRURL = this.hubURLS[index];
600
- try {
601
- yield this.establishedConnection();
602
- this.setLastUsedIndex(index + 1); // Update for next round
603
- break; // Exit the loop if connection is successful
604
- }
605
- catch (error) {
606
- console.error(`Error connecting to hub ${this.hubURLS[index]}:`, error);
607
- }
608
- }
609
- if (!this.hubConnection) {
610
- throw new Error('All SignalR connections failed');
611
- }
612
- });
613
- }
614
- addMessageListener() {
615
- this.hubConnection.on('ReceiveMessage', (user, data) => {
616
- data = JSON.parse(data);
617
- this.emitEventMsg(data);
618
- });
619
- }
620
- emitEventMsg(data) {
621
- this.eventMsg.next(data);
622
- }
623
- listenerEventMsg() {
624
- return this.eventMsg.asObservable();
625
- }
626
- getLastUsedIndexv1() {
627
- const lastIndex = this._localStorage.getData(COOKIECONSTANT.SIGNALR_INDEX);
628
- return lastIndex
629
- ? Number(this._encrpdataService.decodeToBase64(lastIndex)) || 0
630
- : 0;
631
- }
632
- getLastUsedIndex() {
633
- const lastIndex = this._localStorage.getData(COOKIECONSTANT.SIGNALR_INDEX);
634
- return lastIndex
635
- ? Number(this._encrpdataService.decodeToBase64(lastIndex)) || 0
636
- : 0;
637
- }
638
- setLastUsedIndex(index) {
639
- const lastIndex = this._encrpdataService.encodeToBase64(index.toString());
640
- this._localStorage.saveData(COOKIECONSTANT.SIGNALR_INDEX, lastIndex);
641
- }
642
- }
643
- RestSignalRService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: RestSignalRService, deps: [{ token: StorageService }, { token: EncrpdataService }], target: i0.ɵɵFactoryTarget.Injectable });
644
- RestSignalRService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: RestSignalRService, providedIn: 'root' });
645
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: RestSignalRService, decorators: [{
646
- type: Injectable,
647
- args: [{
648
- providedIn: 'root',
649
- }]
650
- }], ctorParameters: function () { return [{ type: StorageService }, { type: EncrpdataService }]; } });
651
-
652
- class EventService {
653
- constructor(_cookie) {
654
- this._cookie = _cookie;
655
- this.getUserLOB = new BehaviorSubject({});
656
- this.getAssetType = new BehaviorSubject({});
657
- this.refreshSidebar = new BehaviorSubject({});
658
- this.filterRecords = new Subject();
659
- this.AuthMethods = new BehaviorSubject([]);
660
- this.refreshEmails = new BehaviorSubject({});
661
- this.timeZone = new BehaviorSubject({});
662
- }
663
- emitLOBEvent(data) {
664
- this.getUserLOB.next(data);
665
- }
666
- listenerLOBEvent() {
667
- return this.getUserLOB.asObservable();
668
- }
669
- emitAssetTypeEvent(data) {
670
- this.getAssetType.next(data);
671
- }
672
- listenerAssetTypeEvent() {
673
- return this.getAssetType.asObservable();
674
- }
675
- emitrefreshSidebar(data) {
676
- this.refreshSidebar.next(data);
677
- }
678
- listenerrefreshSidebar() {
679
- return this.refreshSidebar.asObservable();
680
- }
681
- emitFilterRecords(data) {
682
- this.filterRecords.next(data);
683
- }
684
- listenerFilterEvent() {
685
- return this.filterRecords.asObservable();
686
- }
687
- emitAuthMethod(data) {
688
- this.AuthMethods.next(data);
689
- }
690
- listenerAuthMethod() {
691
- return this.AuthMethods.asObservable();
692
- }
693
- emitUserEmail(data) {
694
- this.refreshEmails.next(data);
695
- }
696
- listenerUserEmail() {
697
- return this.refreshEmails.asObservable();
698
- }
699
- emitTimezone(data) {
700
- this.timeZone.next(data);
701
- }
702
- listenerTimezone() {
703
- return this.timeZone.asObservable();
704
- }
705
- // checkMFAv1(mfaUrl: string) {
706
- // return new Promise((resolve, reject) => {
707
- // const params = `scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no,
708
- // width=600,height=500,left=350,top=150`;
709
- // const mfaWindow = open(mfaUrl, 'CI Authentication', params);
710
- // //setInterval to check cookie every second
711
- // const interval = setInterval(() => {
712
- // if (this._cookie.get(COOKIECONSTANT.MFASTATUSCHECK)) {
713
- // clearInterval(interval);
714
- // // clearTimeout(timeout);
715
- // mfaWindow.close();
716
- // resolve(true);
717
- // }
718
- // else if (this._cookie.get(COOKIECONSTANT.MFASTATUSCHECKFAIL)) {
719
- // clearInterval(interval);
720
- // mfaWindow.close();
721
- // reject(false);
722
- // }
723
- // }, 1000);
724
- // //when use close window manually
725
- // let flag = false;
726
- // mfaWindow.onunload = () => {
727
- // if (flag) {
728
- // clearInterval(interval);
729
- // // clearTimeout(timeout);
730
- // reject(false);
731
- // }
732
- // flag = true;
733
- // }
734
- // })
735
- // }
736
- checkMFA(mfaUrl) {
737
- return new Promise((resolve, reject) => {
738
- const params = `scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no,
739
- width=600,height=500,left=350,top=150`;
740
- const mfaWindow = window.open(mfaUrl, 'CI Authentication', params);
741
- if (!mfaWindow) {
742
- reject(new Error('Failed to open MFA window. Popup blocked?'));
743
- return;
744
- }
745
- // Polling interval to check cookie every second
746
- const interval = setInterval(() => {
747
- if (this._cookie.get(COOKIECONSTANT.MFASTATUSCHECK)) {
748
- clearInterval(interval);
749
- mfaWindow.close();
750
- resolve(true);
751
- }
752
- else if (this._cookie.get(COOKIECONSTANT.MFASTATUSCHECKFAIL)) {
753
- clearInterval(interval);
754
- mfaWindow.close();
755
- reject(false);
756
- }
757
- }, 1000);
758
- // Detect manual close of popup window
759
- const checkPopupClosed = setInterval(() => {
760
- if (mfaWindow.closed) {
761
- clearInterval(interval);
762
- clearInterval(checkPopupClosed);
763
- reject(false);
764
- }
765
- }, 500);
766
- });
767
- }
768
- }
769
- EventService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: EventService, deps: [{ token: i1$1.CookieService }], target: i0.ɵɵFactoryTarget.Injectable });
770
- EventService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: EventService, providedIn: 'root' });
771
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: EventService, decorators: [{
772
- type: Injectable,
773
- args: [{
774
- providedIn: 'root',
775
- }]
776
- }], ctorParameters: function () { return [{ type: i1$1.CookieService }]; } });
777
-
778
- class HttpCommonService {
779
- constructor(http) {
780
- this.http = http;
781
- this.xAccessAPIUrl = '/xaccess/api/SecureAccess/';
782
- this.metaAPIUrl = '/meta/api/metadata/';
783
- this.metaAPIUrl1 = '/meta/api/Metadata/';
784
- this.xServiceAPIUrl = '/xservice/api/CIInfraAsset/';
785
- this.workflowAPIUrl = '/workflow/api/Workflow/Workflow/';
786
- }
787
- getLogo() {
788
- return this.http
789
- .get(`${GlobalConstants.baseURL}${this.xAccessAPIUrl}BackgroundLogo`)
790
- .pipe(map$1((response) => {
791
- return response['result'];
792
- }));
793
- }
794
- getGlobalTimeZone() {
795
- return this.http
796
- .get(`${GlobalConstants.baseURL}${this.xAccessAPIUrl}GetSystemTimeZones`)
797
- .pipe(map$1((response) => {
798
- if (response && response['success']) {
799
- return response['result'];
800
- }
801
- else {
802
- return [];
803
- }
804
- }));
805
- }
806
- updateUserTimeZone(tz) {
807
- const params = new HttpParams().set('timezone', tz);
808
- return this.http
809
- .post(`${GlobalConstants.baseURL}${this.xAccessAPIUrl}UpdateTimeZone`, {}, { params: params })
810
- .pipe(map$1((response) => {
811
- if (response && response['success']) {
812
- return response['result'];
813
- }
814
- else {
815
- return '';
816
- }
817
- }));
818
- }
819
- getLOBList() {
820
- return this.http
821
- .get(`${GlobalConstants.baseURL}${this.metaAPIUrl}Lobs`)
822
- .pipe(map$1((response) => {
823
- return response;
824
- }));
825
- }
826
- getUnreadUserEmailsCount() {
827
- return this.http
828
- .get(`${GlobalConstants.baseURL}${this.xServiceAPIUrl}MailBoxCount`)
829
- .pipe(map$1((response) => {
830
- if (response && response['success'] && response['result'] > 0) {
831
- return response['result'];
832
- }
833
- else {
834
- return 0;
835
- }
836
- }));
837
- }
838
- getUserAssignedMails(userDetails) {
839
- return this.http
840
- .post(`${GlobalConstants.baseURL}${this.xServiceAPIUrl}MailBox`, userDetails)
841
- .pipe(map$1((response) => {
842
- if (response && response['success']) {
843
- return response['result'];
844
- }
845
- else {
846
- return [];
847
- }
848
- }));
849
- }
850
- /*Method : GET
851
- Action : Get Application Password */
852
- getAccessToViewServicePassword(mailDetails) {
853
- return this.http
854
- .post(`${GlobalConstants.baseURL}${this.xServiceAPIUrl}OpenServicePwd`, mailDetails)
855
- .pipe(map$1((response) => {
856
- if (response && response['success']) {
857
- response['result'][1] = response['message'];
858
- return response['result'];
859
- }
860
- else {
861
- return [];
862
- }
863
- }), catchError$1((e) => throwError(this.errorHandler(e))));
864
- }
865
- getUserAssignedApps() {
866
- return this.http
867
- .post(`${GlobalConstants.baseURL}${this.xAccessAPIUrl}GetUserPriviledgesList`, {})
868
- .pipe(map$1((response) => {
869
- if (response && response['success']) {
870
- return response['result'].filter((x) => x.appCode != null);
871
- }
872
- else {
873
- return [];
874
- }
875
- }));
876
- }
877
- getLoggedInUserDetails() {
878
- return this.http
879
- .post(`${GlobalConstants.baseURL}${this.xAccessAPIUrl}GetUsersDetailsById`, {})
880
- .pipe(map$1((response) => {
881
- return response;
882
- }));
883
- }
884
- //Method: Used to Total Notification count of user
885
- //Action: It used get all notification count
886
- getWorkFlowTicketCount(userDetails) {
887
- return this.http
888
- .post(`${GlobalConstants.baseURL}${this.workflowAPIUrl}GetWorkFlowTicketCount`, userDetails)
889
- .pipe(map$1((response) => {
890
- if (response && response[0]['Success']) {
891
- if (response[0]['Data'][0]) {
892
- return response[0]['Data'][0];
893
- }
894
- else {
895
- return {};
896
- }
897
- }
898
- else {
899
- return {};
900
- }
901
- }), catchError$1((e) => throwError(this.errorHandler(e))));
902
- }
903
- getWorkFlowTicketEventwiseCount(userDetails) {
904
- return this.http
905
- .post(`${GlobalConstants.baseURL}${this.workflowAPIUrl}GetWorkFlowTicketCountEventWise`, userDetails)
906
- .pipe(map$1((response) => {
907
- if (response && response[0]['Success']) {
908
- return response[0]['Data'];
909
- // return [];
910
- }
911
- else {
912
- return [];
913
- }
914
- }));
915
- }
916
- setLandingPgPreference(moduleId) {
917
- return this.http
918
- .post(`${GlobalConstants.baseURL}${this.xAccessAPIUrl}SetLandingPage`, {
919
- moduleId: moduleId,
920
- })
921
- .pipe(map$1((response) => {
922
- if (response && response['success']) {
923
- return response['result'];
924
- }
925
- else {
926
- return '';
927
- }
928
- }));
929
- }
930
- /*Method : POST
931
- Action :Will validate User entered PWD as
932
- per Password Policy Set
933
- */
934
- validatePassword(userDetails) {
935
- return this.http
936
- .post(`${GlobalConstants.baseURL}${this.xAccessAPIUrl}ValidatePassword`, userDetails)
937
- .pipe(catchError$1((e) => throwError(this.errorHandler(e))));
938
- }
939
- /*Method : POST
940
- Action : RESET Password for First Time User
941
- */
942
- setNewpassword(loggedInUserDetails) {
943
- return this.http
944
- .post(`${GlobalConstants.baseURL}${this.xAccessAPIUrl}ChangeUserArcXwdManually`, loggedInUserDetails)
945
- .pipe(catchError$1((e) => throwError(this.errorHandler(e))));
946
- }
947
- errorHandler(e) {
948
- throw new Error('Method not implemented.');
949
- }
950
- /*Method : GET
951
- Action : Get hiding the password for a service. */
952
- getProtectedServiceCredentials(mailDetails) {
953
- return this.http
954
- .post(`${GlobalConstants.baseURL}${this.xServiceAPIUrl}GetServicePasswordClose`, mailDetails)
955
- .pipe(map$1((response) => {
956
- if (response && response['success']) {
957
- return response['result'];
958
- }
959
- else {
960
- return false;
961
- }
962
- }), catchError$1((e) => throwError(this.errorHandler(e))));
963
- }
964
- /*Method : POST
965
- Parameter : subID , id
966
- Action : Get configuration ID based on to show hide DOMAIN dropdown
967
- */
968
- getglobalConfigDetails(subid, id) {
969
- return this.http
970
- .post(`${GlobalConstants.baseURL}${this.metaAPIUrl1}GetArcosConfigsValues?subId=${subid}`, id)
971
- .pipe(map$1((response) => {
972
- if (response['statusCode'] === 200) {
973
- let result = response['result'];
974
- return result;
975
- }
976
- }), catchError$1((e) => throwError(this.errorHandler(e))));
977
- }
978
- getInitiateUserLogout() {
979
- return this.http
980
- .post(`${GlobalConstants.baseURL}${this.xAccessAPIUrl}logout`, {})
981
- .pipe(map$1((response) => {
982
- if (response && response['success']) {
983
- return response['result'];
984
- }
985
- else {
986
- return {};
987
- }
988
- }), catchError$1((e) => throwError(this.errorHandler(e))));
989
- }
990
- //Method: Open the OAuth connection window for the given application
991
- openAppConnection(appCode) {
992
- const url = GlobalConstants.baseURL + '/xauth/api/Token/AppOAuth?appcode=' + appCode;
993
- window.open(url, '_blank');
994
- }
995
- //Method: Validate MFA / SAML configuration before establishing the APP032 connection
996
- checkMFAConfiguration() {
997
- return this.http
998
- .get(`${GlobalConstants.baseURL}/xaccess/api/Token/getMfaSamlConfig`)
999
- .pipe(catchError$1((e) => throwError(this.errorHandler(e))));
1000
- }
1001
- //Method: Validate internal SAML app configuration before establishing the connection (e.g. APP033)
1002
- getInternalAppConfig(appCode) {
1003
- return this.http
1004
- .get(`${GlobalConstants.baseURL}/xaccess/api/Token/getInternalAppConfig?appCode=${appCode}`)
1005
- .pipe(catchError$1((e) => throwError(this.errorHandler(e))));
1006
- }
1007
- }
1008
- HttpCommonService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HttpCommonService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1009
- HttpCommonService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HttpCommonService, providedIn: 'root' });
1010
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HttpCommonService, decorators: [{
1011
- type: Injectable,
1012
- args: [{
1013
- providedIn: 'root',
1014
- }]
1015
- }], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
1016
-
1017
- class ToastMsgService {
1018
- constructor(toastr, translateService) {
1019
- this.toastr = toastr;
1020
- this.translateService = translateService;
1021
- this.toastType_sucess = 'toast-success';
1022
- this.toastType_info = 'toast-info';
1023
- this.toastType_error = 'toast-error';
1024
- this.toastType_warning = 'toast-warn';
1025
- }
1026
- success(textMessage, title) {
1027
- const heading = title || this.translateService.instant('Generic_lib.Successful');
1028
- if (this.isToastMsgActive()) {
1029
- if (this.checkActiveToastMessagesByType(this.toastType_sucess)) {
1030
- this.updateActiveToastMessage(heading, textMessage, this.toastType_sucess);
1031
- }
1032
- else {
1033
- this.toastr.success(textMessage, heading);
1034
- }
1035
- }
1036
- else {
1037
- this.toastr.success(textMessage, heading);
1038
- }
1039
- }
1040
- error(textMessage, title) {
1041
- const heading = title || this.translateService.instant('Generic_lib.Error');
1042
- if (this.isToastMsgActive()) {
1043
- if (this.checkActiveToastMessagesByType(this.toastType_error)) {
1044
- this.updateActiveToastMessage(heading, textMessage, this.toastType_error);
1045
- }
1046
- else {
1047
- this.toastr.error(textMessage, heading);
1048
- }
1049
- }
1050
- else {
1051
- this.toastr.error(textMessage, heading);
1052
- }
1053
- }
1054
- info(textMessage, title) {
1055
- const heading = title || this.translateService.instant('Generic_lib.Information');
1056
- if (this.isToastMsgActive()) {
1057
- if (this.checkActiveToastMessagesByType(this.toastType_info)) {
1058
- this.updateActiveToastMessage(heading, textMessage, this.toastType_info);
1059
- }
1060
- else {
1061
- this.toastr.info(textMessage, heading);
1062
- }
1063
- }
1064
- else {
1065
- this.toastr.info(textMessage, heading);
1066
- }
1067
- }
1068
- warning(textMessage, title) {
1069
- const heading = title || this.translateService.instant('Generic_lib.Warning');
1070
- if (this.isToastMsgActive()) {
1071
- if (this.checkActiveToastMessagesByType(this.toastType_warning)) {
1072
- this.updateActiveToastMessage(heading, textMessage, this.toastType_warning);
1073
- }
1074
- else {
1075
- this.toastr.warning(textMessage, heading);
1076
- }
1077
- }
1078
- else {
1079
- this.toastr.warning(textMessage, heading);
1080
- }
1081
- }
1082
- updateActiveToastMessage(title, textMessage, ToastType) {
1083
- const activeToasts = this.getActiveToastMessagesByType(ToastType);
1084
- if (activeToasts.length > 0) {
1085
- const toastObj = activeToasts[0];
1086
- toastObj.toastRef.componentInstance.title = title;
1087
- toastObj.toastRef.componentInstance.message = textMessage;
1088
- }
1089
- }
1090
- isToastMsgActive() {
1091
- return this.toastr.currentlyActive ? true : false;
1092
- }
1093
- getActiveToastMessagesByType(type) {
1094
- return this.toastr.toasts.filter((toastItem) => toastItem.toastRef.componentInstance.toastPackage.toastType.includes(type));
1095
- }
1096
- checkActiveToastMessagesByType(type) {
1097
- return this.toastr.toasts.some((toastItem) => toastItem.toastRef.componentInstance.toastPackage.toastType == type);
1098
- }
1099
- clear() {
1100
- this.toastr.clear();
1101
- }
1102
- }
1103
- ToastMsgService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ToastMsgService, deps: [{ token: i1$2.ToastrService }, { token: i4.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable });
1104
- ToastMsgService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ToastMsgService, providedIn: 'root' });
1105
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ToastMsgService, decorators: [{
1106
- type: Injectable,
1107
- args: [{
1108
- providedIn: 'root',
1109
- }]
1110
- }], ctorParameters: function () { return [{ type: i1$2.ToastrService }, { type: i4.TranslateService }]; } });
1111
-
1112
- class EncrydecryRSAdataService {
1113
- generateAESKey() {
1114
- const publicKey = this.getPublicKey();
1115
- const symmetricKey = this.generateKeyAndIV();
1116
- const gkey = symmetricKey.key.toString();
1117
- const giv = symmetricKey.iv.toString();
1118
- const key = gkey + ',' + giv;
1119
- const encryptedSymmetricKey = this.encryptSymmetricKey(gkey, publicKey);
1120
- const encryptedSymmetriciv = this.encryptSymmetricKey(giv, publicKey);
1121
- return String(encryptedSymmetricKey + ',' + encryptedSymmetriciv);
1122
- }
1123
- encryptViaRSA(simpleText) {
1124
- const { symmKey, symmIV } = this.getRSAsymmetricKeyIV();
1125
- const encryptedText = this.encryptText(simpleText, symmKey, symmIV);
1126
- return encryptedText;
1127
- }
1128
- decryptViaRSA(encrpyText) {
1129
- const { symmKey, symmIV } = this.getRSAsymmetricKeyIV();
1130
- const decryptedText = this.decryptText(encrpyText, symmKey, symmIV);
1131
- return decryptedText;
1132
- }
1133
- generateKeyAndIV() {
1134
- const key = CryptoJS.lib.WordArray.random(32); // 32 bytes for AES-256
1135
- const iv = CryptoJS.lib.WordArray.random(16); // 16 bytes IV
1136
- return { key, iv };
1137
- }
1138
- encryptText(plaintext, hkey, hiv) {
1139
- //* If the data is Object then converting the object into JSON.stringify()
1140
- if (typeof plaintext === 'object' && plaintext !== null) {
1141
- plaintext = JSON.stringify(plaintext);
1142
- }
1143
- const key = CryptoJS.enc.Hex.parse(hkey);
1144
- const iv = CryptoJS.enc.Hex.parse(hiv);
1145
- const encrypted = CryptoJS.AES.encrypt(plaintext, key, {
1146
- iv: iv,
1147
- mode: CryptoJS.mode.CBC,
1148
- padding: CryptoJS.pad.Pkcs7,
1149
- });
1150
- return encrypted.toString();
1151
- }
1152
- encryptSymmetricKey(key, publicKey) {
1153
- try {
1154
- const rsa = new JSEncrypt();
1155
- rsa.setPublicKey(publicKey);
1156
- const encryptedKey = rsa.encrypt(key);
1157
- if (!encryptedKey)
1158
- throw new Error('Encryption failed. The key might be improperly formatted.');
1159
- return encryptedKey;
1160
- }
1161
- catch (error) {
1162
- console.error(`Encryption error: ${error.message}`);
1163
- return '';
1164
- }
1165
- }
1166
- decryptText(encryptedBase64, hkey, hiv) {
1167
- const key = CryptoJS.enc.Hex.parse(hkey);
1168
- const iv = CryptoJS.enc.Hex.parse(hiv);
1169
- const decrypted = CryptoJS.AES.decrypt(encryptedBase64, key, {
1170
- iv: iv,
1171
- mode: CryptoJS.mode.CBC,
1172
- padding: CryptoJS.pad.Pkcs7,
1173
- });
1174
- return decrypted.toString(CryptoJS.enc.Utf8);
1175
- }
1176
- getPublicKey() {
1177
- const publicKey = this.base64ToPem(localStorage.getItem('001-SAC-GEC') || '');
1178
- return publicKey;
1179
- }
1180
- getRSAsymmetricKeyIV() {
1181
- let symmKey = '';
1182
- let symmIV = '';
1183
- const key = localStorage.getItem('001-SAC-GEC');
1184
- if (key === null || key === void 0 ? void 0 : key.includes(',')) {
1185
- const syymArr = key.split(',');
1186
- symmKey = syymArr[0];
1187
- symmIV = syymArr[1];
1188
- }
1189
- return { symmKey, symmIV };
1190
- }
1191
- base64ToPem(base64Key) {
1192
- var _a;
1193
- const pemHeader = '-----BEGIN PUBLIC KEY-----';
1194
- const pemFooter = '-----END PUBLIC KEY-----';
1195
- const chunkSize = 64; // Standard line length for PEM files
1196
- const formattedKey = ((_a = base64Key.match(new RegExp(`.{1,${chunkSize}}`, 'g'))) === null || _a === void 0 ? void 0 : _a.join('\n')) || '';
1197
- return `${pemHeader}\n${formattedKey}\n${pemFooter}`;
1198
- }
1199
- }
1200
- EncrydecryRSAdataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: EncrydecryRSAdataService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1201
- EncrydecryRSAdataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: EncrydecryRSAdataService, providedIn: 'root' });
1202
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: EncrydecryRSAdataService, decorators: [{
1203
- type: Injectable,
1204
- args: [{
1205
- providedIn: 'root',
1206
- }]
1207
- }] });
1208
-
1209
- class ASYNCPasswordcheckService {
1210
- constructor(httpCommonService, encryptService) {
1211
- this.httpCommonService = httpCommonService;
1212
- this.encryptService = encryptService;
1213
- this.pwdErrorMsg = '';
1214
- this.pwdValidation = new Subject();
1215
- }
1216
- createValidator() {
1217
- return (control) => {
1218
- //For AES Encrp/Dec
1219
- const userPassword = this.encryptService.encryptViaRSA(control.value);
1220
- let useDetails = {
1221
- userARCXWD: userPassword,
1222
- // userId: LoggedInUserInfo.userId,
1223
- // userName: LoggedInUserInfo.userName,
1224
- };
1225
- return control.valueChanges.pipe(debounceTime(500), take(1), switchMap((_) => this.httpCommonService.validatePassword(useDetails).pipe(map((data) => {
1226
- if (data['success']) {
1227
- this.pwdErrorMsg = data['message'];
1228
- this.emitValidationMsg(this.pwdErrorMsg);
1229
- return null;
1230
- }
1231
- else {
1232
- this.pwdErrorMsg = data['errorMessage'];
1233
- this.emitValidationMsg(this.pwdErrorMsg);
1234
- return { pwdInvalid: true };
1235
- }
1236
- }), catchError(() => of({ pwdInvalid: true })))));
1237
- };
1238
- }
1239
- emitValidationMsg(msg) {
1240
- this.pwdValidation.next(msg);
1241
- }
1242
- listValidationMsg() {
1243
- return this.pwdValidation.asObservable();
1244
- }
1245
- }
1246
- ASYNCPasswordcheckService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ASYNCPasswordcheckService, deps: [{ token: HttpCommonService }, { token: EncrydecryRSAdataService }], target: i0.ɵɵFactoryTarget.Injectable });
1247
- ASYNCPasswordcheckService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ASYNCPasswordcheckService, providedIn: 'root' });
1248
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ASYNCPasswordcheckService, decorators: [{
1249
- type: Injectable,
1250
- args: [{
1251
- providedIn: 'root',
1252
- }]
1253
- }], ctorParameters: function () { return [{ type: HttpCommonService }, { type: EncrydecryRSAdataService }]; } });
1254
- function ConfirmedValidator(controlName, matchingControlName) {
1255
- return (formGroup) => {
1256
- const control = formGroup.controls[controlName];
1257
- const matchingControl = formGroup.controls[matchingControlName];
1258
- if (matchingControl.errors &&
1259
- !matchingControl.errors['confirmedValidator']) {
1260
- return;
1261
- }
1262
- if (control.value !== matchingControl.value) {
1263
- matchingControl.setErrors({ confirmedValidator: true });
1264
- }
1265
- else {
1266
- matchingControl.setErrors(null);
1267
- }
1268
- };
1269
- }
1270
-
1271
- function noSpaceAllowed() {
1272
- return (control) => {
1273
- const value = control.value;
1274
- if (!value) {
1275
- return null; // No value is not an error here
1276
- }
1277
- // Check if the value starts with a space or contains any space
1278
- const hasLeadingSpace = value.startsWith(' ');
1279
- // const hasAnySpace = value.includes(' ');
1280
- if (hasLeadingSpace) {
1281
- return { noSpace: true };
1282
- }
1283
- return null;
1284
- };
1285
- }
1286
-
1287
- class CookieStorageManagerService {
1288
- constructor(cookie, _http) {
1289
- this.cookie = cookie;
1290
- this._http = _http;
1291
- }
1292
- //Check if cookies is set or not
1293
- checksetCookies(cookiesParam1) {
1294
- let status = this.cookie.check(cookiesParam1);
1295
- if (status) {
1296
- return true;
1297
- }
1298
- else {
1299
- return false;
1300
- }
1301
- }
1302
- //get cookies value
1303
- getCookieValue(cookiesParam) {
1304
- let status = this.cookie.check(cookiesParam);
1305
- if (status) {
1306
- let cookieValue = this.cookie.get(cookiesParam);
1307
- return cookieValue;
1308
- }
1309
- //What if cookies not found
1310
- else {
1311
- return '';
1312
- }
1313
- }
1314
- //Set cookies value
1315
- setCookiesValue(key, value) {
1316
- this.cookie.set(key, value);
1317
- }
1318
- //Delete a specific cookie
1319
- deleteCookie(cookieKey) {
1320
- this.cookie.delete(cookieKey);
1321
- }
1322
- //Delete All cookie
1323
- clearAllCookies() {
1324
- const cookies = this.cookie.getAll();
1325
- for (const cookieName in cookies) {
1326
- if (cookies.hasOwnProperty(cookieName)) {
1327
- this.cookie.delete(cookieName);
1328
- }
1329
- }
1330
- }
1331
- //Delete All cookie
1332
- // clearCookiesByAPI(payload: any) {
1333
- // const delCookieEndpoint = `${GlobalConstants.baseURL}/xaccess/api/SecureAccess/cookiesUpdation`;
1334
- // return this._http.post(delCookieEndpoint, payload).pipe(map((response:any)=>{
1335
- // if (response && response['success']) {
1336
- // return response['result'];
1337
- // } else {
1338
- // return null;
1339
- // }
1340
- // }));
1341
- // }
1342
- //Set Long cookies
1343
- setLongCookie(name, value, maxChunkSize) {
1344
- for (let i = 0; i < Math.ceil(value.length / maxChunkSize); i++) {
1345
- const chunk = value.substring(i * maxChunkSize, (i + 1) * maxChunkSize);
1346
- this.setCookiesValue(`${name}_${i}`, chunk);
1347
- }
1348
- }
1349
- }
1350
- CookieStorageManagerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CookieStorageManagerService, deps: [{ token: i1$1.CookieService }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1351
- CookieStorageManagerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CookieStorageManagerService, providedIn: 'root' });
1352
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CookieStorageManagerService, decorators: [{
1353
- type: Injectable,
1354
- args: [{
1355
- providedIn: 'root',
1356
- }]
1357
- }], ctorParameters: function () { return [{ type: i1$1.CookieService }, { type: i1.HttpClient }]; } });
1358
-
1359
- class EncrydecrydataService {
1360
- constructor(_storageService) {
1361
- this._storageService = _storageService;
1362
- this.phiN = BigInt('1439652808780798693078119762209596147168096953796219172262910821317967061987350219660913015278464376519592636923598633193936864497263640780784805168728449');
1363
- this.m = BigInt('1439652808780798693078119762209596147168096953796219172262910821317967061987270868696269635759315523684521986922202953647194318017157636815317250179926320');
1364
- this.Genrator = 5;
1365
- this.min = 10000000;
1366
- this.max = 10000000 * 10000000;
1367
- }
1368
- generate() {
1369
- this.randomPrime = this.generateRandomPrime(this.min, this.max);
1370
- let code = bigintCryptoUtils.modPow(this.Genrator, BigInt(this.randomPrime), this.phiN);
1371
- return code;
1372
- }
1373
- process(key) {
1374
- let secretcode = bigintCryptoUtils.modPow(BigInt(key), BigInt(this.randomPrime), this.phiN);
1375
- this._storageService.saveData(COOKIECONSTANT.ERRORCODE, secretcode.toString());
1376
- }
1377
- encryptViaCrypto(normalText) {
1378
- const code = this.getSecretCode();
1379
- const encryptedMessagedata = this.encryptMessage(normalText, code);
1380
- return encryptedMessagedata;
1381
- }
1382
- decryptViaCrypto(cipherText) {
1383
- const decryptedData = this.base64ToUint8Array(cipherText);
1384
- const code = this.getSecretCode();
1385
- let decryptdata = this.decrypt(decryptedData, code);
1386
- let decryptdatastr = this.bytesToString(decryptdata);
1387
- return decryptdatastr;
1388
- }
1389
- decryptResponseViaCrypto(cipherText) {
1390
- const code = String(this.getPublicKey());
1391
- const decryptdata = this.decrypt123(cipherText, code);
1392
- return decryptdata;
1393
- }
1394
- //todo amit
1395
- // private decrypt123(messageme: string, key: string): string {
1396
- // let bigKey: bigint = BigInt(key);
1397
- // let bytes: string = atob(messageme);
1398
- // let decryptedBytes: number[] = [];
1399
- // for (let i = 0; i < bytes.length; i++) {
1400
- // let byteValue: bigint = BigInt(bytes.charCodeAt(i));
1401
- // byteValue = (byteValue - bigKey) % 256n;
1402
- // if (byteValue < 0n) {
1403
- // byteValue = 256n + byteValue;
1404
- // }
1405
- // decryptedBytes.push(Number(byteValue));
1406
- // }
1407
- // let decryptedMessage: string = String.fromCharCode.apply(
1408
- // null,
1409
- // decryptedBytes
1410
- // );
1411
- // return decryptedMessage;
1412
- // }
1413
- //new amit
1414
- decrypt123(messageme, key) {
1415
- const bigKey = BigInt(key);
1416
- const bytes = atob(messageme);
1417
- const decryptedBytes = [];
1418
- for (let i = 0; i < bytes.length; i++) {
1419
- let byteValue = BigInt(bytes.charCodeAt(i));
1420
- byteValue = (byteValue - bigKey) % BigInt(256);
1421
- if (byteValue < BigInt(0)) {
1422
- byteValue = BigInt(256) + byteValue;
1423
- }
1424
- decryptedBytes.push(Number(byteValue));
1425
- }
1426
- return String.fromCharCode(...decryptedBytes);
1427
- }
1428
- encryptMessage(message, sharedSecret) {
1429
- const messageBytes = new TextEncoder().encode(message);
1430
- const encryptedMessage = this.encrypt(messageBytes, sharedSecret);
1431
- return this.encryptMessageToBase64(encryptedMessage);
1432
- //return encryptedMessage;
1433
- }
1434
- base64ToUint8Array(base64String) {
1435
- const decodedString = atob(base64String);
1436
- const uint8Array = new Uint8Array(decodedString.length);
1437
- for (let i = 0; i < decodedString.length; i++) {
1438
- uint8Array[i] = decodedString.charCodeAt(i);
1439
- }
1440
- return uint8Array;
1441
- }
1442
- bytesToString(bytes) {
1443
- let str = '';
1444
- for (let i = 0; i < bytes.length; i++) {
1445
- str += String.fromCharCode(bytes[i]);
1446
- }
1447
- return str;
1448
- }
1449
- encryptMessageToBase64(encryptedMessage) {
1450
- const encryptedArray = Array.from(encryptedMessage);
1451
- const messageString = String.fromCharCode.apply(null, encryptedArray);
1452
- const base64String = btoa(messageString);
1453
- return base64String;
1454
- }
1455
- bigintToBytes(key) {
1456
- const hexString = key.toString(16);
1457
- const byteLength = Math.ceil(hexString.length / 2);
1458
- const bytes = new Uint8Array(byteLength);
1459
- let i = hexString.length;
1460
- let j = 0;
1461
- while (i > 0) {
1462
- bytes[j++] = parseInt(hexString.substring(Math.max(i - 2, 0), i), 16);
1463
- i -= 2;
1464
- }
1465
- return bytes;
1466
- }
1467
- encrypt(data, key) {
1468
- const keyBytes = this.bigintToBytes(key);
1469
- const encryptedData = new Uint8Array(data.length);
1470
- for (let i = 0; i < data.length; i++) {
1471
- encryptedData[i] = data[i] ^ keyBytes[i % keyBytes.length];
1472
- }
1473
- return encryptedData;
1474
- }
1475
- decrypt(data, key) {
1476
- return this.encrypt(data, key);
1477
- }
1478
- generateRandomPrime(min, max) {
1479
- const isPrime = (num) => {
1480
- if (num <= 1)
1481
- return false;
1482
- if (num <= 3)
1483
- return true;
1484
- if (num % 2 === 0 || num % 3 === 0)
1485
- return false;
1486
- let i = 5;
1487
- while (i * i <= num) {
1488
- if (num % i === 0 || num % (i + 2) === 0)
1489
- return false;
1490
- i += 6;
1491
- }
1492
- return true;
1493
- };
1494
- let prime;
1495
- do {
1496
- prime = Math.floor(Math.random() * (max - min + 1)) + min;
1497
- } while (!isPrime(prime));
1498
- return prime;
1499
- }
1500
- getSecretCode() {
1501
- var _a;
1502
- //todo Amit -
1503
- // const key = this._storageService.getData(COOKIECONSTANT.ERRORCODE);
1504
- const key = (_a = this._storageService.getData(COOKIECONSTANT.ERRORCODE)) !== null && _a !== void 0 ? _a : '0000';
1505
- return this.convertToBigInt(key);
1506
- }
1507
- convertToBigInt(value) {
1508
- try {
1509
- return BigInt(value);
1510
- }
1511
- catch (_a) {
1512
- return BigInt('0000');
1513
- }
1514
- }
1515
- getPublicKey() {
1516
- const publicKey = LoggedInUserInfo.privateKey;
1517
- // Check if publicKey is undefined, null, or empty
1518
- if (!publicKey) {
1519
- console.error('Public key is missing.');
1520
- return this.convertToBigInt('0');
1521
- }
1522
- const KeyArr = publicKey.split(',');
1523
- if (KeyArr.length === 0 || !KeyArr[0]) {
1524
- return this.convertToBigInt('0');
1525
- }
1526
- const keySegment = KeyArr[0];
1527
- // const keySegment = KeyArr[0].slice(0, 10);
1528
- // const keySegment = this.getSlicePublicKey(KeyArr[0]);
1529
- if (!keySegment) {
1530
- return this.convertToBigInt('0');
1531
- }
1532
- try {
1533
- return this.convertToBigInt(keySegment);
1534
- }
1535
- catch (error) {
1536
- return this.convertToBigInt('0');
1537
- }
1538
- }
1539
- getSlicePublicKey(key) {
1540
- const subString = key.length >= 20 ? key.substring(0, 20) : key;
1541
- const uniqueKey = this.getUniqueLetter(subString);
1542
- return uniqueKey;
1543
- }
1544
- getUniqueLetter(text) {
1545
- const textSet = new Set(text);
1546
- const uniqueString = [...textSet].join('');
1547
- return uniqueString;
1548
- }
1549
- }
1550
- EncrydecrydataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: EncrydecrydataService, deps: [{ token: StorageService }], target: i0.ɵɵFactoryTarget.Injectable });
1551
- EncrydecrydataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: EncrydecrydataService, providedIn: 'root' });
1552
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: EncrydecrydataService, decorators: [{
1553
- type: Injectable,
1554
- args: [{
1555
- providedIn: 'root',
1556
- }]
1557
- }], ctorParameters: function () { return [{ type: StorageService }]; } });
1558
-
1559
- class RESTLoginFormService {
1560
- constructor(_http, cookieService, _encryptDec) {
1561
- this._http = _http;
1562
- this.cookieService = cookieService;
1563
- this._encryptDec = _encryptDec;
1564
- }
1565
- /*Method : GET
1566
- Action : Fetch Domain List */
1567
- fetchDomainList() {
1568
- return this._http
1569
- .get(GlobalConstants.baseURL + 'meta/api/Metadata/Domains')
1570
- .pipe(map((response) => {
1571
- let result = [];
1572
- if (response['statusCode'] === 200) {
1573
- if (response['result'].length > 0) {
1574
- let result = response['result'];
1575
- return result;
1576
- }
1577
- else {
1578
- return [];
1579
- }
1580
- }
1581
- }), catchError((e) => throwError(this.errorHandler(e))));
1582
- }
1583
- errorHandler(e) {
1584
- throw new Error('Method not implemented.');
1585
- }
1586
- /*Method : POST
1587
- Parameter : subID , id
1588
- Action : Get configuration ID based on to show hide DOMAIN dropdown
1589
- */
1590
- getglobalConfigDetails(subid, id) {
1591
- return this._http
1592
- .post(GlobalConstants.baseURL +
1593
- 'meta/api/Metadata/GetArcosConfigsValues?subId=' +
1594
- subid, id)
1595
- .pipe(map((response) => {
1596
- let result = [];
1597
- if (response['statusCode'] === 200) {
1598
- let result = response['result'];
1599
- return result;
1600
- }
1601
- }), catchError((e) => throwError(this.errorHandler(e))));
1602
- }
1603
- /*Method : POST
1604
- Action : get login to user
1605
- */
1606
- // userAuthentication(userDetails: any) {
1607
- // return this._http
1608
- // .post(
1609
- // GlobalConstants.baseURL + 'xaccess/api/SecureAccess/Authenticate',
1610
- // userDetails
1611
- // )
1612
- // .pipe(
1613
- // map((response: any) => {
1614
- // if (response && response['data']) {
1615
- // return this.getDecryptAPIResponse(response['data']);
1616
- // }
1617
- // }),
1618
- // catchError((e) => throwError(this.errorHandler(e)))
1619
- // );
1620
- // }
1621
- /*Method : POST
1622
- Action : RESET Password for First Time User
1623
- */
1624
- setNewpassword(loggedInUserDetails) {
1625
- return this._http
1626
- .post(GlobalConstants.baseURL +
1627
- 'xaccess/api/SecureAccess/ChangeUserArcXwdManually', loggedInUserDetails)
1628
- .pipe(catchError((e) => throwError(this.errorHandler(e))));
1629
- }
1630
- /*Method : POST
1631
- Action :Will validate User entered PWD as
1632
- per Password Policy Set
1633
- */
1634
- validatePassword(userDetails) {
1635
- return this._http
1636
- .post(GlobalConstants.baseURL + 'xaccess/api/SecureAccess/ValidatePassword', userDetails)
1637
- .pipe(catchError((e) => throwError(this.errorHandler(e))));
1638
- }
1639
- /*Method : POST
1640
- Action : Get Public Key for encryption of Data */
1641
- getPrivateKey(params) {
1642
- return this._http
1643
- .post(GlobalConstants.baseURL + 'xaccess/api/SecureAccess/XKEDSync', params)
1644
- .pipe(catchError((e) => throwError(this.errorHandler(e))));
1645
- }
1646
- /* Method : POST
1647
- Action : Send request for OTP of MFA Authenticator */
1648
- sendMFAOTPRequest(mfaDetails) {
1649
- return this._http
1650
- .post(GlobalConstants.baseURL + 'xmfa/api/Mfa/mfa', mfaDetails)
1651
- .pipe(map((response) => {
1652
- let result = [];
1653
- if (response['success']) {
1654
- let result = response['result'];
1655
- return result;
1656
- }
1657
- }), catchError((e) => throwError(this.errorHandler(e))));
1658
- }
1659
- /* Method : POST
1660
- Action : Submit User Enter OTP of MFA Authenticator */
1661
- submitOtpForMfaVerification(mfaDetails) {
1662
- return this._http
1663
- .post(GlobalConstants.baseURL + 'xmfa/api/Mfa/mfavalidation', mfaDetails)
1664
- .pipe(map((response) => {
1665
- let result = [];
1666
- if (response['success']) {
1667
- let result = response['result'];
1668
- return result;
1669
- }
1670
- }), catchError((e) => throwError(this.errorHandler(e))));
1671
- }
1672
- /*Method : POST
1673
- Action : It will provide Token which used for multiple Application access */
1674
- getAuthToken(userDetails) {
1675
- return this._http
1676
- .post(GlobalConstants.baseURL + 'xauth/api/Token/GenerateJwtTokenApplication', userDetails)
1677
- .pipe(map((response) => {
1678
- if (response) {
1679
- return response;
1680
- }
1681
- else {
1682
- return '';
1683
- }
1684
- }), catchError((e) => throwError(this.errorHandler(e))));
1685
- }
1686
- /* Method : GET
1687
- Action : It will provide Token which used to established MFA Method */
1688
- // getMFAAccessTokenKey() {
1689
- // return this._http
1690
- // .get<any>(GlobalConstants.baseURL + 'xaccess/api/SecureAccess/GetMfaDetails')
1691
- // .pipe(
1692
- // map((response) => {
1693
- // if (response && response['data']) {
1694
- // return this.getDecryptAPIResponse(response['data']);
1695
- // }
1696
- // return {};
1697
- // }),
1698
- // catchError((e) => throwError(this.errorHandler(e)))
1699
- // );
1700
- // }
1701
- /* Method : POST
1702
- Action : It will check Valida User or not */
1703
- // checkUserExists(userDetails: any) {
1704
- // return this._http
1705
- // .post(
1706
- // GlobalConstants.baseURL + 'xaccess/api/SecureAccess/ValidateUser',
1707
- // userDetails
1708
- // )
1709
- // .pipe(
1710
- // map((response: any) => {
1711
- // if (response && response['data']) {
1712
- // return this.getDecryptAPIResponse(response['data']);
1713
- // }
1714
- // return {};
1715
- // }),
1716
- // catchError((e) => throwError(this.errorHandler(e)))
1717
- // );
1718
- // }
1719
- /* Method : POST
1720
- Action : Unlock User to enable login process */
1721
- unlockUserAccount(userDetails) {
1722
- return this._http
1723
- .post(GlobalConstants.baseURL + 'xaccess/api/SecureAccess/ValidateUser', userDetails)
1724
- .pipe(map((result) => {
1725
- return result;
1726
- }), catchError((e) => throwError(this.errorHandler(e))));
1727
- }
1728
- /* Method : GET
1729
- Action : It will provide Third Parth AUth Method etc. Google, Okta, Microsoft */
1730
- // getThirdPartySignInMethods() {
1731
- // return this._http
1732
- // .get(
1733
- // GlobalConstants.baseURL + 'xaccess/api/SecureAccess/GetThirdPartyDetail'
1734
- // )
1735
- // .pipe(
1736
- // map((response: any) => {
1737
- // let result: any = [];
1738
- // if (response['success']) {
1739
- // return response['result'];
1740
- // }
1741
- // return result;
1742
- // }),
1743
- // catchError((error: any) => throwError(this.errorHandler(error)))
1744
- // );
1745
- // }
1746
- /* Method : POST
1747
- Action : It will Verify plugin version is correct or not */
1748
- // public verifyUserInstalledPluginVersion(pluginInfo: any) {
1749
- // return this._http
1750
- // .post(GlobalConstants.baseURL + 'xaccess/api/SecureAccess/CheckAutoUpdatePAMPlugin',
1751
- // pluginInfo).pipe(
1752
- // map((response: any) => {
1753
- // return response['result'];
1754
- // }),
1755
- // catchError((error: any) => throwError(this.errorHandler(error)))
1756
- // );
1757
- // }
1758
- /**
1759
- * Verifies user authentication using Windows credentials.
1760
- */
1761
- // public checkAuthenticateWithWindowsCredentials(pluginInfo: any) {
1762
- // return this._http
1763
- // .post(GlobalConstants.baseURL + 'xdomainauth/api/DomainAuthentication/DomainAuth',
1764
- // // .post(GlobalConstants.baseURL + 'xaccess/api/SecureAccess/DomainAuth',
1765
- // pluginInfo).pipe(
1766
- // map((response: any) => {
1767
- // if (response && response['data']) {
1768
- // return this.getDecryptAPIResponse(response['data']);
1769
- // }
1770
- // return {};
1771
- // }),
1772
- // catchError((error: any) => throwError(this.errorHandler(error)))
1773
- // );
1774
- // }
1775
- /*Method : GET
1776
- Action : Get User Background Image and Logo */
1777
- getUserBackgroundImageAndLogo() {
1778
- return this._http
1779
- .get(GlobalConstants.baseURL + 'xaccess/api/SecureAccess/GetBackgroundImage')
1780
- .pipe(map((response) => {
1781
- return response;
1782
- }), catchError((error) => throwError(this.errorHandler(error))));
1783
- }
1784
- // public getVerifiedUserSessionDetails(authToken: string) {
1785
- // return this._http.post(
1786
- // GlobalConstants.baseURL + 'xaccess/api/SecureAccess/ValidateUserSessionDetail', { state: authToken }).pipe(
1787
- // map((response: any) => {
1788
- // if (response && response['data']) {
1789
- // return this.getDecryptAPIResponse(response['data']);
1790
- // }
1791
- // return {};
1792
- // }),
1793
- // catchError((error: any) => throwError(this.errorHandler(error)))
1794
- // );
1795
- // }
1796
- deleteCookieData(payload) {
1797
- const url = this.cookieService.getCookieValue('baseurl');
1798
- const delCookieEndpoint = `${url}xaccess/api/SecureAccess/cookiesUpdation`;
1799
- return this._http.post(delCookieEndpoint, payload);
1800
- }
1801
- /**
1802
- * Decrypts a base64-encoded, MessagePack-encoded ciphertext into its original tuple form.
1803
- *
1804
- * @param cipherText - The encrypted string received from the API.
1805
- * @returns The decoded tuple [key, value] if decryption is successful; otherwise, an empty object.
1806
- *
1807
- * Steps:
1808
- * 1. Decrypts the cipherText using custom crypto method.
1809
- * 2. Decodes the base64 response into a binary Uint8Array.
1810
- * 3. Deserializes the binary using MessagePack's decode to get the original data.
1811
- */
1812
- // private getDecryptAPIResponse_old(cipherText: string): any {
1813
- // if (cipherText) {
1814
- // const responseString =
1815
- // this._encryptDec.decryptResponseViaCrypto(cipherText);
1816
- // const binary = Uint8Array.from(atob(responseString), c => c.charCodeAt(0));
1817
- // const decodedArray = decode(binary) as [string, string];
1818
- // return decodedArray
1819
- // }
1820
- // return {};
1821
- // }
1822
- getDecryptAPIResponse(cipherText) {
1823
- return __awaiter(this, void 0, void 0, function* () {
1824
- if (cipherText) {
1825
- const responseString = yield this._encryptDec.decryptResponseViaCrypto(cipherText); // await here
1826
- const binary = Uint8Array.from(atob(responseString), (c) => c.charCodeAt(0));
1827
- const decodedArray = decode(binary);
1828
- return decodedArray;
1829
- }
1830
- return {};
1831
- });
1832
- }
1833
- }
1834
- RESTLoginFormService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: RESTLoginFormService, deps: [{ token: i1.HttpClient }, { token: CookieStorageManagerService }, { token: EncrydecrydataService }], target: i0.ɵɵFactoryTarget.Injectable });
1835
- RESTLoginFormService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: RESTLoginFormService, providedIn: 'root' });
1836
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: RESTLoginFormService, decorators: [{
1837
- type: Injectable,
1838
- args: [{
1839
- providedIn: 'root',
1840
- }]
1841
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: CookieStorageManagerService }, { type: EncrydecrydataService }]; } });
1842
-
1843
- class VaptValidationService {
1844
- constructor() { }
1845
- hasUnsafeInput(formData) {
1846
- const dangerousPattern = /<\s*(script|iframe|object|embed|link|style)\b[^>]*>(.*?)<\s*\/\s*\1\s*>|<\s*(script|iframe|object|embed|link|style)\b[^>]*\/?>|<[^>]+>/gi;
1847
- function checkValue(value) {
1848
- if (typeof value === 'string') {
1849
- return dangerousPattern.test(value);
1850
- }
1851
- if (Array.isArray(value)) {
1852
- return value.some(checkValue);
1853
- }
1854
- if (typeof value === 'object' && value !== null) {
1855
- return Object.values(value).some(checkValue);
1856
- }
1857
- // If it's a number, boolean, null, or undefined, ignore
1858
- return false;
1859
- }
1860
- return checkValue(formData);
1861
- }
1862
- }
1863
- VaptValidationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: VaptValidationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1864
- VaptValidationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: VaptValidationService, providedIn: 'root' });
1865
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: VaptValidationService, decorators: [{
1866
- type: Injectable,
1867
- args: [{
1868
- providedIn: 'root'
1869
- }]
1870
- }], ctorParameters: function () { return []; } });
1871
-
1872
- class HttpGeneralConfigurationService {
1873
- constructor(http) {
1874
- this.http = http;
1875
- this.xPageRefAPIUrl = '/xaccess/api/PagePreference/';
1876
- }
1877
- getUserPreferredAssetTypeDetails() {
1878
- return this.http
1879
- .get(`${GlobalConstants.baseURL}${this.xPageRefAPIUrl}GetAssetTypeDetails`)
1880
- .pipe(map$1((response) => {
1881
- if (response && response['success']) {
1882
- return response['result'];
1883
- }
1884
- else {
1885
- return [];
1886
- }
1887
- }), catchError$1((e) => throwError(this.errorHandler(e))));
1888
- }
1889
- getUserPreferredAssetName(payload) {
1890
- return this.http
1891
- .post(`${GlobalConstants.baseURL}${this.xPageRefAPIUrl}GetAssetName`, payload)
1892
- .pipe(map$1((response) => {
1893
- if (response && response['success']) {
1894
- return response['result'];
1895
- }
1896
- else {
1897
- return [];
1898
- }
1899
- }), catchError$1((e) => throwError(this.errorHandler(e))));
1900
- }
1901
- getServiceNameByAssetTypeEvent(payload) {
1902
- return this.http
1903
- .post(`${GlobalConstants.baseURL}${this.xPageRefAPIUrl}GetServiceDetails`, payload)
1904
- .pipe(map$1((response) => {
1905
- if (response && response['success']) {
1906
- return response['result'];
1907
- }
1908
- else {
1909
- return [];
1910
- }
1911
- }), catchError$1((e) => throwError(this.errorHandler(e))));
1912
- }
1913
- getPreferencePathDetails(payload) {
1914
- return this.http
1915
- .post(`${GlobalConstants.baseURL}${this.xPageRefAPIUrl}CurrentPreferencepathDetails`, payload)
1916
- .pipe(map$1((response) => {
1917
- if (response && response['success']) {
1918
- return response['result'];
1919
- }
1920
- else {
1921
- return {};
1922
- }
1923
- }), catchError$1((e) => throwError(this.errorHandler(e))));
1924
- }
1925
- updatePreferencePath(payload) {
1926
- return this.http
1927
- .post(`${GlobalConstants.baseURL}${this.xPageRefAPIUrl}UpdatePreferencePath`, payload)
1928
- .pipe(map$1((response) => {
1929
- if (response && response['success']) {
1930
- return true;
1931
- }
1932
- else {
1933
- return false;
1934
- }
1935
- }), catchError$1((e) => throwError(this.errorHandler(e))));
1936
- }
1937
- errorHandler(e) {
1938
- throw new Error('Method not implemented.');
1939
- }
1940
- }
1941
- HttpGeneralConfigurationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HttpGeneralConfigurationService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1942
- HttpGeneralConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HttpGeneralConfigurationService, providedIn: 'root' });
1943
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HttpGeneralConfigurationService, decorators: [{
1944
- type: Injectable,
1945
- args: [{
1946
- providedIn: 'root',
1947
- }]
1948
- }], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
1949
-
1950
- class TimezoneConfigurationComponent {
1951
- constructor(fb, msgService, _storageService, _eventService, translateService, httpCommonService) {
1952
- this.fb = fb;
1953
- this.msgService = msgService;
1954
- this._storageService = _storageService;
1955
- this._eventService = _eventService;
1956
- this.translateService = translateService;
1957
- this.httpCommonService = httpCommonService;
1958
- this.timeZoneForm = new FormGroup({}); //user Reset Password Form
1959
- this.ListOfTimeZones = [];
1960
- this.isTimezoneLoading = false;
1961
- this.isTimezoneupdate = false;
1962
- this.unsubscribeAPIEventListenerData = new Subject();
1963
- this.tzSuccessMsg = errorMsg.TIMEZONESUCCESS;
1964
- this.tzErrorMsg = errorMsg.TIMEZONERROR;
1965
- this.apiUrl = '';
1966
- this.closepopup = new EventEmitter();
1967
- }
1968
- ngAfterViewInit() {
1969
- this.getTranslateContent();
1970
- }
1971
- ngOnInit() {
1972
- this.getListofTimeZones();
1973
- this.getInitalizeForm();
1974
- }
1975
- getInitalizeForm() {
1976
- this.timeZoneForm = this.fb.group({
1977
- timezone: [null, Validators.required], // Add Validators.required
1978
- });
1979
- }
1980
- //Method: Convert text one Lang. to another
1981
- getTranslateContent() {
1982
- this.translateService
1983
- .get(['Generic_lib.TimeZoneSuccessMsg', 'Generic_lib.TimeZoneErrorMsg'])
1984
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData))
1985
- .subscribe((trans) => {
1986
- this.tzSuccessMsg = trans['Generic_lib.TimeZoneSuccessMsg'];
1987
- this.tzErrorMsg = trans['Generic_lib.TimeZoneErrorMsg'];
1988
- });
1989
- }
1990
- /*Method : GET
1991
- Action : Get List of Time Zone*/
1992
- getListofTimeZones() {
1993
- this.isTimezoneLoading = true;
1994
- this.httpCommonService
1995
- .getGlobalTimeZone()
1996
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData), finalize(() => {
1997
- this.isTimezoneLoading = false;
1998
- }))
1999
- .subscribe((result) => {
2000
- if (result && result['timelist']) {
2001
- this.ListOfTimeZones = result['timelist'];
2002
- }
2003
- if (result && result['userTimeZone']) {
2004
- let userTz = result['userTimeZone'];
2005
- const selectedTZ = this.ListOfTimeZones.find((tz) => tz.id === userTz);
2006
- this.setTimezoneOptionValue(selectedTZ);
2007
- }
2008
- });
2009
- }
2010
- /*Method : POST
2011
- Action : Used to Update User Selected TimeZone*/
2012
- setUserTimeZone() {
2013
- var _a;
2014
- const tz = (_a = this.timeZoneForm.get('timezone')) === null || _a === void 0 ? void 0 : _a.value;
2015
- let tzName = tz['id'];
2016
- this.showBtnLoadder(true);
2017
- this.httpCommonService
2018
- .updateUserTimeZone(tzName)
2019
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData), finalize(() => {
2020
- this.showBtnLoadder(false);
2021
- }))
2022
- .subscribe((result) => {
2023
- if (result) {
2024
- setTimeout(() => {
2025
- this.setTimezoneOptionValue(tz);
2026
- }, 10);
2027
- this.msgService.success(this.tzSuccessMsg);
2028
- this._storageService.removeData(COOKIECONSTANT.NEWUSER);
2029
- this._eventService.emitTimezone({
2030
- component: 'timezone',
2031
- usertimezoneAbbreviations: result,
2032
- userTimeZoneFullForm: '',
2033
- id: tz['id'],
2034
- timelist: this.ListOfTimeZones,
2035
- });
2036
- this.closepopup.emit(true);
2037
- this.timeZoneForm.reset();
2038
- }
2039
- else {
2040
- this.msgService.error(this.tzErrorMsg);
2041
- }
2042
- });
2043
- }
2044
- setTimezoneOptionValue(selectedTZ) {
2045
- var _a;
2046
- if (selectedTZ) {
2047
- this.selectedTimeZone = selectedTZ;
2048
- (_a = this.timeZoneForm.get('timezone')) === null || _a === void 0 ? void 0 : _a.setValue(this.selectedTimeZone);
2049
- }
2050
- }
2051
- showBtnLoadder(flag) {
2052
- this.isTimezoneupdate = flag;
2053
- }
2054
- ngOnDestroy() {
2055
- this.unsubscribeAPIEventListenerData.next(true);
2056
- this.unsubscribeAPIEventListenerData.complete();
2057
- }
2058
- }
2059
- TimezoneConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TimezoneConfigurationComponent, deps: [{ token: i2.FormBuilder }, { token: ToastMsgService }, { token: StorageService }, { token: EventService }, { token: i4.TranslateService }, { token: HttpCommonService }], target: i0.ɵɵFactoryTarget.Component });
2060
- TimezoneConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TimezoneConfigurationComponent, selector: "app-timezone-configuration", outputs: { closepopup: "closepopup" }, ngImport: i0, template: "<div class=\"preference-container\">\r\n <form [formGroup]=\"timeZoneForm\">\r\n <div class=\"mt-2\">\r\n <div class=\"form-group\">\r\n <div class=\"d-flex\">\r\n <div class=\"label-name\">{{\"Generic_lib.PreferredTimezone\" | translate }}</div>\r\n <span class=\"madontary-icon\">*</span>\r\n </div>\r\n <div class=\" timezone-dropdown\">\r\n <p-dropdown [options]=\"ListOfTimeZones\" filterPlaceholder='{{ \"Generic_lib.Search\" | translate }}'\r\n placeholder='{{\"Generic_lib.TimeZonePlaceHolder\" | translate}}' formControlName=\"timezone\"\r\n [(ngModel)]=\"selectedTimeZone\" [filter]=\"!isTimezoneLoading ? true:false\" optionLabel=\"displayName\"\r\n filterBy=\"displayName\" [showClear]=\"false\" panelStyleClass=\"{'dropdown-loader': isTimezoneLoading}\">\r\n\r\n <ng-template pTemplate=\"header\">\r\n <div *ngIf=\"isTimezoneLoading\" class=\"dropdown-loader-container\">\r\n <i class=\"pi pi-spin pi-spinner\"></i>\r\n </div>\r\n </ng-template></p-dropdown>\r\n </div>\r\n <ng-container *ngIf=\"\r\n timeZoneForm.get('timezone')?.invalid &&\r\n timeZoneForm.get('timezone')?.touched\r\n \">\r\n <span class=\"error-msg mt-1\">{{'Generic_lib.TimeZoneFieldValidation' | translate}}</span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n <div class=\"mt-2 update-btn\">\r\n <p-button class=\"submit-btn\" label=\"{{'Generic_lib.Update' | translate}}\" [disabled]=\"timeZoneForm.invalid\"\r\n iconPos=\"right\" [loading]=\"isTimezoneupdate\" (onClick)=\"setUserTimeZone()\"></p-button>\r\n </div>\r\n </form>\r\n</div>", styles: [".preference-container .path-title{font-size:20px;color:#292f4c}.preference-container .form-group{margin-bottom:15px}.preference-container .label-name{font-size:12px;color:#292f4c;line-height:26px;font-weight:600}.preference-container .cur-text{font-size:12px;color:#676879;line-height:26px;font-weight:600}\n"], dependencies: [{ kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i8.Dropdown, selector: "p-dropdown", inputs: ["scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "filterPlaceholder", "filterLocale", "inputId", "selectId", "dataKey", "filterBy", "autofocus", "resetFilterOnHide", "dropdownIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "overlayDirection", "disabled", "itemSize", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "options", "filterValue"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "directive", type: i9.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i10.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "style", "styleClass", "badgeClass", "ariaLabel"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }] });
2061
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TimezoneConfigurationComponent, decorators: [{
2062
- type: Component,
2063
- args: [{ selector: 'app-timezone-configuration', template: "<div class=\"preference-container\">\r\n <form [formGroup]=\"timeZoneForm\">\r\n <div class=\"mt-2\">\r\n <div class=\"form-group\">\r\n <div class=\"d-flex\">\r\n <div class=\"label-name\">{{\"Generic_lib.PreferredTimezone\" | translate }}</div>\r\n <span class=\"madontary-icon\">*</span>\r\n </div>\r\n <div class=\" timezone-dropdown\">\r\n <p-dropdown [options]=\"ListOfTimeZones\" filterPlaceholder='{{ \"Generic_lib.Search\" | translate }}'\r\n placeholder='{{\"Generic_lib.TimeZonePlaceHolder\" | translate}}' formControlName=\"timezone\"\r\n [(ngModel)]=\"selectedTimeZone\" [filter]=\"!isTimezoneLoading ? true:false\" optionLabel=\"displayName\"\r\n filterBy=\"displayName\" [showClear]=\"false\" panelStyleClass=\"{'dropdown-loader': isTimezoneLoading}\">\r\n\r\n <ng-template pTemplate=\"header\">\r\n <div *ngIf=\"isTimezoneLoading\" class=\"dropdown-loader-container\">\r\n <i class=\"pi pi-spin pi-spinner\"></i>\r\n </div>\r\n </ng-template></p-dropdown>\r\n </div>\r\n <ng-container *ngIf=\"\r\n timeZoneForm.get('timezone')?.invalid &&\r\n timeZoneForm.get('timezone')?.touched\r\n \">\r\n <span class=\"error-msg mt-1\">{{'Generic_lib.TimeZoneFieldValidation' | translate}}</span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n <div class=\"mt-2 update-btn\">\r\n <p-button class=\"submit-btn\" label=\"{{'Generic_lib.Update' | translate}}\" [disabled]=\"timeZoneForm.invalid\"\r\n iconPos=\"right\" [loading]=\"isTimezoneupdate\" (onClick)=\"setUserTimeZone()\"></p-button>\r\n </div>\r\n </form>\r\n</div>", styles: [".preference-container .path-title{font-size:20px;color:#292f4c}.preference-container .form-group{margin-bottom:15px}.preference-container .label-name{font-size:12px;color:#292f4c;line-height:26px;font-weight:600}.preference-container .cur-text{font-size:12px;color:#676879;line-height:26px;font-weight:600}\n"] }]
2064
- }], ctorParameters: function () { return [{ type: i2.FormBuilder }, { type: ToastMsgService }, { type: StorageService }, { type: EventService }, { type: i4.TranslateService }, { type: HttpCommonService }]; }, propDecorators: { closepopup: [{
2065
- type: Output
2066
- }] } });
2067
-
2068
- class LandingpgConfigComponent {
2069
- constructor(libService, fb, msgService, translateService, _encryptRSAService, httpCommonService) {
2070
- this.libService = libService;
2071
- this.fb = fb;
2072
- this.msgService = msgService;
2073
- this.translateService = translateService;
2074
- this._encryptRSAService = _encryptRSAService;
2075
- this.httpCommonService = httpCommonService;
2076
- this.AppNameForm = new FormGroup({});
2077
- this.ListofApplicationNames = [];
2078
- this.isAppNameLoading = false;
2079
- this.isAppNameUpdate = false;
2080
- this.updateSuccess = errorMsg.LANDINGPGSUCCESS;
2081
- this.updateError = errorMsg.LANDINGPGERROR;
2082
- this.userConfiguredApp = {};
2083
- this.unsubscribeAPIEventListenerData = new Subject();
2084
- this.apiUrl = '';
2085
- }
2086
- ngAfterViewInit() {
2087
- this.getTranslateContent();
2088
- }
2089
- ngOnInit() {
2090
- this.getListofApplications();
2091
- this.getInitalizeForm();
2092
- }
2093
- getInitalizeForm() {
2094
- this.AppNameForm = this.fb.group({
2095
- userApp: [null, Validators.required],
2096
- });
2097
- }
2098
- //Method: Convert text one Lang. to another
2099
- getTranslateContent() {
2100
- this.translateService
2101
- .get([
2102
- 'Generic_lib.LandingPageSuccessMsg',
2103
- 'Generic_lib.LandingPageErrorMsg',
2104
- ])
2105
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData))
2106
- .subscribe((trans) => {
2107
- this.updateSuccess = trans['Generic_lib.LandingPageSuccessMsg'];
2108
- this.updateError = trans['Generic_lib.LandingPageErrorMsg'];
2109
- });
2110
- }
2111
- /*Method : GET
2112
- Action : Get List of User Assign Application*/
2113
- getListofApplications() {
2114
- this.isAppNameLoading = true;
2115
- this.httpCommonService
2116
- .getUserAssignedApps()
2117
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData), finalize(() => {
2118
- this.isAppNameLoading = false;
2119
- }))
2120
- .subscribe((response) => {
2121
- this.ListofApplicationNames = response;
2122
- this.userConfiguredApp = this.ListofApplicationNames.find((app) => app.isAssignedLanding);
2123
- this.setPostLoginModuleOption(this.userConfiguredApp);
2124
- });
2125
- }
2126
- /*Method : POST
2127
- Action : Used to Update User Preferred Landing App Name*/
2128
- getUpdateLandingPgPreference() {
2129
- var _a;
2130
- const userApp = (_a = this.AppNameForm.get('userApp')) === null || _a === void 0 ? void 0 : _a.value;
2131
- const moduleId = this._encryptRSAService.encryptViaRSA(userApp['appCode']);
2132
- this.showBtnLoadder(true);
2133
- this.httpCommonService
2134
- .setLandingPgPreference(moduleId)
2135
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData), finalize(() => {
2136
- this.showBtnLoadder(false);
2137
- }))
2138
- .subscribe((result) => {
2139
- if (result) {
2140
- setTimeout(() => {
2141
- this.setPostLoginModuleOption(userApp);
2142
- }, 10);
2143
- this.msgService.success(this.updateSuccess);
2144
- this.AppNameForm.reset();
2145
- }
2146
- else {
2147
- this.msgService.error(this.updateError);
2148
- }
2149
- });
2150
- }
2151
- setPostLoginModuleOption(userConfiguredApp) {
2152
- var _a;
2153
- if (userConfiguredApp) {
2154
- (_a = this.AppNameForm.get('userApp')) === null || _a === void 0 ? void 0 : _a.setValue(userConfiguredApp);
2155
- }
2156
- }
2157
- showBtnLoadder(flag) {
2158
- this.isAppNameUpdate = flag;
2159
- }
2160
- ngOnDestroy() {
2161
- this.unsubscribeAPIEventListenerData.next(true);
2162
- this.unsubscribeAPIEventListenerData.complete();
2163
- }
2164
- }
2165
- LandingpgConfigComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LandingpgConfigComponent, deps: [{ token: CommonHeaderLibService }, { token: i2.FormBuilder }, { token: ToastMsgService }, { token: i4.TranslateService }, { token: EncrydecryRSAdataService }, { token: HttpCommonService }], target: i0.ɵɵFactoryTarget.Component });
2166
- LandingpgConfigComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: LandingpgConfigComponent, selector: "app-landingpg-config", ngImport: i0, template: "<div class=\"preference-container\">\r\n <form [formGroup]=\"AppNameForm\">\r\n <div class=\"mt-2\">\r\n <div class=\"form-group\">\r\n <div class=\"d-flex\">\r\n <div class=\"label-name\">{{ \"Generic_lib.LandingPageConfig\" | translate }}</div>\r\n <span class=\"madontary-icon\">*</span>\r\n </div>\r\n <div class=\" timezone-dropdown\">\r\n <p-dropdown [options]=\"ListofApplicationNames\"\r\n placeholder='{{\"Generic_lib.LandingPagePlaceHolder\" | translate}}'\r\n filterPlaceholder='{{\"Generic_lib.Search\" | translate }}' formControlName=\"userApp\"\r\n [filter]=\"!isAppNameLoading ? true:false\" optionLabel=\"applicationName\" filterBy=\"applicationName\"\r\n [showClear]=\"false\" panelStyleClass=\"{'dropdown-loader': isAppNameLoading}\">\r\n\r\n <ng-template pTemplate=\"header\">\r\n <div *ngIf=\"isAppNameLoading\" class=\"dropdown-loader-container\">\r\n <i class=\"pi pi-spin pi-spinner\"></i>\r\n </div>\r\n </ng-template>\r\n </p-dropdown>\r\n </div>\r\n <ng-container *ngIf=\"AppNameForm.get('userApp')?.invalid && AppNameForm.get('userApp')?.touched\">\r\n <span class=\"error-msg mt-1\">{{'Generic_lib.LandingPageValidation' | translate}}</span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n <div class=\"mt-2 update-btn\">\r\n <p-button class=\"submit-btn\" label=\"{{'Generic_lib.Update' | translate}}\" [disabled]=\"AppNameForm.invalid\"\r\n iconPos=\"right\" [loading]=\"isAppNameUpdate\" (onClick)=\"getUpdateLandingPgPreference()\"></p-button>\r\n </div>\r\n </form>\r\n</div>", styles: [".preference-container .path-title{font-size:20px;color:#292f4c}.preference-container .form-group{margin-bottom:15px}.preference-container .label-name{font-size:12px;color:#292f4c;line-height:26px;font-weight:600}.preference-container .cur-text{font-size:12px;color:#676879;line-height:26px;font-weight:600}\n"], dependencies: [{ kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i8.Dropdown, selector: "p-dropdown", inputs: ["scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "filterPlaceholder", "filterLocale", "inputId", "selectId", "dataKey", "filterBy", "autofocus", "resetFilterOnHide", "dropdownIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "overlayDirection", "disabled", "itemSize", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "options", "filterValue"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "directive", type: i9.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i10.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "style", "styleClass", "badgeClass", "ariaLabel"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }] });
2167
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LandingpgConfigComponent, decorators: [{
2168
- type: Component,
2169
- args: [{ selector: 'app-landingpg-config', template: "<div class=\"preference-container\">\r\n <form [formGroup]=\"AppNameForm\">\r\n <div class=\"mt-2\">\r\n <div class=\"form-group\">\r\n <div class=\"d-flex\">\r\n <div class=\"label-name\">{{ \"Generic_lib.LandingPageConfig\" | translate }}</div>\r\n <span class=\"madontary-icon\">*</span>\r\n </div>\r\n <div class=\" timezone-dropdown\">\r\n <p-dropdown [options]=\"ListofApplicationNames\"\r\n placeholder='{{\"Generic_lib.LandingPagePlaceHolder\" | translate}}'\r\n filterPlaceholder='{{\"Generic_lib.Search\" | translate }}' formControlName=\"userApp\"\r\n [filter]=\"!isAppNameLoading ? true:false\" optionLabel=\"applicationName\" filterBy=\"applicationName\"\r\n [showClear]=\"false\" panelStyleClass=\"{'dropdown-loader': isAppNameLoading}\">\r\n\r\n <ng-template pTemplate=\"header\">\r\n <div *ngIf=\"isAppNameLoading\" class=\"dropdown-loader-container\">\r\n <i class=\"pi pi-spin pi-spinner\"></i>\r\n </div>\r\n </ng-template>\r\n </p-dropdown>\r\n </div>\r\n <ng-container *ngIf=\"AppNameForm.get('userApp')?.invalid && AppNameForm.get('userApp')?.touched\">\r\n <span class=\"error-msg mt-1\">{{'Generic_lib.LandingPageValidation' | translate}}</span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n <div class=\"mt-2 update-btn\">\r\n <p-button class=\"submit-btn\" label=\"{{'Generic_lib.Update' | translate}}\" [disabled]=\"AppNameForm.invalid\"\r\n iconPos=\"right\" [loading]=\"isAppNameUpdate\" (onClick)=\"getUpdateLandingPgPreference()\"></p-button>\r\n </div>\r\n </form>\r\n</div>", styles: [".preference-container .path-title{font-size:20px;color:#292f4c}.preference-container .form-group{margin-bottom:15px}.preference-container .label-name{font-size:12px;color:#292f4c;line-height:26px;font-weight:600}.preference-container .cur-text{font-size:12px;color:#676879;line-height:26px;font-weight:600}\n"] }]
2170
- }], ctorParameters: function () { return [{ type: CommonHeaderLibService }, { type: i2.FormBuilder }, { type: ToastMsgService }, { type: i4.TranslateService }, { type: EncrydecryRSAdataService }, { type: HttpCommonService }]; } });
2171
-
2172
- class GeneralConfigurationComponent {
2173
- constructor(libService, fb, msgService, encryptService, loginService, _validatePwdService, translateService, _vaptService, config, httpCommonService, httpGeneralConfigService) {
2174
- this.libService = libService;
2175
- this.fb = fb;
2176
- this.msgService = msgService;
2177
- this.encryptService = encryptService;
2178
- this.loginService = loginService;
2179
- this._validatePwdService = _validatePwdService;
2180
- this.translateService = translateService;
2181
- this._vaptService = _vaptService;
2182
- this.config = config;
2183
- this.httpCommonService = httpCommonService;
2184
- this.httpGeneralConfigService = httpGeneralConfigService;
2185
- // export class GeneralConfigurationComponent {
2186
- this.ShowPreferencePathScreen = true;
2187
- this.ShowUserProfileScreen = false;
2188
- this.ShowChangePasswordScreen = false;
2189
- this.ShowTimeZoneScreen = false;
2190
- this.ShowLandinPgScreen = false;
2191
- this.ShowTimeZoneBtn = false;
2192
- this.showStatus = false;
2193
- this.userAssetTypeList = [];
2194
- this.userAssetNameList = [];
2195
- this.userServiceList = [];
2196
- this.userSelectedTimezone = '';
2197
- // private domainName: string = '';
2198
- // private domainID: number;
2199
- // private LoggedInUserID: number;
2200
- // private username: string;
2201
- this.filePathName = '';
2202
- this.lastUpdatedFileStatus = '';
2203
- this.appSettingForm = new FormGroup({}); // Define form group
2204
- this.userResetPasswordForm = new FormGroup({}); //user Reset Password Form
2205
- this.timeZoneForm = new FormGroup({}); //user Reset Password Form
2206
- this.unsubscribeAPIEventListenerData = new Subject();
2207
- this.makeNewPwdVisible = true;
2208
- this.makeOldPwdVisible = true;
2209
- this.makeCnfrmPwdVisible = true;
2210
- this.isAssetTypeLoading = false;
2211
- this.isAssetNameLoading = false;
2212
- this.isConnectionMethodLoading = false;
2213
- this.isPathUpdated = false;
2214
- this.pwderrorMsg = '';
2215
- this.AssetTypeEvent = 'AssetType';
2216
- this.AssetNameEvent = 'AssetName';
2217
- this.ConnectionMethodEvent = 'ConnectionMethod';
2218
- this.pathSuccessMsg = errorMsg.PATHSUCCESS;
2219
- this.pathErrorMsg = errorMsg.PATHERROR;
2220
- this.apiURL = '';
2221
- }
2222
- ngOnInit() {
2223
- //Get Initalize Form
2224
- this.getInitalizeForm();
2225
- this.OpenPreferencePathScreen();
2226
- }
2227
- ngAfterViewInit() {
2228
- this.getTranslateContent();
2229
- // Get PWD Validation MSg From Validation Service
2230
- this._validatePwdService.listValidationMsg().subscribe((msg) => {
2231
- this.pwderrorMsg = msg;
2232
- });
2233
- }
2234
- getInitalizeForm() {
2235
- this.appSettingForm = this.fb.group({
2236
- AssetType: ['', Validators.required],
2237
- AssetName: ['', Validators.required],
2238
- ServiceName: ['', Validators.required],
2239
- filePathName: ['', [Validators.required, noSpaceAllowed()]],
2240
- });
2241
- this.timeZoneForm = this.fb.group({
2242
- timezone: ['', Validators.required],
2243
- });
2244
- // Password Reset Form
2245
- this.userResetPasswordForm = this.fb.group({
2246
- oldUserARCXWD: ['', [Validators.required]],
2247
- newUserARCXWD: [
2248
- '',
2249
- [Validators.required],
2250
- [this._validatePwdService.createValidator()],
2251
- ],
2252
- crnmNewUserARCXWD: ['', [Validators.required]],
2253
- }, {
2254
- validator: ConfirmedValidator('newUserARCXWD', 'crnmNewUserARCXWD'),
2255
- });
2256
- }
2257
- // //Method: Convert text one Lang. to another
2258
- getTranslateContent() {
2259
- this.translateService
2260
- .get([
2261
- 'Generic_lib.PreferencePathSuccessMsg',
2262
- 'Generic_lib.PreferencePathErrorMsg',
2263
- ])
2264
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData))
2265
- .subscribe((trans) => {
2266
- this.pathSuccessMsg = trans['Generic_lib.PreferencePathSuccessMsg'];
2267
- this.pathErrorMsg = trans['Generic_lib.PreferencePathErrorMsg'];
2268
- });
2269
- }
2270
- OpenPreferencePathScreen() {
2271
- this.closeAllScreen();
2272
- setTimeout(() => {
2273
- this.ShowPreferencePathScreen = true;
2274
- this.appSettingForm.reset();
2275
- this.userAssetTypeList = [];
2276
- this.userAssetNameList = [];
2277
- this.userServiceList = [];
2278
- this.getServiceAssetDetails();
2279
- }, 10);
2280
- }
2281
- OpenUserProfileScreen() {
2282
- this.closeAllScreen();
2283
- this.ShowUserProfileScreen = true;
2284
- }
2285
- OpenChangePasswordScreen() {
2286
- this.closeAllScreen();
2287
- this.ShowChangePasswordScreen = true;
2288
- this.userResetPasswordForm.reset();
2289
- // this.getEncryptKey();
2290
- }
2291
- OpenTimezoneScreen() {
2292
- this.closeAllScreen();
2293
- this.ShowTimeZoneScreen = true;
2294
- }
2295
- OpenLandingPgConfig() {
2296
- this.closeAllScreen();
2297
- this.ShowLandinPgScreen = true;
2298
- }
2299
- closeAllScreen() {
2300
- this.ShowPreferencePathScreen = false;
2301
- this.ShowUserProfileScreen = false;
2302
- this.ShowChangePasswordScreen = false;
2303
- this.ShowTimeZoneScreen = false;
2304
- this.ShowLandinPgScreen = false;
2305
- }
2306
- preferencePathValueChange(eventName) {
2307
- var _a, _b, _c;
2308
- if (eventName === this.AssetTypeEvent) {
2309
- const assetType = (_a = this.appSettingForm.get('AssetType')) === null || _a === void 0 ? void 0 : _a.value;
2310
- this.showStatus = false;
2311
- this.resetFormfields(['AssetName', 'ServiceName', 'filePathName']);
2312
- this.userAssetNameList = [];
2313
- this.userServiceList = [];
2314
- this.getServiceAssetName(assetType['assetTypeID']);
2315
- }
2316
- else if (eventName === this.AssetNameEvent) {
2317
- const assetName = (_b = this.appSettingForm.get('AssetName')) === null || _b === void 0 ? void 0 : _b.value;
2318
- this.showStatus = false;
2319
- this.resetFormfields(['ServiceName', 'filePathName']);
2320
- this.userServiceList = [];
2321
- this.fetchServiceNameByAssetTypeEvent(assetName['assetName']);
2322
- }
2323
- else if (eventName === this.ConnectionMethodEvent) {
2324
- const ServiceDetails = (_c = this.appSettingForm.get('ServiceName')) === null || _c === void 0 ? void 0 : _c.value;
2325
- this.showStatus = false;
2326
- this.resetFormfields(['filePathName']);
2327
- this.getFilePathDetails(ServiceDetails['serviceTypeId']);
2328
- }
2329
- }
2330
- // /*Action : Used to Get Asset Type to update Prefrence Path of Connectors */
2331
- getServiceAssetDetails() {
2332
- this.isAssetTypeLoading = true;
2333
- this.httpGeneralConfigService
2334
- .getUserPreferredAssetTypeDetails()
2335
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData), finalize(() => {
2336
- this.isAssetTypeLoading = false;
2337
- }))
2338
- .subscribe((data) => {
2339
- this.userAssetTypeList = data;
2340
- });
2341
- }
2342
- // /*Action : Used to Get Asset Name to update Prefrence Path of that Asset's Connectors */
2343
- getServiceAssetName(assetTypeID) {
2344
- this.isAssetNameLoading = true;
2345
- let payload = {
2346
- assetTypeId: assetTypeID,
2347
- };
2348
- this.httpGeneralConfigService
2349
- .getUserPreferredAssetName(payload)
2350
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData), finalize(() => {
2351
- this.isAssetNameLoading = false;
2352
- }))
2353
- .subscribe((data) => {
2354
- this.userAssetNameList = data;
2355
- });
2356
- }
2357
- // /*Method : GET
2358
- // Action : get User Assigned ServiceName By AssetTypeEvent */
2359
- fetchServiceNameByAssetTypeEvent(assetName) {
2360
- this.isConnectionMethodLoading = true;
2361
- let payload = {
2362
- assetName: assetName,
2363
- };
2364
- this.httpGeneralConfigService
2365
- .getServiceNameByAssetTypeEvent(payload)
2366
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData), finalize(() => {
2367
- this.isConnectionMethodLoading = false;
2368
- }))
2369
- .subscribe((data) => {
2370
- this.userServiceList = data;
2371
- });
2372
- }
2373
- // /*Method : GET
2374
- // Action : Fetch User's File Path Details and Status already set or not */
2375
- getFilePathDetails(serviceID) {
2376
- let payload = {
2377
- // userId: this.LoggedInUserID,
2378
- serviceTypeId: serviceID,
2379
- };
2380
- this.httpGeneralConfigService
2381
- .getPreferencePathDetails(payload)
2382
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData))
2383
- .subscribe((res) => {
2384
- this.preferencePathID = res['spmId'];
2385
- if (res && res['currentSetting'] && res['lastUpdate']) {
2386
- this.showStatus = true;
2387
- this.filePathName = res['currentSetting'];
2388
- this.lastUpdatedFileStatus = res['lastUpdate'];
2389
- }
2390
- else {
2391
- this.filePathName = '';
2392
- this.showStatus = false;
2393
- this.lastUpdatedFileStatus = '';
2394
- }
2395
- });
2396
- }
2397
- // /*Action : It saves or updates a preference path of user */
2398
- setUserPreferencePath(appSettingForm) {
2399
- this.toggleBtnLoadder(true);
2400
- const userpath = String(appSettingForm.value['filePathName']).trim();
2401
- let payload = {
2402
- // userId: this.LoggedInUserID,
2403
- // userLogTime: this._cookieService.getCookieValue(COOKIECONSTANT.SESSIONID),
2404
- serviceTypeId: appSettingForm.value['ServiceName']['serviceTypeId'],
2405
- supDescription: userpath,
2406
- spmId: this.preferencePathID,
2407
- };
2408
- this.httpGeneralConfigService
2409
- .updatePreferencePath(payload)
2410
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData), finalize(() => {
2411
- this.toggleBtnLoadder(false);
2412
- }))
2413
- .subscribe((res) => {
2414
- if (res) {
2415
- this.resetForm();
2416
- this.showStatus = false;
2417
- this.msgService.success(this.pathSuccessMsg);
2418
- }
2419
- else {
2420
- this.msgService.error(this.pathErrorMsg);
2421
- }
2422
- });
2423
- }
2424
- // //Method : Used to perform password reset of User
2425
- resetLoggedInPwd() {
2426
- if (this._vaptService.hasUnsafeInput(this.userResetPasswordForm.value)) {
2427
- this.msgService.error(errorMsg.SCRIPTERROR);
2428
- return;
2429
- }
2430
- this.userResetPasswordForm.markAllAsTouched();
2431
- if (this.userResetPasswordForm.valid) {
2432
- this.changeLoggedInPwd();
2433
- }
2434
- }
2435
- // /*Method: will User New Password to API */
2436
- changeLoggedInPwd() {
2437
- //For Encrp/Dec
2438
- let oldUserARCXWD = this.encryptService.encryptViaRSA(this.userResetPasswordForm.value['oldUserARCXWD']);
2439
- //For Encrp/Dec
2440
- let newUserARCXWD = this.encryptService.encryptViaRSA(this.userResetPasswordForm.value['newUserARCXWD']);
2441
- let userPwdDetails = {
2442
- ipAddress: '',
2443
- oldUserARCXWD: oldUserARCXWD,
2444
- newUserARCXWD: newUserARCXWD,
2445
- authenticationType: 0,
2446
- };
2447
- this.toggleBtnLoadder(true);
2448
- this.httpCommonService
2449
- .setNewpassword(userPwdDetails)
2450
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData), finalize(() => {
2451
- this.toggleBtnLoadder(false);
2452
- }))
2453
- .subscribe((data) => {
2454
- if (data['success']) {
2455
- this.msgService.success(data['message']);
2456
- this.userResetPasswordForm.reset();
2457
- }
2458
- else if (!data['success']) {
2459
- this.msgService.error(data['errorMessage']);
2460
- }
2461
- });
2462
- }
2463
- // /*Method:
2464
- // Action : Get Public Key for encryption of User Details */
2465
- getEncryptKey() {
2466
- let params = {
2467
- type: 0,
2468
- };
2469
- this.loginService
2470
- .getPrivateKey(params)
2471
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData))
2472
- .subscribe((data) => {
2473
- if (data['success'] === true) {
2474
- LoggedInUserInfo.privateKey = data['result'];
2475
- }
2476
- else if (data['success'] === false) {
2477
- this.msgService.error('Session Token Error !');
2478
- }
2479
- });
2480
- }
2481
- // /*Method : POST
2482
- // Action : Get configuration ID based on to show hide Time Zone*/
2483
- getglobalConfigDetails() {
2484
- this.loginService
2485
- .getglobalConfigDetails('1', [336])
2486
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData))
2487
- .subscribe((data) => {
2488
- if (data && data.length > 0) {
2489
- data.forEach((element) => {
2490
- if (element && element['id'] === 336 && element['value'] === '0') {
2491
- this.ShowTimeZoneBtn = true;
2492
- }
2493
- else {
2494
- this.ShowTimeZoneBtn = false;
2495
- }
2496
- });
2497
- }
2498
- });
2499
- }
2500
- // // Show/Hide Password Fileds of Change Pwd form
2501
- togglePasswordVisibility(flag) {
2502
- if (flag === 1) {
2503
- this.makeOldPwdVisible = !this.makeOldPwdVisible;
2504
- }
2505
- else if (flag === 2) {
2506
- this.makeNewPwdVisible = !this.makeNewPwdVisible;
2507
- }
2508
- else if (flag === 3) {
2509
- this.makeCnfrmPwdVisible = !this.makeCnfrmPwdVisible;
2510
- }
2511
- }
2512
- resetForm() {
2513
- this.appSettingForm.reset();
2514
- }
2515
- resetFormfields(fields) {
2516
- fields.forEach((fieldsName) => {
2517
- var _a;
2518
- (_a = this.appSettingForm.get(fieldsName)) === null || _a === void 0 ? void 0 : _a.reset();
2519
- });
2520
- }
2521
- toggleBtnLoadder(flag) {
2522
- this.isPathUpdated = flag;
2523
- }
2524
- ngOnDestroy() {
2525
- this.unsubscribeAPIEventListenerData.next(true);
2526
- this.unsubscribeAPIEventListenerData.complete();
2527
- }
2528
- }
2529
- GeneralConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: GeneralConfigurationComponent, deps: [{ token: CommonHeaderLibService }, { token: i2.FormBuilder }, { token: ToastMsgService }, { token: EncrydecryRSAdataService }, { token: RESTLoginFormService }, { token: ASYNCPasswordcheckService }, { token: i4.TranslateService }, { token: VaptValidationService }, { token: i1$3.DynamicDialogConfig }, { token: HttpCommonService }, { token: HttpGeneralConfigurationService }], target: i0.ɵɵFactoryTarget.Component });
2530
- GeneralConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: GeneralConfigurationComponent, selector: "app-general-configuration", providers: [DialogService], ngImport: i0, template: "<div class=\"row my-3\">\r\n <!-- Left_Card_Started -->\r\n <div class=\"col-lg-4 pl-0\">\r\n <div class=\"left-card\">\r\n <div class=\"p-3\">\r\n <div\r\n class=\"profile-card\"\r\n [ngClass]=\"{ active: ShowPreferencePathScreen }\"\r\n (click)=\"OpenPreferencePathScreen()\"\r\n >\r\n <div class=\"p-2\">\r\n <div class=\"profile-label\">\r\n {{ \"Generic_lib.PreferencePath\" | translate }}\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"profile-card\"\r\n [ngClass]=\"{ active: ShowChangePasswordScreen }\"\r\n (click)=\"OpenChangePasswordScreen()\"\r\n >\r\n <div class=\"p-2\">\r\n <div class=\"profile-label\">\r\n {{ \"Generic_lib.ChangePassword\" | translate }}\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"profile-card\"\r\n [ngClass]=\"{ active: ShowTimeZoneScreen }\"\r\n (click)=\"OpenTimezoneScreen()\"\r\n >\r\n <div class=\"p-2\">\r\n <div class=\"profile-label\">\r\n {{ \"Generic_lib.PreferredTimezone\" | translate }}\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"profile-card\"\r\n [ngClass]=\"{ active: ShowLandinPgScreen }\"\r\n (click)=\"OpenLandingPgConfig()\"\r\n >\r\n <div class=\"p-2\">\r\n <div class=\"profile-label\">\r\n {{ \"Generic_lib.LandingPageConfig\" | translate }}\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <!-- Left_Card_Ended -->\r\n\r\n <!--User Profile -->\r\n <ng-container *ngIf=\"ShowUserProfileScreen\">\r\n <div class=\"col-lg-6\">\r\n <div class=\"initial-text\">\r\n {{ \"AK\" }}\r\n </div>\r\n <div class=\"preference-container\">\r\n <!--Card-->\r\n <div class=\"mt-3\">\r\n <div class=\"form-group\">\r\n <div class=\"label-name\">\r\n {{ \"Generic_lib.UserName\" | translate }}\r\n </div>\r\n <div class=\"input-dropdown d-flex align-items-center\">\r\n <input\r\n type=\"text\"\r\n pInputText\r\n formControlName=\"text\"\r\n placeholder=\"{{ 'Generic_lib.UserName' | translate }}\"\r\n autocomplete=\"off\"\r\n />\r\n <img\r\n src=\"assets/common-header-lib/images/images/user-name.svg\"\r\n alt=\"Icon\"\r\n class=\"position-absolute px-2\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"form-group\">\r\n <div class=\"label-name\">{{ \"Generic_lib.Email\" | translate }}</div>\r\n <div class=\"input-dropdown d-flex align-items-center\">\r\n <input\r\n type=\"text\"\r\n pInputText\r\n formControlName=\"text\"\r\n placeholder=\"{{ 'Generic_lib.EmailAddress' | translate }}\"\r\n autocomplete=\"off\"\r\n />\r\n <img\r\n src=\"assets/common-header-lib/images/gc-mail.svg\"\r\n alt=\"Icon\"\r\n class=\"position-absolute px-2\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"mt-4\">\r\n <p-button class=\"submit-btn\" label=\"Submit\"></p-button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n\r\n <!-- Preference PathScreen -->\r\n <ng-container>\r\n <!-- <ng-container *ngIf=\"ShowPreferencePathScreen\"> -->\r\n <div class=\"col-lg-6\" [hidden]=\"!ShowPreferencePathScreen\">\r\n <div class=\"preference-container\">\r\n <div class=\"mt-3\">\r\n <form [formGroup]=\"appSettingForm\">\r\n <div class=\"form-group\">\r\n <div class=\"d-flex\">\r\n <div class=\"label-name\">\r\n {{ \"Generic_lib.AssetType\" | translate }}\r\n </div>\r\n <span class=\"madontary-icon\">*</span>\r\n </div>\r\n <div class=\"assets-dropdown\">\r\n <p-dropdown\r\n [options]=\"userAssetTypeList\"\r\n formControlName=\"AssetType\"\r\n placeholder=\"{{\r\n 'Generic_lib.AssetTypePlaceholder' | translate\r\n }}\"\r\n filterPlaceholder=\"{{ 'Generic_lib.Search' | translate }}\"\r\n (onChange)=\"preferencePathValueChange(AssetTypeEvent)\"\r\n optionLabel=\"assetType\"\r\n [filter]=\"!isAssetTypeLoading ? true : false\"\r\n filterBy=\"assetType\"\r\n [showClear]=\"false\"\r\n [resetFilterOnHide]=\"true\"\r\n panelStyleClass=\"{'dropdown-loader': isAssetTypeLoading}\"\r\n >\r\n <ng-template pTemplate=\"header\">\r\n <div\r\n *ngIf=\"isAssetTypeLoading\"\r\n class=\"dropdown-loader-container\"\r\n >\r\n <i class=\"pi pi-spin pi-spinner\"></i>\r\n </div>\r\n </ng-template>\r\n </p-dropdown>\r\n </div>\r\n <ng-container\r\n *ngIf=\"\r\n appSettingForm.get('AssetType')?.invalid &&\r\n appSettingForm.get('AssetType')?.touched\r\n \"\r\n >\r\n <span class=\"error-msg mt-2\">{{\r\n \"Generic_lib.AssetTypeFieldValidation\" | translate\r\n }}</span>\r\n </ng-container>\r\n </div>\r\n <div class=\"form-group\">\r\n <div class=\"d-flex\">\r\n <div class=\"label-name\">\r\n {{ \"Generic_lib.AssetName\" | translate }}\r\n </div>\r\n <span class=\"madontary-icon\">*</span>\r\n </div>\r\n <div class=\"assets-dropdown\">\r\n <p-dropdown\r\n [options]=\"userAssetNameList\"\r\n formControlName=\"AssetName\"\r\n placeholder=\"{{\r\n 'Generic_lib.AssetNamePlaceholder' | translate\r\n }}\"\r\n filterPlaceholder=\"{{ 'Generic_lib.Search' | translate }}\"\r\n optionLabel=\"assetName\"\r\n [filter]=\"!isAssetNameLoading ? true : false\"\r\n filterBy=\"assetType\"\r\n (onChange)=\"preferencePathValueChange(AssetNameEvent)\"\r\n filterBy=\"assetName\"\r\n panelStyleClass=\"{'dropdown-loader': isAssetNameLoading}\"\r\n [showClear]=\"false\"\r\n >\r\n <ng-template pTemplate=\"header\">\r\n <div\r\n *ngIf=\"isAssetNameLoading\"\r\n class=\"dropdown-loader-container\"\r\n >\r\n <i class=\"pi pi-spin pi-spinner\"></i>\r\n </div>\r\n </ng-template>\r\n </p-dropdown>\r\n </div>\r\n <ng-container\r\n *ngIf=\"\r\n appSettingForm.get('AssetName')?.invalid &&\r\n appSettingForm.get('AssetName')?.touched\r\n \"\r\n >\r\n <span class=\"error-msg mt-2\">{{\r\n \"Generic_lib.AssetNameFieldValidation\" | translate\r\n }}</span>\r\n </ng-container>\r\n </div>\r\n <div class=\"form-group\">\r\n <div class=\"d-flex\">\r\n <div class=\"label-name\">\r\n {{ \"Generic_lib.ConnectionMethod\" | translate }}\r\n </div>\r\n <span class=\"madontary-icon\">*</span>\r\n </div>\r\n <div class=\"assets-dropdown\">\r\n <p-dropdown\r\n [options]=\"userServiceList\"\r\n formControlName=\"ServiceName\"\r\n filterPlaceholder=\"{{ 'Generic_lib.Search' | translate }}\"\r\n placeholder=\"{{\r\n 'Generic_lib.ConnectionMethodPlaceholder' | translate\r\n }}\"\r\n optionLabel=\"tbvDescrption\"\r\n [filter]=\"true\"\r\n filterBy=\"tbvDescrption\"\r\n (onChange)=\"preferencePathValueChange(ConnectionMethodEvent)\"\r\n [filter]=\"!isConnectionMethodLoading ? true : false\"\r\n [showClear]=\"false\"\r\n panelStyleClass=\"{'dropdown-loader': isConnectionMethodLoading}\"\r\n >\r\n <ng-template pTemplate=\"header\">\r\n <div\r\n *ngIf=\"isConnectionMethodLoading\"\r\n class=\"dropdown-loader-container\"\r\n >\r\n <i class=\"pi pi-spin pi-spinner\"></i>\r\n </div> </ng-template\r\n ></p-dropdown>\r\n </div>\r\n <ng-container\r\n *ngIf=\"\r\n appSettingForm.get('ServiceName')?.invalid &&\r\n appSettingForm.get('ServiceName')?.touched\r\n \"\r\n >\r\n <span class=\"error-msg mt-2\">{{\r\n \"Generic_lib.ConnectionMethodFieldValidation\" | translate\r\n }}</span>\r\n </ng-container>\r\n </div>\r\n <div class=\"form-group position-relative\">\r\n <div class=\"d-flex\">\r\n <div class=\"label-name\">\r\n {{ \"Generic_lib.PreferencePath\" | translate }}\r\n </div>\r\n <span class=\"madontary-icon\">*</span>\r\n </div>\r\n <div class=\"input-dropdown d-flex align-items-center\">\r\n <input\r\n type=\"text\"\r\n placeholder=\"{{ 'Generic_lib.PreferencePath' | translate }}\"\r\n pInputText\r\n formControlName=\"filePathName\"\r\n id=\"filepath\"\r\n name=\"filepath\"\r\n autocomplete=\"off\"\r\n />\r\n <img\r\n src=\"assets/common-header-lib/images/filepath.svg\"\r\n alt=\"path Icon\"\r\n class=\"position-absolute mx-2 img-lock ext\"\r\n />\r\n </div>\r\n <ng-container\r\n *ngIf=\"\r\n appSettingForm.get('filePathName')?.invalid &&\r\n (appSettingForm.get('filePathName')?.touched ||\r\n appSettingForm.get('filePathName')?.dirty)\r\n \"\r\n >\r\n <ng-container\r\n *ngIf=\"\r\n appSettingForm.controls['filePathName'].errors?.['required']\r\n \"\r\n >\r\n <span class=\"error-msg mt-2\">{{\r\n \"Generic_lib.PreferencePathFieldValidation\" | translate\r\n }}</span>\r\n </ng-container>\r\n <ng-container\r\n *ngIf=\"\r\n appSettingForm.controls['filePathName'].errors?.['noSpace']\r\n \"\r\n >\r\n <span class=\"error-msg mt-2\">{{\r\n \"Generic_lib.PreferencePathFieldSpaceValidation\" | translate\r\n }}</span>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n <ng-container *ngIf=\"showStatus\">\r\n <div class=\"form-group d-flex align-items-center\">\r\n <div class=\"label-name\">\r\n {{ \"Generic_lib.CurrentSetting\" | translate }} :\r\n </div>\r\n <div class=\"cur-text mx-2\">{{ filePathName }}</div>\r\n </div>\r\n <div class=\"form-group d-flex align-items-center\">\r\n <div class=\"label-name\">\r\n {{ \"Generic_lib.LastUpdated\" | translate }}\r\n </div>\r\n <div class=\"cur-text mx-2\">{{ lastUpdatedFileStatus }}</div>\r\n </div>\r\n </ng-container>\r\n <div class=\"mt-4\">\r\n <p-button\r\n class=\"submit-btn\"\r\n label=\"{{ 'Generic_lib.Update' | translate }}\"\r\n [disabled]=\"appSettingForm.invalid\"\r\n (onClick)=\"setUserPreferencePath(appSettingForm)\"\r\n iconPos=\"right\"\r\n [loading]=\"isPathUpdated\"\r\n ></p-button>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n\r\n <!-- TimeZone Screen -->\r\n <ng-container *ngIf=\"ShowTimeZoneScreen\">\r\n <div class=\"col-lg-6\">\r\n <app-timezone-configuration></app-timezone-configuration>\r\n </div>\r\n </ng-container>\r\n\r\n <!-- LandingPg Config Screen -->\r\n <ng-container *ngIf=\"ShowLandinPgScreen\">\r\n <div class=\"col-lg-6\">\r\n <app-landingpg-config></app-landingpg-config>\r\n </div>\r\n </ng-container>\r\n\r\n <!--Change Password Screen -->\r\n <!-- <ng-container *ngIf=\"ShowChangePasswordScreen\"> -->\r\n <ng-container>\r\n <div class=\"col-lg-6\" [hidden]=\"!ShowChangePasswordScreen\">\r\n <div class=\"preference-container\">\r\n <div class=\"mt-3\">\r\n <form [formGroup]=\"userResetPasswordForm\">\r\n <div class=\"form-group\">\r\n <div class=\"d-flex\">\r\n <div class=\"label-name\">\r\n {{ \"Generic_lib.CurrentPassword\" | translate }}\r\n </div>\r\n <span class=\"madontary-icon\">*</span>\r\n </div>\r\n <div\r\n class=\"input-dropdown d-flex align-items-center position-relative\"\r\n >\r\n <div class=\"password-checkbox-right\">\r\n <div class=\"checkbox-visibility-icon\">\r\n <input\r\n type=\"checkbox\"\r\n (click)=\"togglePasswordVisibility(1)\"\r\n autocomplete=\"off\"\r\n />\r\n <span></span>\r\n </div>\r\n </div>\r\n <input\r\n type=\"{{ makeOldPwdVisible ? 'password' : 'text' }}\"\r\n placeholder=\"{{\r\n 'Generic_lib.PasswordPlaceholder' | translate\r\n }}\"\r\n pInputText\r\n formControlName=\"oldUserARCXWD\"\r\n autocomplete=\"off\"\r\n id=\"oldpwd\"\r\n name=\"oldpwd\"\r\n autocomplete=\"off\"\r\n />\r\n\r\n <img\r\n src=\"assets/common-header-lib/images/lock-pass.svg\"\r\n alt=\"lock Icon\"\r\n class=\"position-absolute mx-2 img-lock\"\r\n />\r\n </div>\r\n <ng-container\r\n *ngIf=\"\r\n userResetPasswordForm.get('oldUserARCXWD')?.invalid &&\r\n userResetPasswordForm.get('oldUserARCXWD')?.touched\r\n \"\r\n >\r\n <span class=\"error-msg mt-2\">{{\r\n \"Generic_lib.PasswordFieldValidation\" | translate\r\n }}</span>\r\n </ng-container>\r\n </div>\r\n <div class=\"form-group\">\r\n <div class=\"d-flex\">\r\n <div class=\"label-name\">\r\n {{ \"Generic_lib.NewPassword\" | translate }}\r\n </div>\r\n <span class=\"madontary-icon\">*</span>\r\n </div>\r\n <div\r\n class=\"input-dropdown d-flex align-items-center position-relative\"\r\n >\r\n <div class=\"password-checkbox-right\">\r\n <div class=\"checkbox-visibility-icon\">\r\n <input\r\n type=\"checkbox\"\r\n (click)=\"togglePasswordVisibility(2)\"\r\n autocomplete=\"off\"\r\n />\r\n <span></span>\r\n </div>\r\n </div>\r\n <input\r\n type=\"{{ makeNewPwdVisible ? 'password' : 'text' }}\"\r\n placeholder=\"{{\r\n 'Generic_lib.NewPasswordPlaceholder' | translate\r\n }}\"\r\n pInputText\r\n formControlName=\"newUserARCXWD\"\r\n id=\"newpwd\"\r\n autocomplete=\"off\"\r\n name=\"newpwd\"\r\n autocomplete=\"off\"\r\n />\r\n\r\n <img\r\n src=\"assets/common-header-lib/images/lock-pass.svg\"\r\n alt=\"lock Icon\"\r\n class=\"position-absolute mx-2 img-lock\"\r\n />\r\n </div>\r\n <ng-container\r\n *ngIf=\"\r\n userResetPasswordForm\r\n .get('newUserARCXWD')\r\n ?.hasError('required') &&\r\n userResetPasswordForm.get('newUserARCXWD')?.touched\r\n \"\r\n >\r\n <span class=\"error-msg mt-2\">{{\r\n \"Generic_lib.NewPasswordFieldValidation\" | translate\r\n }}</span>\r\n </ng-container>\r\n <ng-container\r\n *ngIf=\"\r\n userResetPasswordForm\r\n .get('newUserARCXWD')\r\n ?.hasError('pwdInvalid') &&\r\n userResetPasswordForm.get('newUserARCXWD')?.touched\r\n \"\r\n >\r\n <span class=\"error-msg mt-2\">{{ pwderrorMsg }}</span>\r\n </ng-container>\r\n </div>\r\n <div class=\"form-group\">\r\n <div class=\"d-flex\">\r\n <div class=\"label-name\">\r\n {{ \"Generic_lib.ConfirmPassword\" | translate }}\r\n </div>\r\n <span class=\"madontary-icon\">*</span>\r\n </div>\r\n <div\r\n class=\"input-dropdown d-flex align-items-center position-relative\"\r\n >\r\n <div class=\"password-checkbox-right\">\r\n <div class=\"checkbox-visibility-icon\">\r\n <input\r\n type=\"checkbox\"\r\n (click)=\"togglePasswordVisibility(3)\"\r\n autocomplete=\"off\"\r\n />\r\n <span></span>\r\n </div>\r\n </div>\r\n <input\r\n type=\"{{ makeCnfrmPwdVisible ? 'password' : 'text' }}\"\r\n placeholder=\"{{\r\n 'Generic_lib.ConfirmPasswordPlaceholder' | translate\r\n }}\"\r\n pInputText\r\n formControlName=\"crnmNewUserARCXWD\"\r\n autocomplete=\"off\"\r\n id=\"crnmnewpwd\"\r\n name=\"crnmnewpwd\"\r\n />\r\n\r\n <img\r\n src=\"assets/common-header-lib/images/lock-pass.svg\"\r\n alt=\"eye Icon\"\r\n class=\"position-absolute mx-2 img-lock\"\r\n />\r\n </div>\r\n <ng-container\r\n *ngIf=\"\r\n userResetPasswordForm\r\n .get('crnmNewUserARCXWD')\r\n ?.hasError('required') &&\r\n userResetPasswordForm.get('crnmNewUserARCXWD')?.touched\r\n \"\r\n >\r\n <span class=\"error-msg mt-2\">{{\r\n \"Generic_lib.ConfirmPasswordFieldValidation\" | translate\r\n }}</span>\r\n </ng-container>\r\n <span\r\n class=\"error-msg mt-2\"\r\n *ngIf=\"\r\n userResetPasswordForm\r\n .get('crnmNewUserARCXWD')\r\n ?.hasError('confirmedValidator')\r\n \"\r\n >\r\n {{\r\n \"Generic_lib.ConfirmPasswordFieldNewValidation\" | translate\r\n }}\r\n </span>\r\n </div>\r\n\r\n <div class=\"mt-4\">\r\n <p-button\r\n class=\"submit-btn\"\r\n label=\"{{ 'Generic_lib.Update' | translate }}\"\r\n iconPos=\"right\"\r\n [loading]=\"isPathUpdated\"\r\n label=\"Update\"\r\n (onClick)=\"resetLoggedInPwd()\"\r\n ></p-button>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n</div>\r\n", styles: [".pl{padding-left:0!important}.left-card{height:450px!important;background:#f6f7fb!important;border-radius:8px!important}.left-card .profile-label{font-size:13px!important;color:#292f4c!important;font-weight:600!important}.left-card .profile-text{color:#676879!important;font-size:12px!important;font-weight:400!important;line-height:20px!important}.initial-text{width:50px;height:50px;display:flex;align-items:center;justify-content:center;font-size:15px;border-radius:50%;color:#fff;background-color:#8e562e}.preference-container .path-title{font-size:20px;color:#292f4c}.preference-container .form-group{margin-bottom:15px}.preference-container .label-name{font-size:12px;color:#292f4c;line-height:26px;font-weight:600}.preference-container .cur-text{font-size:12px;color:#676879;line-height:26px;font-weight:600}.checkbox-visibility-icon{position:relative}.checkbox-visibility-icon input[type=checkbox]{opacity:0;position:absolute;top:4px;left:5px;transform:scale(1.7);z-index:2;cursor:pointer}.checkbox-visibility-icon input[type=checkbox]:checked+span{background:url(assets/common-header-lib/images/login-bg/visibility.svg);background-repeat:no-repeat;background-position:0px;height:12px;width:18px;display:block;background-size:17px}@media (min-width: 992px){.checkbox-visibility-icon input[type=checkbox]:checked+span{height:12px;width:18px;background-size:17px}}.checkbox-visibility-icon input[type=checkbox]+span{background:url(assets/common-header-lib/images/login-bg/visibility_off.svg);background-repeat:no-repeat;background-position:0px;height:12px;width:18px;display:block;background-size:17px}@media (min-width: 992px){.checkbox-visibility-icon input[type=checkbox]+span{height:24px;width:18px;background-size:17px}}.input-dropdown .p-inputtext{width:100%!important;border-radius:4px!important;font-size:12px!important;padding-left:28px!important;height:38px!important;border:1px solid #ced4da!important}.p-dropdown-filter-container input{border:1px solid #ced4da!important}.profile-card{cursor:pointer}.profile-card:hover{background:#e9ecef;color:#292f4c;border-radius:4px}.profile-card.active{border-radius:4px;cursor:pointer;background:#dcdfec url(assets/common-header-lib/images/grey-arrow.svg) no-repeat 96%}\n"], dependencies: [{ kind: "directive", type: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i13.InputText, selector: "[pInputText]" }, { kind: "component", type: i8.Dropdown, selector: "p-dropdown", inputs: ["scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "filterPlaceholder", "filterLocale", "inputId", "selectId", "dataKey", "filterBy", "autofocus", "resetFilterOnHide", "dropdownIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "overlayDirection", "disabled", "itemSize", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "options", "filterValue"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "directive", type: i9.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i10.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "style", "styleClass", "badgeClass", "ariaLabel"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: TimezoneConfigurationComponent, selector: "app-timezone-configuration", outputs: ["closepopup"] }, { kind: "component", type: LandingpgConfigComponent, selector: "app-landingpg-config" }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }] });
2531
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: GeneralConfigurationComponent, decorators: [{
2532
- type: Component,
2533
- args: [{ selector: 'app-general-configuration', providers: [DialogService], template: "<div class=\"row my-3\">\r\n <!-- Left_Card_Started -->\r\n <div class=\"col-lg-4 pl-0\">\r\n <div class=\"left-card\">\r\n <div class=\"p-3\">\r\n <div\r\n class=\"profile-card\"\r\n [ngClass]=\"{ active: ShowPreferencePathScreen }\"\r\n (click)=\"OpenPreferencePathScreen()\"\r\n >\r\n <div class=\"p-2\">\r\n <div class=\"profile-label\">\r\n {{ \"Generic_lib.PreferencePath\" | translate }}\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"profile-card\"\r\n [ngClass]=\"{ active: ShowChangePasswordScreen }\"\r\n (click)=\"OpenChangePasswordScreen()\"\r\n >\r\n <div class=\"p-2\">\r\n <div class=\"profile-label\">\r\n {{ \"Generic_lib.ChangePassword\" | translate }}\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"profile-card\"\r\n [ngClass]=\"{ active: ShowTimeZoneScreen }\"\r\n (click)=\"OpenTimezoneScreen()\"\r\n >\r\n <div class=\"p-2\">\r\n <div class=\"profile-label\">\r\n {{ \"Generic_lib.PreferredTimezone\" | translate }}\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"profile-card\"\r\n [ngClass]=\"{ active: ShowLandinPgScreen }\"\r\n (click)=\"OpenLandingPgConfig()\"\r\n >\r\n <div class=\"p-2\">\r\n <div class=\"profile-label\">\r\n {{ \"Generic_lib.LandingPageConfig\" | translate }}\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <!-- Left_Card_Ended -->\r\n\r\n <!--User Profile -->\r\n <ng-container *ngIf=\"ShowUserProfileScreen\">\r\n <div class=\"col-lg-6\">\r\n <div class=\"initial-text\">\r\n {{ \"AK\" }}\r\n </div>\r\n <div class=\"preference-container\">\r\n <!--Card-->\r\n <div class=\"mt-3\">\r\n <div class=\"form-group\">\r\n <div class=\"label-name\">\r\n {{ \"Generic_lib.UserName\" | translate }}\r\n </div>\r\n <div class=\"input-dropdown d-flex align-items-center\">\r\n <input\r\n type=\"text\"\r\n pInputText\r\n formControlName=\"text\"\r\n placeholder=\"{{ 'Generic_lib.UserName' | translate }}\"\r\n autocomplete=\"off\"\r\n />\r\n <img\r\n src=\"assets/common-header-lib/images/images/user-name.svg\"\r\n alt=\"Icon\"\r\n class=\"position-absolute px-2\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"form-group\">\r\n <div class=\"label-name\">{{ \"Generic_lib.Email\" | translate }}</div>\r\n <div class=\"input-dropdown d-flex align-items-center\">\r\n <input\r\n type=\"text\"\r\n pInputText\r\n formControlName=\"text\"\r\n placeholder=\"{{ 'Generic_lib.EmailAddress' | translate }}\"\r\n autocomplete=\"off\"\r\n />\r\n <img\r\n src=\"assets/common-header-lib/images/gc-mail.svg\"\r\n alt=\"Icon\"\r\n class=\"position-absolute px-2\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"mt-4\">\r\n <p-button class=\"submit-btn\" label=\"Submit\"></p-button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n\r\n <!-- Preference PathScreen -->\r\n <ng-container>\r\n <!-- <ng-container *ngIf=\"ShowPreferencePathScreen\"> -->\r\n <div class=\"col-lg-6\" [hidden]=\"!ShowPreferencePathScreen\">\r\n <div class=\"preference-container\">\r\n <div class=\"mt-3\">\r\n <form [formGroup]=\"appSettingForm\">\r\n <div class=\"form-group\">\r\n <div class=\"d-flex\">\r\n <div class=\"label-name\">\r\n {{ \"Generic_lib.AssetType\" | translate }}\r\n </div>\r\n <span class=\"madontary-icon\">*</span>\r\n </div>\r\n <div class=\"assets-dropdown\">\r\n <p-dropdown\r\n [options]=\"userAssetTypeList\"\r\n formControlName=\"AssetType\"\r\n placeholder=\"{{\r\n 'Generic_lib.AssetTypePlaceholder' | translate\r\n }}\"\r\n filterPlaceholder=\"{{ 'Generic_lib.Search' | translate }}\"\r\n (onChange)=\"preferencePathValueChange(AssetTypeEvent)\"\r\n optionLabel=\"assetType\"\r\n [filter]=\"!isAssetTypeLoading ? true : false\"\r\n filterBy=\"assetType\"\r\n [showClear]=\"false\"\r\n [resetFilterOnHide]=\"true\"\r\n panelStyleClass=\"{'dropdown-loader': isAssetTypeLoading}\"\r\n >\r\n <ng-template pTemplate=\"header\">\r\n <div\r\n *ngIf=\"isAssetTypeLoading\"\r\n class=\"dropdown-loader-container\"\r\n >\r\n <i class=\"pi pi-spin pi-spinner\"></i>\r\n </div>\r\n </ng-template>\r\n </p-dropdown>\r\n </div>\r\n <ng-container\r\n *ngIf=\"\r\n appSettingForm.get('AssetType')?.invalid &&\r\n appSettingForm.get('AssetType')?.touched\r\n \"\r\n >\r\n <span class=\"error-msg mt-2\">{{\r\n \"Generic_lib.AssetTypeFieldValidation\" | translate\r\n }}</span>\r\n </ng-container>\r\n </div>\r\n <div class=\"form-group\">\r\n <div class=\"d-flex\">\r\n <div class=\"label-name\">\r\n {{ \"Generic_lib.AssetName\" | translate }}\r\n </div>\r\n <span class=\"madontary-icon\">*</span>\r\n </div>\r\n <div class=\"assets-dropdown\">\r\n <p-dropdown\r\n [options]=\"userAssetNameList\"\r\n formControlName=\"AssetName\"\r\n placeholder=\"{{\r\n 'Generic_lib.AssetNamePlaceholder' | translate\r\n }}\"\r\n filterPlaceholder=\"{{ 'Generic_lib.Search' | translate }}\"\r\n optionLabel=\"assetName\"\r\n [filter]=\"!isAssetNameLoading ? true : false\"\r\n filterBy=\"assetType\"\r\n (onChange)=\"preferencePathValueChange(AssetNameEvent)\"\r\n filterBy=\"assetName\"\r\n panelStyleClass=\"{'dropdown-loader': isAssetNameLoading}\"\r\n [showClear]=\"false\"\r\n >\r\n <ng-template pTemplate=\"header\">\r\n <div\r\n *ngIf=\"isAssetNameLoading\"\r\n class=\"dropdown-loader-container\"\r\n >\r\n <i class=\"pi pi-spin pi-spinner\"></i>\r\n </div>\r\n </ng-template>\r\n </p-dropdown>\r\n </div>\r\n <ng-container\r\n *ngIf=\"\r\n appSettingForm.get('AssetName')?.invalid &&\r\n appSettingForm.get('AssetName')?.touched\r\n \"\r\n >\r\n <span class=\"error-msg mt-2\">{{\r\n \"Generic_lib.AssetNameFieldValidation\" | translate\r\n }}</span>\r\n </ng-container>\r\n </div>\r\n <div class=\"form-group\">\r\n <div class=\"d-flex\">\r\n <div class=\"label-name\">\r\n {{ \"Generic_lib.ConnectionMethod\" | translate }}\r\n </div>\r\n <span class=\"madontary-icon\">*</span>\r\n </div>\r\n <div class=\"assets-dropdown\">\r\n <p-dropdown\r\n [options]=\"userServiceList\"\r\n formControlName=\"ServiceName\"\r\n filterPlaceholder=\"{{ 'Generic_lib.Search' | translate }}\"\r\n placeholder=\"{{\r\n 'Generic_lib.ConnectionMethodPlaceholder' | translate\r\n }}\"\r\n optionLabel=\"tbvDescrption\"\r\n [filter]=\"true\"\r\n filterBy=\"tbvDescrption\"\r\n (onChange)=\"preferencePathValueChange(ConnectionMethodEvent)\"\r\n [filter]=\"!isConnectionMethodLoading ? true : false\"\r\n [showClear]=\"false\"\r\n panelStyleClass=\"{'dropdown-loader': isConnectionMethodLoading}\"\r\n >\r\n <ng-template pTemplate=\"header\">\r\n <div\r\n *ngIf=\"isConnectionMethodLoading\"\r\n class=\"dropdown-loader-container\"\r\n >\r\n <i class=\"pi pi-spin pi-spinner\"></i>\r\n </div> </ng-template\r\n ></p-dropdown>\r\n </div>\r\n <ng-container\r\n *ngIf=\"\r\n appSettingForm.get('ServiceName')?.invalid &&\r\n appSettingForm.get('ServiceName')?.touched\r\n \"\r\n >\r\n <span class=\"error-msg mt-2\">{{\r\n \"Generic_lib.ConnectionMethodFieldValidation\" | translate\r\n }}</span>\r\n </ng-container>\r\n </div>\r\n <div class=\"form-group position-relative\">\r\n <div class=\"d-flex\">\r\n <div class=\"label-name\">\r\n {{ \"Generic_lib.PreferencePath\" | translate }}\r\n </div>\r\n <span class=\"madontary-icon\">*</span>\r\n </div>\r\n <div class=\"input-dropdown d-flex align-items-center\">\r\n <input\r\n type=\"text\"\r\n placeholder=\"{{ 'Generic_lib.PreferencePath' | translate }}\"\r\n pInputText\r\n formControlName=\"filePathName\"\r\n id=\"filepath\"\r\n name=\"filepath\"\r\n autocomplete=\"off\"\r\n />\r\n <img\r\n src=\"assets/common-header-lib/images/filepath.svg\"\r\n alt=\"path Icon\"\r\n class=\"position-absolute mx-2 img-lock ext\"\r\n />\r\n </div>\r\n <ng-container\r\n *ngIf=\"\r\n appSettingForm.get('filePathName')?.invalid &&\r\n (appSettingForm.get('filePathName')?.touched ||\r\n appSettingForm.get('filePathName')?.dirty)\r\n \"\r\n >\r\n <ng-container\r\n *ngIf=\"\r\n appSettingForm.controls['filePathName'].errors?.['required']\r\n \"\r\n >\r\n <span class=\"error-msg mt-2\">{{\r\n \"Generic_lib.PreferencePathFieldValidation\" | translate\r\n }}</span>\r\n </ng-container>\r\n <ng-container\r\n *ngIf=\"\r\n appSettingForm.controls['filePathName'].errors?.['noSpace']\r\n \"\r\n >\r\n <span class=\"error-msg mt-2\">{{\r\n \"Generic_lib.PreferencePathFieldSpaceValidation\" | translate\r\n }}</span>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n <ng-container *ngIf=\"showStatus\">\r\n <div class=\"form-group d-flex align-items-center\">\r\n <div class=\"label-name\">\r\n {{ \"Generic_lib.CurrentSetting\" | translate }} :\r\n </div>\r\n <div class=\"cur-text mx-2\">{{ filePathName }}</div>\r\n </div>\r\n <div class=\"form-group d-flex align-items-center\">\r\n <div class=\"label-name\">\r\n {{ \"Generic_lib.LastUpdated\" | translate }}\r\n </div>\r\n <div class=\"cur-text mx-2\">{{ lastUpdatedFileStatus }}</div>\r\n </div>\r\n </ng-container>\r\n <div class=\"mt-4\">\r\n <p-button\r\n class=\"submit-btn\"\r\n label=\"{{ 'Generic_lib.Update' | translate }}\"\r\n [disabled]=\"appSettingForm.invalid\"\r\n (onClick)=\"setUserPreferencePath(appSettingForm)\"\r\n iconPos=\"right\"\r\n [loading]=\"isPathUpdated\"\r\n ></p-button>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n\r\n <!-- TimeZone Screen -->\r\n <ng-container *ngIf=\"ShowTimeZoneScreen\">\r\n <div class=\"col-lg-6\">\r\n <app-timezone-configuration></app-timezone-configuration>\r\n </div>\r\n </ng-container>\r\n\r\n <!-- LandingPg Config Screen -->\r\n <ng-container *ngIf=\"ShowLandinPgScreen\">\r\n <div class=\"col-lg-6\">\r\n <app-landingpg-config></app-landingpg-config>\r\n </div>\r\n </ng-container>\r\n\r\n <!--Change Password Screen -->\r\n <!-- <ng-container *ngIf=\"ShowChangePasswordScreen\"> -->\r\n <ng-container>\r\n <div class=\"col-lg-6\" [hidden]=\"!ShowChangePasswordScreen\">\r\n <div class=\"preference-container\">\r\n <div class=\"mt-3\">\r\n <form [formGroup]=\"userResetPasswordForm\">\r\n <div class=\"form-group\">\r\n <div class=\"d-flex\">\r\n <div class=\"label-name\">\r\n {{ \"Generic_lib.CurrentPassword\" | translate }}\r\n </div>\r\n <span class=\"madontary-icon\">*</span>\r\n </div>\r\n <div\r\n class=\"input-dropdown d-flex align-items-center position-relative\"\r\n >\r\n <div class=\"password-checkbox-right\">\r\n <div class=\"checkbox-visibility-icon\">\r\n <input\r\n type=\"checkbox\"\r\n (click)=\"togglePasswordVisibility(1)\"\r\n autocomplete=\"off\"\r\n />\r\n <span></span>\r\n </div>\r\n </div>\r\n <input\r\n type=\"{{ makeOldPwdVisible ? 'password' : 'text' }}\"\r\n placeholder=\"{{\r\n 'Generic_lib.PasswordPlaceholder' | translate\r\n }}\"\r\n pInputText\r\n formControlName=\"oldUserARCXWD\"\r\n autocomplete=\"off\"\r\n id=\"oldpwd\"\r\n name=\"oldpwd\"\r\n autocomplete=\"off\"\r\n />\r\n\r\n <img\r\n src=\"assets/common-header-lib/images/lock-pass.svg\"\r\n alt=\"lock Icon\"\r\n class=\"position-absolute mx-2 img-lock\"\r\n />\r\n </div>\r\n <ng-container\r\n *ngIf=\"\r\n userResetPasswordForm.get('oldUserARCXWD')?.invalid &&\r\n userResetPasswordForm.get('oldUserARCXWD')?.touched\r\n \"\r\n >\r\n <span class=\"error-msg mt-2\">{{\r\n \"Generic_lib.PasswordFieldValidation\" | translate\r\n }}</span>\r\n </ng-container>\r\n </div>\r\n <div class=\"form-group\">\r\n <div class=\"d-flex\">\r\n <div class=\"label-name\">\r\n {{ \"Generic_lib.NewPassword\" | translate }}\r\n </div>\r\n <span class=\"madontary-icon\">*</span>\r\n </div>\r\n <div\r\n class=\"input-dropdown d-flex align-items-center position-relative\"\r\n >\r\n <div class=\"password-checkbox-right\">\r\n <div class=\"checkbox-visibility-icon\">\r\n <input\r\n type=\"checkbox\"\r\n (click)=\"togglePasswordVisibility(2)\"\r\n autocomplete=\"off\"\r\n />\r\n <span></span>\r\n </div>\r\n </div>\r\n <input\r\n type=\"{{ makeNewPwdVisible ? 'password' : 'text' }}\"\r\n placeholder=\"{{\r\n 'Generic_lib.NewPasswordPlaceholder' | translate\r\n }}\"\r\n pInputText\r\n formControlName=\"newUserARCXWD\"\r\n id=\"newpwd\"\r\n autocomplete=\"off\"\r\n name=\"newpwd\"\r\n autocomplete=\"off\"\r\n />\r\n\r\n <img\r\n src=\"assets/common-header-lib/images/lock-pass.svg\"\r\n alt=\"lock Icon\"\r\n class=\"position-absolute mx-2 img-lock\"\r\n />\r\n </div>\r\n <ng-container\r\n *ngIf=\"\r\n userResetPasswordForm\r\n .get('newUserARCXWD')\r\n ?.hasError('required') &&\r\n userResetPasswordForm.get('newUserARCXWD')?.touched\r\n \"\r\n >\r\n <span class=\"error-msg mt-2\">{{\r\n \"Generic_lib.NewPasswordFieldValidation\" | translate\r\n }}</span>\r\n </ng-container>\r\n <ng-container\r\n *ngIf=\"\r\n userResetPasswordForm\r\n .get('newUserARCXWD')\r\n ?.hasError('pwdInvalid') &&\r\n userResetPasswordForm.get('newUserARCXWD')?.touched\r\n \"\r\n >\r\n <span class=\"error-msg mt-2\">{{ pwderrorMsg }}</span>\r\n </ng-container>\r\n </div>\r\n <div class=\"form-group\">\r\n <div class=\"d-flex\">\r\n <div class=\"label-name\">\r\n {{ \"Generic_lib.ConfirmPassword\" | translate }}\r\n </div>\r\n <span class=\"madontary-icon\">*</span>\r\n </div>\r\n <div\r\n class=\"input-dropdown d-flex align-items-center position-relative\"\r\n >\r\n <div class=\"password-checkbox-right\">\r\n <div class=\"checkbox-visibility-icon\">\r\n <input\r\n type=\"checkbox\"\r\n (click)=\"togglePasswordVisibility(3)\"\r\n autocomplete=\"off\"\r\n />\r\n <span></span>\r\n </div>\r\n </div>\r\n <input\r\n type=\"{{ makeCnfrmPwdVisible ? 'password' : 'text' }}\"\r\n placeholder=\"{{\r\n 'Generic_lib.ConfirmPasswordPlaceholder' | translate\r\n }}\"\r\n pInputText\r\n formControlName=\"crnmNewUserARCXWD\"\r\n autocomplete=\"off\"\r\n id=\"crnmnewpwd\"\r\n name=\"crnmnewpwd\"\r\n />\r\n\r\n <img\r\n src=\"assets/common-header-lib/images/lock-pass.svg\"\r\n alt=\"eye Icon\"\r\n class=\"position-absolute mx-2 img-lock\"\r\n />\r\n </div>\r\n <ng-container\r\n *ngIf=\"\r\n userResetPasswordForm\r\n .get('crnmNewUserARCXWD')\r\n ?.hasError('required') &&\r\n userResetPasswordForm.get('crnmNewUserARCXWD')?.touched\r\n \"\r\n >\r\n <span class=\"error-msg mt-2\">{{\r\n \"Generic_lib.ConfirmPasswordFieldValidation\" | translate\r\n }}</span>\r\n </ng-container>\r\n <span\r\n class=\"error-msg mt-2\"\r\n *ngIf=\"\r\n userResetPasswordForm\r\n .get('crnmNewUserARCXWD')\r\n ?.hasError('confirmedValidator')\r\n \"\r\n >\r\n {{\r\n \"Generic_lib.ConfirmPasswordFieldNewValidation\" | translate\r\n }}\r\n </span>\r\n </div>\r\n\r\n <div class=\"mt-4\">\r\n <p-button\r\n class=\"submit-btn\"\r\n label=\"{{ 'Generic_lib.Update' | translate }}\"\r\n iconPos=\"right\"\r\n [loading]=\"isPathUpdated\"\r\n label=\"Update\"\r\n (onClick)=\"resetLoggedInPwd()\"\r\n ></p-button>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n</div>\r\n", styles: [".pl{padding-left:0!important}.left-card{height:450px!important;background:#f6f7fb!important;border-radius:8px!important}.left-card .profile-label{font-size:13px!important;color:#292f4c!important;font-weight:600!important}.left-card .profile-text{color:#676879!important;font-size:12px!important;font-weight:400!important;line-height:20px!important}.initial-text{width:50px;height:50px;display:flex;align-items:center;justify-content:center;font-size:15px;border-radius:50%;color:#fff;background-color:#8e562e}.preference-container .path-title{font-size:20px;color:#292f4c}.preference-container .form-group{margin-bottom:15px}.preference-container .label-name{font-size:12px;color:#292f4c;line-height:26px;font-weight:600}.preference-container .cur-text{font-size:12px;color:#676879;line-height:26px;font-weight:600}.checkbox-visibility-icon{position:relative}.checkbox-visibility-icon input[type=checkbox]{opacity:0;position:absolute;top:4px;left:5px;transform:scale(1.7);z-index:2;cursor:pointer}.checkbox-visibility-icon input[type=checkbox]:checked+span{background:url(assets/common-header-lib/images/login-bg/visibility.svg);background-repeat:no-repeat;background-position:0px;height:12px;width:18px;display:block;background-size:17px}@media (min-width: 992px){.checkbox-visibility-icon input[type=checkbox]:checked+span{height:12px;width:18px;background-size:17px}}.checkbox-visibility-icon input[type=checkbox]+span{background:url(assets/common-header-lib/images/login-bg/visibility_off.svg);background-repeat:no-repeat;background-position:0px;height:12px;width:18px;display:block;background-size:17px}@media (min-width: 992px){.checkbox-visibility-icon input[type=checkbox]+span{height:24px;width:18px;background-size:17px}}.input-dropdown .p-inputtext{width:100%!important;border-radius:4px!important;font-size:12px!important;padding-left:28px!important;height:38px!important;border:1px solid #ced4da!important}.p-dropdown-filter-container input{border:1px solid #ced4da!important}.profile-card{cursor:pointer}.profile-card:hover{background:#e9ecef;color:#292f4c;border-radius:4px}.profile-card.active{border-radius:4px;cursor:pointer;background:#dcdfec url(assets/common-header-lib/images/grey-arrow.svg) no-repeat 96%}\n"] }]
2534
- }], ctorParameters: function () { return [{ type: CommonHeaderLibService }, { type: i2.FormBuilder }, { type: ToastMsgService }, { type: EncrydecryRSAdataService }, { type: RESTLoginFormService }, { type: ASYNCPasswordcheckService }, { type: i4.TranslateService }, { type: VaptValidationService }, { type: i1$3.DynamicDialogConfig }, { type: HttpCommonService }, { type: HttpGeneralConfigurationService }]; } });
2535
-
2536
- class NgTranslationComponent {
2537
- constructor(_translate, _localstorage, msgService) {
2538
- this._translate = _translate;
2539
- this._localstorage = _localstorage;
2540
- this.msgService = msgService;
2541
- /* Languages provided by the host app (single source of truth — populated
2542
- from languages.json by the host's APP_INITIALIZER and forwarded down
2543
- through <lib-common-header-lib> → <app-user-sidebar> → here).
2544
- Falls back to GlobalConstants.USERFILTEREDLANGUAGES when not supplied
2545
- so the component remains usable in legacy contexts. */
2546
- this.languages = [];
2547
- this.selectedLang = {};
2548
- }
2549
- ngOnInit() {
2550
- this.loadLanguages();
2551
- }
2552
- ngOnChanges(changes) {
2553
- if (changes['languages'] && !changes['languages'].firstChange) {
2554
- this.loadLanguages();
2555
- }
2556
- }
2557
- loadLanguages() {
2558
- /* 1. Use @Input languages if provided; fall back to GlobalConstants
2559
- for backward compatibility. */
2560
- if (!this.languages || this.languages.length === 0) {
2561
- this.languages = GlobalConstants.USERFILTEREDLANGUAGES || [];
2562
- }
2563
- /* 2. Read saved language */
2564
- const savedLang = this._localstorage.getData(COOKIECONSTANT.USERLANG);
2565
- if (savedLang) {
2566
- try {
2567
- const parsed = JSON.parse(savedLang);
2568
- const validLang = this.languages.find((x) => x.langKey === (parsed === null || parsed === void 0 ? void 0 : parsed.langKey));
2569
- this.selectedLang = validLang || GlobalConstants.DEFAULTLANG;
2570
- }
2571
- catch (_a) {
2572
- this.selectedLang = GlobalConstants.DEFAULTLANG;
2573
- }
2574
- }
2575
- else {
2576
- this.selectedLang = GlobalConstants.DEFAULTLANG;
2577
- }
2578
- }
2579
- /* Language Change */
2580
- selectLang(event) {
2581
- this.selectedLang = event === null || event === void 0 ? void 0 : event.value;
2582
- this.useTranslate(this.selectedLang);
2583
- }
2584
- useTranslate(selectedLang) {
2585
- this._translate.use(selectedLang.langKey).subscribe({
2586
- next: () => {
2587
- this.saveUserLanguage(selectedLang);
2588
- },
2589
- error: () => {
2590
- this.msgService.error(this._translate.instant('Generic_lib.FailedToLoadLanguageFile'));
2591
- },
2592
- });
2593
- }
2594
- saveUserLanguage(lang) {
2595
- this._localstorage.saveData(COOKIECONSTANT.USERLANG, JSON.stringify(lang));
2596
- }
2597
- }
2598
- NgTranslationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgTranslationComponent, deps: [{ token: i4.TranslateService }, { token: StorageService }, { token: ToastMsgService }], target: i0.ɵɵFactoryTarget.Component });
2599
- NgTranslationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: NgTranslationComponent, selector: "ng-translation", inputs: { languages: "languages" }, usesOnChanges: true, ngImport: i0, template: "<p-dropdown [options]=\"languages\" optionLabel=\"langName\" placeholder='{{ \"Generic_lib.SelectLanguage\" | translate }}'\r\n (onChange)=\"selectLang($event)\" [filter]=\"true\" filterBy=\"langName\"\r\n filterPlaceholder='{{ \"Generic_lib.Search\" | translate }}' [showClear]=\"false\"\r\n [(ngModel)]=\"selectedLang\"></p-dropdown>\r\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "component", type: i8.Dropdown, selector: "p-dropdown", inputs: ["scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "filterPlaceholder", "filterLocale", "inputId", "selectId", "dataKey", "filterBy", "autofocus", "resetFilterOnHide", "dropdownIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "overlayDirection", "disabled", "itemSize", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "options", "filterValue"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }] });
2600
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgTranslationComponent, decorators: [{
2601
- type: Component,
2602
- args: [{ selector: 'ng-translation', standalone: false, template: "<p-dropdown [options]=\"languages\" optionLabel=\"langName\" placeholder='{{ \"Generic_lib.SelectLanguage\" | translate }}'\r\n (onChange)=\"selectLang($event)\" [filter]=\"true\" filterBy=\"langName\"\r\n filterPlaceholder='{{ \"Generic_lib.Search\" | translate }}' [showClear]=\"false\"\r\n [(ngModel)]=\"selectedLang\"></p-dropdown>\r\n" }]
2603
- }], ctorParameters: function () { return [{ type: i4.TranslateService }, { type: StorageService }, { type: ToastMsgService }]; }, propDecorators: { languages: [{
2604
- type: Input
2605
- }] } });
2606
-
2607
- class SliceToTwoPipe {
2608
- transform(textName) {
2609
- if (textName === null || textName === '') {
2610
- return 'NA';
2611
- }
2612
- textName = textName === null || textName === void 0 ? void 0 : textName.trim();
2613
- let result = '';
2614
- if (textName && textName.includes(' ')) {
2615
- let splitStringArr = textName.split(' ');
2616
- result =
2617
- splitStringArr[0][0] + splitStringArr[splitStringArr.length - 1][0];
2618
- }
2619
- else if (textName && textName.includes('_')) {
2620
- let splitStringArr = textName.split('_');
2621
- result =
2622
- splitStringArr[0][0] + splitStringArr[splitStringArr.length - 1][0];
2623
- }
2624
- else {
2625
- result = textName[0] + textName[1];
2626
- }
2627
- return result.toLocaleUpperCase();
2628
- }
2629
- }
2630
- SliceToTwoPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SliceToTwoPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
2631
- SliceToTwoPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: SliceToTwoPipe, name: "sliceToTwo" });
2632
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SliceToTwoPipe, decorators: [{
2633
- type: Pipe,
2634
- args: [{
2635
- name: 'sliceToTwo',
2636
- }]
2637
- }] });
2638
-
2639
- class UserSidebarComponent {
2640
- constructor(dialogService, _cookieService, route, msgService, _localStorage, translateService, httpCommonService) {
2641
- this.dialogService = dialogService;
2642
- this._cookieService = _cookieService;
2643
- this.route = route;
2644
- this.msgService = msgService;
2645
- this._localStorage = _localStorage;
2646
- this.translateService = translateService;
2647
- this.httpCommonService = httpCommonService;
2648
- this.userDetails = {};
2649
- this.showProfile = false;
2650
- this.userdisplayName = '';
2651
- this.userFirstName = '';
2652
- this.userLastName = '';
2653
- this.userLastLoggedIn = '';
2654
- // private LoggedInUserID: string = '';
2655
- this.unsubscribeAPIEventListenerData = new Subject();
2656
- /* Forwarded down to <ng-translation> so the language list is sourced
2657
- from the host app instead of a separate library API call. */
2658
- this.languages = [];
2659
- this.closeDialogBox = new EventEmitter();
2660
- // public userSessionID: string = '';
2661
- this.sec = 1;
2662
- this.min = 2;
2663
- this.Hr = 30;
2664
- this.isOpenSidePopup = false;
2665
- this.showUserDetails = false;
2666
- this.isNameCopied = false;
2667
- // private themeService: ThemeService,
2668
- // private fontService: FontService,
2669
- // private cookieService: CookieService,
2670
- // this.fetchedSavedData();
2671
- }
2672
- ngOnInit() {
2673
- this.getLoggedInuserDteils();
2674
- }
2675
- //Method: Open User Setting Panel
2676
- openUserSettingPanel() {
2677
- this.ref = this.dialogService.open(GeneralConfigurationComponent, {
2678
- header: this.translateService.instant('Generic_lib.GeneralConfiguration'),
2679
- styleClass: 'general-configuration',
2680
- // data: {
2681
- // apiURL: this.apiURL,
2682
- // },
2683
- });
2684
- }
2685
- getLoggedInuserDteils() {
2686
- this.httpCommonService
2687
- .getLoggedInUserDetails()
2688
- .pipe(takeUntil$1(this.unsubscribeAPIEventListenerData))
2689
- .subscribe((result) => {
2690
- if (result && result['success'] && result['result']) {
2691
- this.userDetails = result['result'];
2692
- this.userdisplayName = this.userDetails['userDisplayName'];
2693
- this.showProfile = true;
2694
- this.getTotalSessionTime();
2695
- this.setLoggedInUserName(this.userdisplayName);
2696
- }
2697
- else {
2698
- this.showProfile = false;
2699
- this.userDetails = {};
2700
- }
2701
- });
2702
- }
2703
- setLoggedInUserName(userdisplayName) {
2704
- if (userdisplayName && userdisplayName.includes(' ')) {
2705
- let splitStringArr = userdisplayName.split(' ');
2706
- this.userFirstName = splitStringArr[0];
2707
- this.userLastName = splitStringArr[1];
2708
- }
2709
- else {
2710
- this.userdisplayName = userdisplayName;
2711
- }
2712
- }
2713
- /*Method : Copies the full user display name, as it is truncated in the panel */
2714
- copyUserDisplayName() {
2715
- const displayName = this.userDetails['userDisplayName'];
2716
- if (!displayName) {
2717
- return;
2718
- }
2719
- navigator.clipboard
2720
- .writeText(displayName)
2721
- .then(() => {
2722
- this.isNameCopied = true;
2723
- setTimeout(() => {
2724
- this.isNameCopied = false;
2725
- }, 2000);
2726
- })
2727
- .catch((error) => {
2728
- console.error('Error copying user name to clipboard: ', error);
2729
- });
2730
- }
2731
- getcloseDialogBox() {
2732
- this.closeDialogBox.emit(true);
2733
- }
2734
- getUserLoggedInTime() {
2735
- let LastLoggedIn = this.convertUTCToLocal(this.userDetails['lastLogIn']);
2736
- let LastLoggedInDate = new Date(LastLoggedIn);
2737
- this.userLastLoggedIn = LastLoggedInDate.toLocaleString();
2738
- }
2739
- logoutCurrentUser() {
2740
- this.httpCommonService
2741
- .getInitiateUserLogout()
2742
- .pipe()
2743
- .subscribe((res) => {
2744
- if (res) {
2745
- this._cookieService.clearAllCookies();
2746
- this._localStorage.clearData();
2747
- if (res && res['spLogoutUrls'] && res['spLogoutUrls'].length > 0) {
2748
- this.destoryAllSessions(res['spLogoutUrls']);
2749
- }
2750
- if (res === null || res === void 0 ? void 0 : res['identity']) {
2751
- this.userWithWindowAuthentication();
2752
- }
2753
- else {
2754
- const path = '/' + RoutePaths.LOGINPG_PATH;
2755
- const urlnew = new URL(window.location.href).origin + '/#' + path;
2756
- window.location.href = urlnew;
2757
- }
2758
- }
2759
- else {
2760
- this.msgService.error(errorMsg.LOGOUTERROR);
2761
- // window.location.href = new URL(window.location.href).origin + '/#/login';
2762
- }
2763
- });
2764
- }
2765
- /**
2766
- * This function destroys all user sessions by opening multiple SAML logout URLs in new browser tabs.
2767
- */
2768
- destoryAllSessions(samlUrls) {
2769
- samlUrls.forEach((url) => {
2770
- window.open(url, '_blank');
2771
- });
2772
- }
2773
- userWithWindowAuthentication() {
2774
- const path = '/' + RoutePaths.LOGOUT_PATH;
2775
- this.route.navigateByUrl(path);
2776
- }
2777
- getTotalSessionTime() {
2778
- let loginTime = this.convertUTCToLocal(this.userDetails['currentLogIn']);
2779
- let loginTimeDate = new Date(loginTime);
2780
- let currentTime = new Date();
2781
- let milliseconds = currentTime.valueOf() - loginTimeDate.valueOf();
2782
- let seconds = Math.floor(milliseconds / 1000);
2783
- let minutes = Math.floor(seconds / 60);
2784
- let hours = Math.floor(minutes / 60);
2785
- seconds = seconds % 60;
2786
- minutes = minutes % 60;
2787
- this.Hr = hours;
2788
- this.min = minutes;
2789
- this.sec = seconds;
2790
- setInterval(() => {
2791
- this.updateTimer();
2792
- }, 1000);
2793
- }
2794
- updateTimer() {
2795
- if (this.sec < 59) {
2796
- this.sec += 1;
2797
- }
2798
- else {
2799
- this.sec = 0;
2800
- if (this.min < 59) {
2801
- this.min += 1;
2802
- }
2803
- else {
2804
- this.min = 0;
2805
- this.Hr += 1;
2806
- }
2807
- }
2808
- }
2809
- convertUTCToLocal(newdate) {
2810
- let localDate = newdate + 'Z';
2811
- localDate = localDate.toLocaleString();
2812
- return localDate;
2813
- }
2814
- OpenArconLearningCenter() {
2815
- const url = GlobalConstants.PlugInDownloadURL;
2816
- window.open(url, '_blank');
2817
- }
2818
- //close Popup
2819
- closeUserSettingPanel() {
2820
- if (this.ref) {
2821
- this.ref.close();
2822
- }
2823
- }
2824
- // languageChange(event: any) {
2825
- // if (!event) return;
2826
- // // this.langChange.emit(event);
2827
- // }
2828
- //*Global Font and Theme
2829
- getRedTheme() {
2830
- // const active = this.themeService.getActiveTheme();
2831
- // if (
2832
- // active.name === "blue" ||
2833
- // active.name === "black" ||
2834
- // active.name === "red"
2835
- // ) {
2836
- // this.themeService.setTheme("red");
2837
- // this.cookieService.set("themeColor", "red");
2838
- // }
2839
- }
2840
- getBlackTheme() {
2841
- // const active = this.themeService.getActiveTheme();
2842
- // if (
2843
- // active.name === "blue" ||
2844
- // active.name === "black" ||
2845
- // active.name === "red"
2846
- // ) {
2847
- // this.themeService.setTheme("blue");
2848
- // this.cookieService.set("themeColor", "blue");
2849
- // }
2850
- }
2851
- getBlueTheme() {
2852
- // const active = this.themeService.getActiveTheme();
2853
- // if (
2854
- // active.name === "blue" ||
2855
- // active.name === "black" ||
2856
- // active.name === "red"
2857
- // ) {
2858
- // this.themeService.setTheme("black");
2859
- // this.cookieService.set("themeColor", "black");
2860
- // }
2861
- }
2862
- // Accessibility Fonts sizes
2863
- getSmallFont() {
2864
- // this.fontService.setFont("smFont");
2865
- }
2866
- getMediumFont() {
2867
- // this.fontService.setFont("mdFont");
2868
- }
2869
- getLargeFont() {
2870
- // this.fontService.setFont("lgFont");
2871
- }
2872
- ngOnDestroy() {
2873
- this.closeUserSettingPanel();
2874
- this.unsubscribeAPIEventListenerData.next(true);
2875
- this.unsubscribeAPIEventListenerData.complete();
2876
- }
2877
- }
2878
- UserSidebarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: UserSidebarComponent, deps: [{ token: i1$3.DialogService }, { token: CookieStorageManagerService }, { token: i3.Router }, { token: ToastMsgService }, { token: StorageService }, { token: i4.TranslateService }, { token: HttpCommonService }], target: i0.ɵɵFactoryTarget.Component });
2879
- UserSidebarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: UserSidebarComponent, selector: "app-user-sidebar", inputs: { languages: "languages" }, outputs: { closeDialogBox: "closeDialogBox" }, providers: [DialogService], ngImport: i0, template: "<div class=\"white-bg\">\r\n <div class=\" sidebar-outer white-bg\">\r\n <div class=\"sidebar-header grey-background\">\r\n <div class=\"sh-top\">\r\n <div class=\"sh-top-left d-flex\">\r\n <img src=\"assets/common-header-lib/images/logout.svg\" class=\"imgs\" alt=\"user\">\r\n <div class=\"mx-2 log-text\" (click)=\"logoutCurrentUser()\">{{\"Generic_lib.Logout\" | translate}}</div>\r\n </div>\r\n <div class=\"sh-top-right\">\r\n <button type=\"button\" class=\"common-bn tertiary-btn\">\r\n <img src=\"assets/common-header-lib/images/close.svg\" class=\"imgs\" alt=\"close icon\" title=\"Close\"\r\n (click)=\"getcloseDialogBox()\">\r\n </button>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"showProfile; else LoadingAnimation\">\r\n <div class=\"sh-bottom d-flex pt-3\">\r\n <ng-container *ngIf=\"userdisplayName && userdisplayName.length > 0; else defaultName\">\r\n <div class=\"initial-text\">\r\n {{ userdisplayName | sliceToTwo }}\r\n </div>\r\n </ng-container>\r\n <ng-template #defaultName>\r\n <div class=\"initial-text\">\r\n {{ 'NA' }}\r\n </div>\r\n </ng-template>\r\n <div class=\"sh-bottom-content\">\r\n <div class=\"user-name-row\">\r\n <h4 class=\"title\">\r\n <span\r\n class=\"title-text\"\r\n [pTooltip]=\"userDetails['userDisplayName']\"\r\n tooltipStyleClass=\"name-tooltip\"\r\n tooltipPosition=\"bottom\"\r\n >{{ userDetails['userDisplayName'] }}</span\r\n >\r\n </h4>\r\n <button\r\n type=\"button\"\r\n class=\"copy-name-btn\"\r\n (click)=\"copyUserDisplayName()\"\r\n [pTooltip]=\"isNameCopied ? 'Copied' : 'Copy'\"\r\n tooltipPosition=\"bottom\"\r\n >\r\n <img\r\n [class.copied]=\"isNameCopied\"\r\n [src]=\"\r\n isNameCopied\r\n ? 'assets/common-header-lib/images/check.svg'\r\n : 'assets/common-header-lib/images/copy.svg'\r\n \"\r\n alt=\"Copy user name\"\r\n />\r\n </button>\r\n </div>\r\n <p class=\"email-text\">{{ userDetails['emailID']}}</p>\r\n <div class=\"sh-bottom-content-ls\">\r\n <ng-container\r\n *ngIf=\"userDetails['lastLogIn'] && !userDetails['lastLogIn'].includes('NA'); else InvalidDate\">\r\n <p style=\"margin-right: 5px;\">{{\"Generic_lib.LastSession\" | translate}} : </p>\r\n <p>{{userDetails['lastLogIn']}}</p>\r\n </ng-container>\r\n <ng-template #InvalidDate>\r\n <p style=\"margin-right: 5px;\">{{\"Generic_lib.LastSession\" | translate}} : </p>\r\n <p>NA</p>\r\n </ng-template>\r\n </div>\r\n <div class=\"sh-bottom-content-ls session-content\">\r\n <p tyle=\"margin-right: 5px;\">{{\"Generic_lib.CurrentSession\" | translate}} : </p>\r\n <p>{{Hr}} {{\"Generic_lib.hrs\" | translate}} {{min}} {{\"Generic_lib.min\" | translate}} {{sec}}\r\n {{\"Generic_lib.secs\" | translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-template #LoadingAnimation>\r\n <div class=\"loading-skeleton d-flex p-3\">\r\n <p-skeleton shape=\"circle\" size=\"4rem\" styleClass=\"mr-2\"></p-skeleton>\r\n <div class=\"ms-1\">\r\n <p-skeleton width=\"10rem\" styleClass=\"mb-2\"></p-skeleton>\r\n <p-skeleton width=\"8rem\" height=\".7rem\" styleClass=\"mb-2\"></p-skeleton>\r\n <p-skeleton width=\"5rem\" styleClass=\"mb-2\"></p-skeleton>\r\n <p-skeleton height=\".5rem\"></p-skeleton>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </div>\r\n <div class=\"sidebar-body\">\r\n <div class=\"sb-list pb-20px\">\r\n <ul>\r\n <li class=\"grey-bg-hover\">\r\n <img src=\"assets/common-header-lib/images/domain_img.svg\" loading=\"lazy\">\r\n <div class=\"mx-2 lang-dropdown\">\r\n <ng-translation [languages]=\"languages\"></ng-translation> <!-- (langChange)=\"languageChange($event)\" -->\r\n </div>\r\n </li>\r\n <li class=\"grey-bg-hover\" (click)=\"OpenArconLearningCenter()\">\r\n <img src=\"assets/common-header-lib/images/local.svg\" class=\"imgs\" alt=\"Arcon\">\r\n <p class=\"mx-2\">{{\"Generic_lib.ArconLearningCenter\" | translate}}</p>\r\n </li>\r\n\r\n <li class=\"grey-bg-hover\">\r\n <img src=\"assets/common-header-lib/images/settings.svg\" alt=\"settings\">\r\n <p class=\"mx-2\" (click)=\"openUserSettingPanel()\">{{\"Generic_lib.GeneralConfiguration\" | translate}}</p>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n </div>\r\n <!-- Global Font and Theme -->\r\n <!-- <div class=\"accessibility-container d-flex justify-content-between\">\r\n <div class=\"d-flex\">\r\n <button class=\"btn btn-light btn-small rounded-circle\" (click)=\"getSmallFont()\">\r\n <span>A-</span>\r\n </button>\r\n <button class=\"btn btn-light btn-small rounded-circle\" (click)=\"getMediumFont()\">\r\n <span>A</span>\r\n </button>\r\n <button class=\"btn btn-light btn-small rounded-circle\" (click)=\"getLargeFont()\">\r\n <span>A+</span>\r\n </button>\r\n </div>\r\n <div class=\"d-flex\">\r\n <button class=\"btn btn-light btn-small rounded-circle\" (click)=\"getRedTheme()\">\r\n <span class=\"theme theme-red\"></span>\r\n </button>\r\n <button class=\"btn btn-light btn-small rounded-circle\" (click)=\"getBlackTheme()\">\r\n <span class=\"theme theme-black\"></span>\r\n </button>\r\n <button class=\"btn btn-light btn-small rounded-circle\" (click)=\"getBlueTheme()\">\r\n <span class=\"theme theme-blue\"></span>\r\n </button>\r\n </div>\r\n </div> -->\r\n</div>\r\n", styles: [".white-bg{background-color:#fff!important;width:100%!important}.grey-background{background-color:#f6f7fb!important}.imgs{width:20px!important}.cursor-pointer{cursor:pointer}.sidebar-outer{width:100%!important;float:left!important}.sidebar-outer .sidebar-header{padding:12px 15px!important}.sidebar-outer .sidebar-header .sh-top{display:flex!important;align-items:center!important;justify-content:space-between!important}.sidebar-outer .sidebar-header .sh-top .sh-top-left{display:flex!important;align-items:center!important}.sidebar-outer .sidebar-header .sh-top .sh-top-left .log-text{font-size:14px!important;font-weight:500!important;cursor:pointer!important}.sidebar-outer .sidebar-header .sh-top .sh-top-right button{height:24px!important;border:none!important;background-color:transparent!important}.sidebar-outer .sidebar-header .sh-bottom{display:flex!important;padding-top:16px!important}.sidebar-outer .sidebar-header .sh-bottom .initial-text{width:40px;height:40px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:15px;border-radius:50%;color:#fff;background-color:#8e562e}.sidebar-outer .sidebar-header .sh-bottom .sh-bottom-content{padding:0 70px 0 14px!important;min-width:0;flex:1}.sidebar-outer .sidebar-header .sh-bottom .sh-bottom-content .user-name-row{display:flex;align-items:center;gap:8px;padding-right:70px}.sidebar-outer .sidebar-header .sh-bottom .sh-bottom-content .title{font-size:17px!important;font-weight:600!important;line-height:21px!important;margin-bottom:2px!important;color:#292f4c!important;flex:0 1 auto;min-width:0}.sidebar-outer .sidebar-header .sh-bottom .sh-bottom-content .title .title-text{display:inline-block;max-width:100%;vertical-align:bottom;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-outer .sidebar-header .sh-bottom .sh-bottom-content .copy-name-btn{flex-shrink:0;width:28px;height:28px;padding:0;border:0;border-radius:50%;background-color:var(--white-color, #ffffff);display:flex;align-items:center;justify-content:center;cursor:pointer}.sidebar-outer .sidebar-header .sh-bottom .sh-bottom-content .copy-name-btn img{width:16px;height:16px}.sidebar-outer .sidebar-header .sh-bottom .sh-bottom-content .copy-name-btn img.copied{width:22px!important;height:22px!important}.sidebar-outer .sidebar-header .sh-bottom .sh-bottom-content .email-text{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-outer .sidebar-header .sh-bottom .sh-bottom-content p{font-size:14px!important;line-height:22px!important;color:#676879!important;margin-bottom:0!important}.sidebar-outer .sidebar-header .sh-bottom .sh-bottom-content .sh-bottom-content-ls{display:flex!important;align-items:center!important;font-size:12px!important}.sidebar-outer .sidebar-header .sh-bottom .sh-bottom-content .session-content{position:relative!important;bottom:2px!important}.sidebar-outer .sidebar-body{padding:12px 20px!important;width:100%!important}.sidebar-outer .sidebar-body .sb-list{width:100%!important}.sidebar-outer .sidebar-body .sb-list ul{width:100%!important;list-style:none;padding-left:0;margin:0}.sidebar-outer .sidebar-body .sb-list ul li{display:flex!important;align-items:center!important;padding:8px 2px!important;cursor:pointer!important}.sidebar-outer .sidebar-body .sb-list ul li img{width:18px}.sidebar-outer .sidebar-body .sb-list ul li p{margin:0 0 0 8px!important;font-size:14px!important}.sidebar-outer .sidebar-body .sb-list ul li .lang-dropdown{margin-left:8px!important}.accessibility-container{background-color:#eee;padding:7px 20px}.accessibility-container .btn{align-content:center;align-items:center;border:1px solid #9e9e9e;color:#707070;display:flex;font-size:10px;height:20px;justify-content:center;padding:0;width:20px;margin-right:5px;overflow:hidden}.accessibility-container .btn:last-child{margin-right:0}.accessibility-container .btn .theme{display:block;height:100%;margin-left:-50%;width:60%}.accessibility-container .btn .theme-red{background-color:#d4231d}.accessibility-container .btn .theme-black{background-color:#212121}.accessibility-container .btn .theme-blue{background-color:#4d91ea}\n"], dependencies: [{ kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i9$1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "fitContent", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "component", type: i10$1.Skeleton, selector: "p-skeleton", inputs: ["styleClass", "style", "shape", "animation", "borderRadius", "size", "width", "height"] }, { kind: "component", type: NgTranslationComponent, selector: "ng-translation", inputs: ["languages"] }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }, { kind: "pipe", type: SliceToTwoPipe, name: "sliceToTwo" }] });
2880
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: UserSidebarComponent, decorators: [{
2881
- type: Component,
2882
- args: [{ selector: 'app-user-sidebar', providers: [DialogService], template: "<div class=\"white-bg\">\r\n <div class=\" sidebar-outer white-bg\">\r\n <div class=\"sidebar-header grey-background\">\r\n <div class=\"sh-top\">\r\n <div class=\"sh-top-left d-flex\">\r\n <img src=\"assets/common-header-lib/images/logout.svg\" class=\"imgs\" alt=\"user\">\r\n <div class=\"mx-2 log-text\" (click)=\"logoutCurrentUser()\">{{\"Generic_lib.Logout\" | translate}}</div>\r\n </div>\r\n <div class=\"sh-top-right\">\r\n <button type=\"button\" class=\"common-bn tertiary-btn\">\r\n <img src=\"assets/common-header-lib/images/close.svg\" class=\"imgs\" alt=\"close icon\" title=\"Close\"\r\n (click)=\"getcloseDialogBox()\">\r\n </button>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"showProfile; else LoadingAnimation\">\r\n <div class=\"sh-bottom d-flex pt-3\">\r\n <ng-container *ngIf=\"userdisplayName && userdisplayName.length > 0; else defaultName\">\r\n <div class=\"initial-text\">\r\n {{ userdisplayName | sliceToTwo }}\r\n </div>\r\n </ng-container>\r\n <ng-template #defaultName>\r\n <div class=\"initial-text\">\r\n {{ 'NA' }}\r\n </div>\r\n </ng-template>\r\n <div class=\"sh-bottom-content\">\r\n <div class=\"user-name-row\">\r\n <h4 class=\"title\">\r\n <span\r\n class=\"title-text\"\r\n [pTooltip]=\"userDetails['userDisplayName']\"\r\n tooltipStyleClass=\"name-tooltip\"\r\n tooltipPosition=\"bottom\"\r\n >{{ userDetails['userDisplayName'] }}</span\r\n >\r\n </h4>\r\n <button\r\n type=\"button\"\r\n class=\"copy-name-btn\"\r\n (click)=\"copyUserDisplayName()\"\r\n [pTooltip]=\"isNameCopied ? 'Copied' : 'Copy'\"\r\n tooltipPosition=\"bottom\"\r\n >\r\n <img\r\n [class.copied]=\"isNameCopied\"\r\n [src]=\"\r\n isNameCopied\r\n ? 'assets/common-header-lib/images/check.svg'\r\n : 'assets/common-header-lib/images/copy.svg'\r\n \"\r\n alt=\"Copy user name\"\r\n />\r\n </button>\r\n </div>\r\n <p class=\"email-text\">{{ userDetails['emailID']}}</p>\r\n <div class=\"sh-bottom-content-ls\">\r\n <ng-container\r\n *ngIf=\"userDetails['lastLogIn'] && !userDetails['lastLogIn'].includes('NA'); else InvalidDate\">\r\n <p style=\"margin-right: 5px;\">{{\"Generic_lib.LastSession\" | translate}} : </p>\r\n <p>{{userDetails['lastLogIn']}}</p>\r\n </ng-container>\r\n <ng-template #InvalidDate>\r\n <p style=\"margin-right: 5px;\">{{\"Generic_lib.LastSession\" | translate}} : </p>\r\n <p>NA</p>\r\n </ng-template>\r\n </div>\r\n <div class=\"sh-bottom-content-ls session-content\">\r\n <p tyle=\"margin-right: 5px;\">{{\"Generic_lib.CurrentSession\" | translate}} : </p>\r\n <p>{{Hr}} {{\"Generic_lib.hrs\" | translate}} {{min}} {{\"Generic_lib.min\" | translate}} {{sec}}\r\n {{\"Generic_lib.secs\" | translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-template #LoadingAnimation>\r\n <div class=\"loading-skeleton d-flex p-3\">\r\n <p-skeleton shape=\"circle\" size=\"4rem\" styleClass=\"mr-2\"></p-skeleton>\r\n <div class=\"ms-1\">\r\n <p-skeleton width=\"10rem\" styleClass=\"mb-2\"></p-skeleton>\r\n <p-skeleton width=\"8rem\" height=\".7rem\" styleClass=\"mb-2\"></p-skeleton>\r\n <p-skeleton width=\"5rem\" styleClass=\"mb-2\"></p-skeleton>\r\n <p-skeleton height=\".5rem\"></p-skeleton>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </div>\r\n <div class=\"sidebar-body\">\r\n <div class=\"sb-list pb-20px\">\r\n <ul>\r\n <li class=\"grey-bg-hover\">\r\n <img src=\"assets/common-header-lib/images/domain_img.svg\" loading=\"lazy\">\r\n <div class=\"mx-2 lang-dropdown\">\r\n <ng-translation [languages]=\"languages\"></ng-translation> <!-- (langChange)=\"languageChange($event)\" -->\r\n </div>\r\n </li>\r\n <li class=\"grey-bg-hover\" (click)=\"OpenArconLearningCenter()\">\r\n <img src=\"assets/common-header-lib/images/local.svg\" class=\"imgs\" alt=\"Arcon\">\r\n <p class=\"mx-2\">{{\"Generic_lib.ArconLearningCenter\" | translate}}</p>\r\n </li>\r\n\r\n <li class=\"grey-bg-hover\">\r\n <img src=\"assets/common-header-lib/images/settings.svg\" alt=\"settings\">\r\n <p class=\"mx-2\" (click)=\"openUserSettingPanel()\">{{\"Generic_lib.GeneralConfiguration\" | translate}}</p>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n </div>\r\n <!-- Global Font and Theme -->\r\n <!-- <div class=\"accessibility-container d-flex justify-content-between\">\r\n <div class=\"d-flex\">\r\n <button class=\"btn btn-light btn-small rounded-circle\" (click)=\"getSmallFont()\">\r\n <span>A-</span>\r\n </button>\r\n <button class=\"btn btn-light btn-small rounded-circle\" (click)=\"getMediumFont()\">\r\n <span>A</span>\r\n </button>\r\n <button class=\"btn btn-light btn-small rounded-circle\" (click)=\"getLargeFont()\">\r\n <span>A+</span>\r\n </button>\r\n </div>\r\n <div class=\"d-flex\">\r\n <button class=\"btn btn-light btn-small rounded-circle\" (click)=\"getRedTheme()\">\r\n <span class=\"theme theme-red\"></span>\r\n </button>\r\n <button class=\"btn btn-light btn-small rounded-circle\" (click)=\"getBlackTheme()\">\r\n <span class=\"theme theme-black\"></span>\r\n </button>\r\n <button class=\"btn btn-light btn-small rounded-circle\" (click)=\"getBlueTheme()\">\r\n <span class=\"theme theme-blue\"></span>\r\n </button>\r\n </div>\r\n </div> -->\r\n</div>\r\n", styles: [".white-bg{background-color:#fff!important;width:100%!important}.grey-background{background-color:#f6f7fb!important}.imgs{width:20px!important}.cursor-pointer{cursor:pointer}.sidebar-outer{width:100%!important;float:left!important}.sidebar-outer .sidebar-header{padding:12px 15px!important}.sidebar-outer .sidebar-header .sh-top{display:flex!important;align-items:center!important;justify-content:space-between!important}.sidebar-outer .sidebar-header .sh-top .sh-top-left{display:flex!important;align-items:center!important}.sidebar-outer .sidebar-header .sh-top .sh-top-left .log-text{font-size:14px!important;font-weight:500!important;cursor:pointer!important}.sidebar-outer .sidebar-header .sh-top .sh-top-right button{height:24px!important;border:none!important;background-color:transparent!important}.sidebar-outer .sidebar-header .sh-bottom{display:flex!important;padding-top:16px!important}.sidebar-outer .sidebar-header .sh-bottom .initial-text{width:40px;height:40px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:15px;border-radius:50%;color:#fff;background-color:#8e562e}.sidebar-outer .sidebar-header .sh-bottom .sh-bottom-content{padding:0 70px 0 14px!important;min-width:0;flex:1}.sidebar-outer .sidebar-header .sh-bottom .sh-bottom-content .user-name-row{display:flex;align-items:center;gap:8px;padding-right:70px}.sidebar-outer .sidebar-header .sh-bottom .sh-bottom-content .title{font-size:17px!important;font-weight:600!important;line-height:21px!important;margin-bottom:2px!important;color:#292f4c!important;flex:0 1 auto;min-width:0}.sidebar-outer .sidebar-header .sh-bottom .sh-bottom-content .title .title-text{display:inline-block;max-width:100%;vertical-align:bottom;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-outer .sidebar-header .sh-bottom .sh-bottom-content .copy-name-btn{flex-shrink:0;width:28px;height:28px;padding:0;border:0;border-radius:50%;background-color:var(--white-color, #ffffff);display:flex;align-items:center;justify-content:center;cursor:pointer}.sidebar-outer .sidebar-header .sh-bottom .sh-bottom-content .copy-name-btn img{width:16px;height:16px}.sidebar-outer .sidebar-header .sh-bottom .sh-bottom-content .copy-name-btn img.copied{width:22px!important;height:22px!important}.sidebar-outer .sidebar-header .sh-bottom .sh-bottom-content .email-text{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-outer .sidebar-header .sh-bottom .sh-bottom-content p{font-size:14px!important;line-height:22px!important;color:#676879!important;margin-bottom:0!important}.sidebar-outer .sidebar-header .sh-bottom .sh-bottom-content .sh-bottom-content-ls{display:flex!important;align-items:center!important;font-size:12px!important}.sidebar-outer .sidebar-header .sh-bottom .sh-bottom-content .session-content{position:relative!important;bottom:2px!important}.sidebar-outer .sidebar-body{padding:12px 20px!important;width:100%!important}.sidebar-outer .sidebar-body .sb-list{width:100%!important}.sidebar-outer .sidebar-body .sb-list ul{width:100%!important;list-style:none;padding-left:0;margin:0}.sidebar-outer .sidebar-body .sb-list ul li{display:flex!important;align-items:center!important;padding:8px 2px!important;cursor:pointer!important}.sidebar-outer .sidebar-body .sb-list ul li img{width:18px}.sidebar-outer .sidebar-body .sb-list ul li p{margin:0 0 0 8px!important;font-size:14px!important}.sidebar-outer .sidebar-body .sb-list ul li .lang-dropdown{margin-left:8px!important}.accessibility-container{background-color:#eee;padding:7px 20px}.accessibility-container .btn{align-content:center;align-items:center;border:1px solid #9e9e9e;color:#707070;display:flex;font-size:10px;height:20px;justify-content:center;padding:0;width:20px;margin-right:5px;overflow:hidden}.accessibility-container .btn:last-child{margin-right:0}.accessibility-container .btn .theme{display:block;height:100%;margin-left:-50%;width:60%}.accessibility-container .btn .theme-red{background-color:#d4231d}.accessibility-container .btn .theme-black{background-color:#212121}.accessibility-container .btn .theme-blue{background-color:#4d91ea}\n"] }]
2883
- }], ctorParameters: function () { return [{ type: i1$3.DialogService }, { type: CookieStorageManagerService }, { type: i3.Router }, { type: ToastMsgService }, { type: StorageService }, { type: i4.TranslateService }, { type: HttpCommonService }]; }, propDecorators: { languages: [{
2884
- type: Input
2885
- }], closeDialogBox: [{
2886
- type: Output
2887
- }] } });
2888
-
2889
- class SidePopupComponent {
2890
- constructor() {
2891
- this.closeDialogBox = new EventEmitter();
2892
- this.visible = false;
2893
- this.position = 'right';
2894
- this.header = 'Details';
2895
- }
2896
- //Method: Close the Side Panel
2897
- getcloseDialogBox() {
2898
- this.visible = false;
2899
- this.closeDialogBox.emit(true);
2900
- }
2901
- ngOnDestroy() {
2902
- this.visible = false;
2903
- }
2904
- }
2905
- SidePopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SidePopupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2906
- SidePopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: SidePopupComponent, selector: "app-side-popup", inputs: { visible: "visible", position: "position", header: "header" }, outputs: { closeDialogBox: "closeDialogBox" }, ngImport: i0, template: "<p-dialog [header]=\"header\" (onHide)=\"getcloseDialogBox()\" [modal]=\"true\" [draggable]=\"false\" [(visible)]=\"visible\"\r\n [position]=\"position\" [style]=\"{\r\n width: '40vw',\r\n minHeight: '100vh',\r\n right: '-15px',\r\n position: 'absolute'\r\n }\">\r\n <!-- Dynamically Change the Content of Sidebar -->\r\n <ng-content></ng-content>\r\n</p-dialog>\r\n", styles: [""], dependencies: [{ kind: "component", type: i1$4.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "visible", "style", "position"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }] });
2907
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SidePopupComponent, decorators: [{
2908
- type: Component,
2909
- args: [{ selector: 'app-side-popup', template: "<p-dialog [header]=\"header\" (onHide)=\"getcloseDialogBox()\" [modal]=\"true\" [draggable]=\"false\" [(visible)]=\"visible\"\r\n [position]=\"position\" [style]=\"{\r\n width: '40vw',\r\n minHeight: '100vh',\r\n right: '-15px',\r\n position: 'absolute'\r\n }\">\r\n <!-- Dynamically Change the Content of Sidebar -->\r\n <ng-content></ng-content>\r\n</p-dialog>\r\n" }]
2910
- }], ctorParameters: function () { return []; }, propDecorators: { closeDialogBox: [{
2911
- type: Output
2912
- }], visible: [{
2913
- type: Input
2914
- }], position: [{
2915
- type: Input
2916
- }], header: [{
2917
- type: Input
2918
- }] } });
2919
-
2920
- class DateDiffPipe {
2921
- constructor() { } // Inject service
2922
- transform(date) {
2923
- if (date != null) {
2924
- const localDate = this.convertUTCToLocal(date);
2925
- let date2 = new Date(localDate);
2926
- let date1 = new Date();
2927
- if (date2 > date1) {
2928
- // Calculate the absolute difference in milliseconds between the two dates
2929
- const diffTime = Math.abs(date2.getTime() - date1.getTime());
2930
- // Calculate the number of days
2931
- const diffDays = Math.floor(diffTime / (1000 * 60 * 60 * 24));
2932
- // Calculate the remaining time after removing the days
2933
- const remainingTime = diffTime % (1000 * 60 * 60 * 24);
2934
- // Calculate the number of hours
2935
- const diffHours = Math.floor(remainingTime / (1000 * 60 * 60));
2936
- // Calculate the remaining time after removing the hours
2937
- const remainingMinutes = remainingTime % (1000 * 60 * 60);
2938
- // Calculate the number of minutes
2939
- const diffMinutes = Math.floor(remainingMinutes / (1000 * 60));
2940
- let result = '';
2941
- if (diffDays > 0) {
2942
- result += `${diffDays} days `;
2943
- }
2944
- if (diffHours > 0) {
2945
- result += `${diffHours} hours `;
2946
- }
2947
- if (diffMinutes > 0) {
2948
- result += `${diffMinutes} minutes`;
2949
- }
2950
- return result.trim();
2951
- }
2952
- else {
2953
- return '00:00:00';
2954
- }
2955
- }
2956
- return '';
2957
- }
2958
- convertUTCToLocal(newdate) {
2959
- let localDate = newdate + 'Z';
2960
- localDate = localDate.toLocaleString();
2961
- return localDate;
2962
- }
2963
- }
2964
- DateDiffPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateDiffPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
2965
- DateDiffPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: DateDiffPipe, name: "dateDiff" });
2966
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateDiffPipe, decorators: [{
2967
- type: Pipe,
2968
- args: [{
2969
- name: 'dateDiff',
2970
- }]
2971
- }], ctorParameters: function () { return []; } });
2972
-
2973
- class ViewpasswordPopupComponent {
2974
- constructor(dialogService,
2975
- // private readonly _RESTService: RESTMyaccessService,
2976
- msgService, _eventService, translateService, httpCommonService) {
2977
- this.dialogService = dialogService;
2978
- this.msgService = msgService;
2979
- this._eventService = _eventService;
2980
- this.translateService = translateService;
2981
- this.httpCommonService = httpCommonService;
2982
- this.servicePassword = 'Password';
2983
- this.showVaultBtn = false;
2984
- this.isContentLoaded = false;
2985
- this.isValueUpdated = false;
2986
- this.OpenTillDate = '';
2987
- this.unsubscribeAPIEventListenerData = new Subject();
2988
- this.totalEmails = '';
2989
- this.SSHFileType = '';
2990
- this.SSHFileName = '';
2991
- this.isSSHKey = false;
2992
- this.isPasswordVisible = true;
2993
- this.PasswordViewSuccessMsg = '';
2994
- this.SSHPasswordViewSuccessMsg = '';
2995
- this.SSHPasswordViewErrorMsg = '';
2996
- this.sshKeyForDownload = '';
2997
- this.getSelectedGridData(dialogService.data); //Getting Data from popup
2998
- }
2999
- ngAfterViewInit() {
3000
- this.getTranslateContent();
3001
- }
3002
- ngOnInit() {
3003
- this.getAccessServicePassword();
3004
- // this.getCurrentEmailsCount()
3005
- }
3006
- getSelectedGridData(gridData) {
3007
- if (gridData && gridData['payload']) {
3008
- this.mailDetails = gridData['payload'];
3009
- this.SSHFileType = gridData['SSHfileType'];
3010
- this.showVaultBtn = gridData['btnStatus'];
3011
- this.OpenTillDate = this.mailDetails['spv_Opentildate'];
3012
- this.isSSHKey = this.mailDetails['sshkey_isenabled'];
3013
- }
3014
- }
3015
- //Method: Convert text one Lang. to another
3016
- getTranslateContent() {
3017
- this.translateService
3018
- .get([
3019
- 'Generic_lib.PasswordViewSuccessMsg',
3020
- 'Generic_lib.SSHPasswordViewSuccessMsg',
3021
- 'Generic_lib.SSHPasswordViewErrorMsg',
3022
- ])
3023
- .pipe(takeUntil$1(this.unsubscribeAPIEventListenerData))
3024
- .subscribe((trans) => {
3025
- this.PasswordViewSuccessMsg =
3026
- trans['Generic_lib.PasswordViewSuccessMsg'];
3027
- this.SSHPasswordViewSuccessMsg =
3028
- trans['Generic_lib.SSHPasswordViewSuccessMsg'];
3029
- this.SSHPasswordViewErrorMsg =
3030
- trans['Generic_lib.SSHPasswordViewErrorMsg'];
3031
- });
3032
- }
3033
- //Method: Grants access to the View password for a service
3034
- getAccessServicePassword() {
3035
- this.isContentLoaded = false;
3036
- let mailDetails = {
3037
- mailid: String(this.mailDetails['smi_SpvId']),
3038
- // userid: this.userId,
3039
- // userSessionID: this.userSessionId,
3040
- };
3041
- this.httpCommonService
3042
- .getAccessToViewServicePassword(mailDetails)
3043
- .pipe(takeUntil$1(this.unsubscribeAPIEventListenerData), finalize$1(() => {
3044
- this.isContentLoaded = true;
3045
- }))
3046
- .subscribe((result) => {
3047
- this.servicePassword = result === null || result === void 0 ? void 0 : result.sshKeyPassPhrase;
3048
- this.SSHFileName = result === null || result === void 0 ? void 0 : result.sshFileName;
3049
- this.sshKeyForDownload = result === null || result === void 0 ? void 0 : result.sshKey;
3050
- this.getCurrentEmailsCount();
3051
- });
3052
- }
3053
- //Method: Hide password of a service
3054
- getHideServicePassword() {
3055
- this.isValueUpdated = true;
3056
- let mailDetails = {
3057
- spvId: String(this.mailDetails['smi_SpvId']),
3058
- // userId: this.userId,
3059
- };
3060
- this.httpCommonService
3061
- .getProtectedServiceCredentials(mailDetails)
3062
- .pipe(takeUntil$1(this.unsubscribeAPIEventListenerData), finalize$1(() => {
3063
- this.isValueUpdated = false;
3064
- }))
3065
- .subscribe((result) => {
3066
- if (result) {
3067
- this._eventService.emitUserEmail({
3068
- component: 'view-pwd',
3069
- refreshGrid: true,
3070
- });
3071
- }
3072
- });
3073
- }
3074
- /*Method : GET
3075
- Action : Fetch User Mails Count */
3076
- getCurrentEmailsCount() {
3077
- this.httpCommonService
3078
- .getUnreadUserEmailsCount()
3079
- .pipe(takeUntil$1(this.unsubscribeAPIEventListenerData))
3080
- .subscribe((count) => {
3081
- if (count <= 0) {
3082
- this.totalEmails = '';
3083
- }
3084
- else if (count > 99) {
3085
- this.totalEmails = '99+';
3086
- }
3087
- else {
3088
- this.totalEmails = String(count);
3089
- }
3090
- this.updateMailCount();
3091
- });
3092
- }
3093
- getGenerateFile() {
3094
- this.generateSSHKeyFile();
3095
- this.getHideServicePassword();
3096
- }
3097
- generateSSHKeyFile() {
3098
- try {
3099
- const blob = new Blob([this.sshKeyForDownload], { type: '' });
3100
- const url = window.URL.createObjectURL(blob);
3101
- const a = document.createElement('a');
3102
- a.href = url;
3103
- a.download = `${this.SSHFileName}.${this.SSHFileType}`;
3104
- document.body.appendChild(a);
3105
- a.click();
3106
- document.body.removeChild(a);
3107
- window.URL.revokeObjectURL(url);
3108
- this.msgService.success(this.SSHPasswordViewSuccessMsg);
3109
- }
3110
- catch (error) {
3111
- console.error('Error generating SSH key file:', error);
3112
- this.msgService.error(this.SSHPasswordViewErrorMsg);
3113
- }
3114
- }
3115
- updateMailCount() {
3116
- this._eventService.emitUserEmail({
3117
- component: 'email-count',
3118
- mailCount: this.totalEmails,
3119
- });
3120
- }
3121
- copyToClipboard(text) {
3122
- navigator.clipboard
3123
- .writeText(text)
3124
- .then(() => {
3125
- this.msgService.success(this.PasswordViewSuccessMsg);
3126
- })
3127
- .catch((error) => {
3128
- console.error('Error copying text to clipboard: ', error);
3129
- });
3130
- }
3131
- togglePasswordVisibility() {
3132
- this.isPasswordVisible = !this.isPasswordVisible;
3133
- }
3134
- showPassword() {
3135
- if (this.isSSHKey && !this.servicePassword) {
3136
- return false;
3137
- }
3138
- return true;
3139
- }
3140
- ngOnDestroy() {
3141
- // Unsubscribing All the Observer
3142
- this.unsubscribeAPIEventListenerData.next(true);
3143
- this.unsubscribeAPIEventListenerData.complete();
3144
- }
3145
- }
3146
- ViewpasswordPopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ViewpasswordPopupComponent, deps: [{ token: i1$3.DynamicDialogConfig }, { token: ToastMsgService }, { token: EventService }, { token: i4.TranslateService }, { token: HttpCommonService }], target: i0.ɵɵFactoryTarget.Component });
3147
- ViewpasswordPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: ViewpasswordPopupComponent, selector: "app-viewpassword-popup", ngImport: i0, template: "<div class=\"view-pass-detail\">\r\n <!-- <div class=\"title\">{{\"Generic.Password\" | translate}}</div> -->\r\n <div class=\"mt-4 position-relative px-4\">\r\n <ng-container *ngIf=\"isContentLoaded; else LoadingAnimation\">\r\n <ng-container *ngIf=\"isSSHKey\">\r\n <div class=\"title\">{{ mailDetails[\"smi_MailSubject\"] }}</div>\r\n <p class=\"note-text mt-2\">\r\n {{ \"Generic_lib.DownloadSSHNote\" | translate }}\r\n </p>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"showPassword()\">\r\n <div class=\"d-flex align-items-center\">\r\n <div class=\"password-checkbox-right\">\r\n <div class=\"checkbox-visibility-icon\">\r\n <input type=\"checkbox\" (click)=\"togglePasswordVisibility()\" />\r\n <span></span>\r\n </div>\r\n </div>\r\n <input\r\n class=\"form-control view-pass\"\r\n [ngClass]=\"isSSHKey === true ? 'ssh' : ''\"\r\n readonly\r\n type=\"{{ isPasswordVisible ? 'password' : 'text' }}\"\r\n [value]=\"servicePassword\"\r\n placeholder=\"\"\r\n autocomplete=\"off\"\r\n />\r\n <button\r\n (click)=\"copyToClipboard(servicePassword)\"\r\n type=\"button\"\r\n class=\"btn btn-primary d-flex align-items-center copy-btn\"\r\n title=\"Copy To Clipboard\"\r\n >\r\n <img\r\n src=\"assets/common-header-lib/images/copy-img.svg\"\r\n alt=\"copy Icon\"\r\n class=\"mx-2\"\r\n />{{ \"Generic_lib.Copy\" | translate }}\r\n </button>\r\n <img\r\n *ngIf=\"!isSSHKey\"\r\n src=\"assets/common-header-lib/images/pass-img.svg\"\r\n alt=\"Icon\"\r\n class=\"position-absolute mx-2\"\r\n />\r\n <p *ngIf=\"isSSHKey\" class=\"position-absolute mx-2\">\r\n {{ \"Generic_lib.KeyPassphrase\" | translate }}:\r\n </p>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n\r\n <!-- LODDER -->\r\n <ng-template #LoadingAnimation>\r\n <div class=\"row w-100\">\r\n <div class=\"col-12\">\r\n <p-skeleton height=\"1.5rem\" styleClass=\"mb-2\"></p-skeleton>\r\n </div>\r\n <div class=\"col-12\">\r\n <p-skeleton height=\"1.5rem\" styleClass=\"mb-2\"></p-skeleton>\r\n </div>\r\n <div class=\"col-12\">\r\n <p-skeleton\r\n height=\"1.5rem\"\r\n width=\"30%\"\r\n styleClass=\"float-end mb-2\"\r\n ></p-skeleton>\r\n </div>\r\n </div>\r\n </ng-template>\r\n <!-- /LODDER -->\r\n\r\n <!-- MAIN-CONTENT -->\r\n <ng-container *ngIf=\"isContentLoaded\">\r\n <div class=\"d-flex mt-2 my-4 gap-1 px-4\">\r\n <div class=\"label-text\">\r\n {{ \"Generic_lib.RemainingTime\" | translate }} :\r\n </div>\r\n <div class=\"time-text\">{{ OpenTillDate | dateDiff }}</div>\r\n </div>\r\n\r\n <!-- <ng-container *ngIf=\"showVaultBtn\"> -->\r\n <!-- ! AMIT: Check showVaultBtn condition -->\r\n <ng-container *ngIf=\"true\">\r\n <div class=\"border-bottom\"></div>\r\n <div class=\"d-flex mt-4 justify-content-end gap-1 ms-auto px-4 mb-2\">\r\n <ng-container *ngIf=\"isSSHKey; else downloadbtn\">\r\n <p-button\r\n type=\"button\"\r\n label=\"{{ 'Generic_lib.DownloadKey' | translate }}\"\r\n [iconPos]=\"'right'\"\r\n [loading]=\"isValueUpdated\"\r\n class=\"submit-btn view-btn\"\r\n (click)=\"getGenerateFile()\"\r\n ></p-button>\r\n </ng-container>\r\n <ng-template #downloadbtn>\r\n <p-button\r\n type=\"button\"\r\n label=\"{{ 'Generic_lib.VaultCredentials' | translate }}\"\r\n [iconPos]=\"'right'\"\r\n [loading]=\"isValueUpdated\"\r\n class=\"submit-btn view-btn\"\r\n (click)=\"getHideServicePassword()\"\r\n ></p-button>\r\n </ng-template>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n <!-- /MAIN-CONTENT -->\r\n</div>\r\n", styles: [".view-pass-detail .key-icon{position:fixed;top:134px;left:35px}.view-pass-detail .title{font-size:15px;font-weight:700;color:var(--primary-text)}.view-pass-detail .note-text{font-size:14px!important}.view-pass-detail .view-pass{border-radius:4px 0 0 4px;padding-left:40px;height:40px;font-size:14px}.view-pass-detail .view-pass.ssh{padding-left:115px;padding-right:40px;margin:10px 0}.view-pass-detail .copy-btn{border-radius:0 4px 4px 0;height:40px;font-size:14px}.view-pass-detail .label-text{color:var(--secondary-text);font-size:13px}.view-pass-detail .time-text{font-size:13px;font-weight:600}.view-pass-detail .view-btn{border-radius:4px;height:35px;font-size:14px;text-align:center;margin-top:4px}.view-pass-detail .border-bottom{position:relative;top:13px}.view-pass-detail p{font-size:14px!important;margin-bottom:1px}.password-checkbox-right{right:120px;position:absolute}.checkbox-visibility-icon{position:relative}.checkbox-visibility-icon input[type=checkbox]{opacity:0;position:absolute;top:4px;left:5px;transform:scale(1.7);z-index:2;cursor:pointer}.checkbox-visibility-icon input[type=checkbox]:checked+span{background:url(assets/common-header-lib/images/login-bg/visibility.svg);background-repeat:no-repeat;background-position:0px;height:12px;width:18px;display:block;background-size:17px}@media (min-width: 992px){.checkbox-visibility-icon input[type=checkbox]:checked+span{height:12px;width:18px;background-size:17px}}.checkbox-visibility-icon input[type=checkbox]+span{background:url(assets/common-header-lib/images/login-bg/visibility_off.svg);background-repeat:no-repeat;background-position:0px;height:12px;width:18px;display:block;background-size:17px}@media (min-width: 992px){.checkbox-visibility-icon input[type=checkbox]+span{height:24px;width:18px;background-size:17px}}\n"], dependencies: [{ kind: "directive", type: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i10$1.Skeleton, selector: "p-skeleton", inputs: ["styleClass", "style", "shape", "animation", "borderRadius", "size", "width", "height"] }, { kind: "component", type: i10.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "style", "styleClass", "badgeClass", "ariaLabel"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }, { kind: "pipe", type: DateDiffPipe, name: "dateDiff" }] });
3148
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ViewpasswordPopupComponent, decorators: [{
3149
- type: Component,
3150
- args: [{ selector: 'app-viewpassword-popup', template: "<div class=\"view-pass-detail\">\r\n <!-- <div class=\"title\">{{\"Generic.Password\" | translate}}</div> -->\r\n <div class=\"mt-4 position-relative px-4\">\r\n <ng-container *ngIf=\"isContentLoaded; else LoadingAnimation\">\r\n <ng-container *ngIf=\"isSSHKey\">\r\n <div class=\"title\">{{ mailDetails[\"smi_MailSubject\"] }}</div>\r\n <p class=\"note-text mt-2\">\r\n {{ \"Generic_lib.DownloadSSHNote\" | translate }}\r\n </p>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"showPassword()\">\r\n <div class=\"d-flex align-items-center\">\r\n <div class=\"password-checkbox-right\">\r\n <div class=\"checkbox-visibility-icon\">\r\n <input type=\"checkbox\" (click)=\"togglePasswordVisibility()\" />\r\n <span></span>\r\n </div>\r\n </div>\r\n <input\r\n class=\"form-control view-pass\"\r\n [ngClass]=\"isSSHKey === true ? 'ssh' : ''\"\r\n readonly\r\n type=\"{{ isPasswordVisible ? 'password' : 'text' }}\"\r\n [value]=\"servicePassword\"\r\n placeholder=\"\"\r\n autocomplete=\"off\"\r\n />\r\n <button\r\n (click)=\"copyToClipboard(servicePassword)\"\r\n type=\"button\"\r\n class=\"btn btn-primary d-flex align-items-center copy-btn\"\r\n title=\"Copy To Clipboard\"\r\n >\r\n <img\r\n src=\"assets/common-header-lib/images/copy-img.svg\"\r\n alt=\"copy Icon\"\r\n class=\"mx-2\"\r\n />{{ \"Generic_lib.Copy\" | translate }}\r\n </button>\r\n <img\r\n *ngIf=\"!isSSHKey\"\r\n src=\"assets/common-header-lib/images/pass-img.svg\"\r\n alt=\"Icon\"\r\n class=\"position-absolute mx-2\"\r\n />\r\n <p *ngIf=\"isSSHKey\" class=\"position-absolute mx-2\">\r\n {{ \"Generic_lib.KeyPassphrase\" | translate }}:\r\n </p>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n\r\n <!-- LODDER -->\r\n <ng-template #LoadingAnimation>\r\n <div class=\"row w-100\">\r\n <div class=\"col-12\">\r\n <p-skeleton height=\"1.5rem\" styleClass=\"mb-2\"></p-skeleton>\r\n </div>\r\n <div class=\"col-12\">\r\n <p-skeleton height=\"1.5rem\" styleClass=\"mb-2\"></p-skeleton>\r\n </div>\r\n <div class=\"col-12\">\r\n <p-skeleton\r\n height=\"1.5rem\"\r\n width=\"30%\"\r\n styleClass=\"float-end mb-2\"\r\n ></p-skeleton>\r\n </div>\r\n </div>\r\n </ng-template>\r\n <!-- /LODDER -->\r\n\r\n <!-- MAIN-CONTENT -->\r\n <ng-container *ngIf=\"isContentLoaded\">\r\n <div class=\"d-flex mt-2 my-4 gap-1 px-4\">\r\n <div class=\"label-text\">\r\n {{ \"Generic_lib.RemainingTime\" | translate }} :\r\n </div>\r\n <div class=\"time-text\">{{ OpenTillDate | dateDiff }}</div>\r\n </div>\r\n\r\n <!-- <ng-container *ngIf=\"showVaultBtn\"> -->\r\n <!-- ! AMIT: Check showVaultBtn condition -->\r\n <ng-container *ngIf=\"true\">\r\n <div class=\"border-bottom\"></div>\r\n <div class=\"d-flex mt-4 justify-content-end gap-1 ms-auto px-4 mb-2\">\r\n <ng-container *ngIf=\"isSSHKey; else downloadbtn\">\r\n <p-button\r\n type=\"button\"\r\n label=\"{{ 'Generic_lib.DownloadKey' | translate }}\"\r\n [iconPos]=\"'right'\"\r\n [loading]=\"isValueUpdated\"\r\n class=\"submit-btn view-btn\"\r\n (click)=\"getGenerateFile()\"\r\n ></p-button>\r\n </ng-container>\r\n <ng-template #downloadbtn>\r\n <p-button\r\n type=\"button\"\r\n label=\"{{ 'Generic_lib.VaultCredentials' | translate }}\"\r\n [iconPos]=\"'right'\"\r\n [loading]=\"isValueUpdated\"\r\n class=\"submit-btn view-btn\"\r\n (click)=\"getHideServicePassword()\"\r\n ></p-button>\r\n </ng-template>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n <!-- /MAIN-CONTENT -->\r\n</div>\r\n", styles: [".view-pass-detail .key-icon{position:fixed;top:134px;left:35px}.view-pass-detail .title{font-size:15px;font-weight:700;color:var(--primary-text)}.view-pass-detail .note-text{font-size:14px!important}.view-pass-detail .view-pass{border-radius:4px 0 0 4px;padding-left:40px;height:40px;font-size:14px}.view-pass-detail .view-pass.ssh{padding-left:115px;padding-right:40px;margin:10px 0}.view-pass-detail .copy-btn{border-radius:0 4px 4px 0;height:40px;font-size:14px}.view-pass-detail .label-text{color:var(--secondary-text);font-size:13px}.view-pass-detail .time-text{font-size:13px;font-weight:600}.view-pass-detail .view-btn{border-radius:4px;height:35px;font-size:14px;text-align:center;margin-top:4px}.view-pass-detail .border-bottom{position:relative;top:13px}.view-pass-detail p{font-size:14px!important;margin-bottom:1px}.password-checkbox-right{right:120px;position:absolute}.checkbox-visibility-icon{position:relative}.checkbox-visibility-icon input[type=checkbox]{opacity:0;position:absolute;top:4px;left:5px;transform:scale(1.7);z-index:2;cursor:pointer}.checkbox-visibility-icon input[type=checkbox]:checked+span{background:url(assets/common-header-lib/images/login-bg/visibility.svg);background-repeat:no-repeat;background-position:0px;height:12px;width:18px;display:block;background-size:17px}@media (min-width: 992px){.checkbox-visibility-icon input[type=checkbox]:checked+span{height:12px;width:18px;background-size:17px}}.checkbox-visibility-icon input[type=checkbox]+span{background:url(assets/common-header-lib/images/login-bg/visibility_off.svg);background-repeat:no-repeat;background-position:0px;height:12px;width:18px;display:block;background-size:17px}@media (min-width: 992px){.checkbox-visibility-icon input[type=checkbox]+span{height:24px;width:18px;background-size:17px}}\n"] }]
3151
- }], ctorParameters: function () { return [{ type: i1$3.DynamicDialogConfig }, { type: ToastMsgService }, { type: EventService }, { type: i4.TranslateService }, { type: HttpCommonService }]; } });
3152
-
3153
- class NoServiceMyAccessPgComponent {
3154
- constructor() {
3155
- this.heading = "We couldn't find any service matching your search within the chosen LOB. Try refining your keywords or choosing a different LOB for better results"; //'Generic_lib.NoSearchResult';
3156
- this.subHeading = '';
3157
- }
3158
- }
3159
- NoServiceMyAccessPgComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NoServiceMyAccessPgComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3160
- NoServiceMyAccessPgComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: NoServiceMyAccessPgComponent, selector: "app-no-service-my-access-pg", inputs: { heading: "heading", subHeading: "subHeading" }, ngImport: i0, template: "<div class=\"no-service-content mt-5\">\r\n <div class=\"text-center\">\r\n <img src=\"assets/common-header-lib/images/Frame.svg\" class=\"frame-img w-75\" alt=\"Icon\">\r\n </div>\r\n <div class=\"no-service-description\">\r\n <!-- <div class=\"no-data-text\">{{heading | translate}}</div> -->\r\n <div class=\"no-data-text\">{{heading }}</div>\r\n <p>{{subHeading}}</p>\r\n </div>\r\n</div>", styles: [".no-service-content{display:flex;justify-content:center;align-items:center;flex-direction:column}@media screen and (min-width: 1744px){.no-service-content{margin-top:200px!important}}.no-service-description{width:55%;text-align:center;margin-top:16px}.no-data-text{font-size:14px;color:#212121;font-weight:400}\n"] });
3161
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NoServiceMyAccessPgComponent, decorators: [{
3162
- type: Component,
3163
- args: [{ selector: 'app-no-service-my-access-pg', template: "<div class=\"no-service-content mt-5\">\r\n <div class=\"text-center\">\r\n <img src=\"assets/common-header-lib/images/Frame.svg\" class=\"frame-img w-75\" alt=\"Icon\">\r\n </div>\r\n <div class=\"no-service-description\">\r\n <!-- <div class=\"no-data-text\">{{heading | translate}}</div> -->\r\n <div class=\"no-data-text\">{{heading }}</div>\r\n <p>{{subHeading}}</p>\r\n </div>\r\n</div>", styles: [".no-service-content{display:flex;justify-content:center;align-items:center;flex-direction:column}@media screen and (min-width: 1744px){.no-service-content{margin-top:200px!important}}.no-service-description{width:55%;text-align:center;margin-top:16px}.no-data-text{font-size:14px;color:#212121;font-weight:400}\n"] }]
3164
- }], ctorParameters: function () { return []; }, propDecorators: { heading: [{
3165
- type: Input
3166
- }], subHeading: [{
3167
- type: Input
3168
- }] } });
3169
-
3170
- class GridPaginationComponent {
3171
- constructor() {
3172
- this.first = 0;
3173
- this.currentPgNo = 0;
3174
- this.rows = GlobalConstants.PAGEROW;
3175
- this.totalRecords = 0;
3176
- this.onPgChange = new EventEmitter();
3177
- }
3178
- onPageChange(event) {
3179
- event['page'] = event['page'] + 1; // By default pg index 0 so add +1
3180
- this.currentPgNo = event.page;
3181
- this.rows = event.rows;
3182
- //Emit Page No and PageRow Size
3183
- this.onPgChange.emit({
3184
- currentPgNo: this.currentPgNo,
3185
- perPgRows: this.rows,
3186
- });
3187
- }
3188
- }
3189
- GridPaginationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: GridPaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3190
- GridPaginationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: GridPaginationComponent, selector: "app-grid-pagination", inputs: { currentPgNo: "currentPgNo", rows: "rows", totalRecords: "totalRecords" }, outputs: { onPgChange: "onPgChange" }, ngImport: i0, template: "<p-paginator (onPageChange)=\"onPageChange($event)\" [first]=\"first\" [rows]=\"rows\" [totalRecords]=\"totalRecords\"\r\n [showFirstLastIcon]=\"true\" [showCurrentPageReport]=\"true\"\r\n currentPageReportTemplate=\"{first} - {last} of {totalRecords}\" [rowsPerPageOptions]=\"[10, 50, 100]\"></p-paginator>\r\n", styles: [""], dependencies: [{ kind: "component", type: i1$5.Paginator, selector: "p-paginator", inputs: ["pageLinkSize", "style", "styleClass", "alwaysShow", "templateLeft", "templateRight", "dropdownAppendTo", "dropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showFirstLastIcon", "totalRecords", "rows", "rowsPerPageOptions", "showJumpToPageDropdown", "showJumpToPageInput", "showPageLinks", "dropdownItemTemplate", "first"], outputs: ["onPageChange"] }] });
3191
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: GridPaginationComponent, decorators: [{
3192
- type: Component,
3193
- args: [{ selector: 'app-grid-pagination', template: "<p-paginator (onPageChange)=\"onPageChange($event)\" [first]=\"first\" [rows]=\"rows\" [totalRecords]=\"totalRecords\"\r\n [showFirstLastIcon]=\"true\" [showCurrentPageReport]=\"true\"\r\n currentPageReportTemplate=\"{first} - {last} of {totalRecords}\" [rowsPerPageOptions]=\"[10, 50, 100]\"></p-paginator>\r\n" }]
3194
- }], ctorParameters: function () { return []; }, propDecorators: { currentPgNo: [{
3195
- type: Input
3196
- }], rows: [{
3197
- type: Input
3198
- }], totalRecords: [{
3199
- type: Input
3200
- }], onPgChange: [{
3201
- type: Output
3202
- }] } });
3203
-
3204
- class customDateFormatPipe {
3205
- constructor() {
3206
- this.datePipe = new DatePipe('en-US');
3207
- }
3208
- transform(value) {
3209
- if (!value) {
3210
- return 'Not Applicable';
3211
- }
3212
- const parsedDate = new Date(value);
3213
- if (isNaN(parsedDate.getTime())) {
3214
- return 'Invalid Date';
3215
- }
3216
- return this.datePipe.transform(parsedDate, 'dd-MMM-yyyy HH:mm:ss');
3217
- }
3218
- }
3219
- customDateFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: customDateFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
3220
- customDateFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: customDateFormatPipe, name: "customDateFormat" });
3221
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: customDateFormatPipe, decorators: [{
3222
- type: Pipe,
3223
- args: [{
3224
- name: 'customDateFormat',
3225
- }]
3226
- }] });
3227
-
3228
- class UserMailboxComponent {
3229
- constructor(dialogService,
3230
- // private readonly _restMyaccessService: RESTMyaccessService,
3231
- // private readonly loginService: RESTLoginFormService,
3232
- _eventService, translate, libService, httpCommonService) {
3233
- this.dialogService = dialogService;
3234
- this._eventService = _eventService;
3235
- this.translate = translate;
3236
- this.libService = libService;
3237
- this.httpCommonService = httpCommonService;
3238
- this.closeMailDialogBox = new EventEmitter();
3239
- this.ListOfUserAssingedMails = [];
3240
- // private userId: string;
3241
- this.unsubscribeAPIEventListenerData = new Subject();
3242
- this.showVaultBtn = false;
3243
- this.SSHFileName = 'ppk';
3244
- this.hasUserAssignedMails = true;
3245
- //Pagintion
3246
- this.currentPgNo = 1;
3247
- this.perPgRows = 10;
3248
- this.totalCount = 0;
3249
- this.NoServiceMsgText = '';
3250
- this.isContentLoaded = false;
3251
- this.repeatLoader = Array.from({ length: this.perPgRows }).map((_, i) => `Item #${i}`);
3252
- this.apiURL = '';
3253
- }
3254
- ngOnInit() {
3255
- this.onLoadMethods();
3256
- }
3257
- /* Require Methods on PageLoad */
3258
- onLoadMethods() {
3259
- this.getUserEmails();
3260
- this.getglobalConfigDetails();
3261
- this._eventService.listenerUserEmail().subscribe((data) => {
3262
- var _a;
3263
- if (data && data['component'] === 'view-pwd') {
3264
- if (data['refreshGrid']) {
3265
- (_a = this.ref) === null || _a === void 0 ? void 0 : _a.close();
3266
- // this.getUserEmails();
3267
- }
3268
- }
3269
- });
3270
- }
3271
- openViewPasswordPanel(mailDetails) {
3272
- this.ref = this.dialogService.open(ViewpasswordPopupComponent, {
3273
- header: mailDetails.sshkey_isenabled
3274
- ? this.translate.instant('Generic_lib.SSHKey')
3275
- : this.translate.instant('Generic_lib.Password'),
3276
- styleClass: 'view-pass-details',
3277
- data: {
3278
- payload: mailDetails,
3279
- btnStatus: this.showVaultBtn,
3280
- SSHfileType: this.SSHFileName,
3281
- },
3282
- });
3283
- // Handle the close event here
3284
- this.ref.onClose.subscribe((result) => {
3285
- this.getUserEmails();
3286
- });
3287
- }
3288
- /*Action : Fetching user Emails from a API */
3289
- getUserEmails() {
3290
- this.isContentLoaded = false;
3291
- let payload = {
3292
- pageSize: this.perPgRows,
3293
- pageNumber: this.currentPgNo,
3294
- };
3295
- this.httpCommonService
3296
- .getUserAssignedMails(payload)
3297
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData), finalize(() => {
3298
- this.isContentLoaded = true;
3299
- }))
3300
- .subscribe((response) => {
3301
- this.ListOfUserAssingedMails = response;
3302
- if (this.ListOfUserAssingedMails.length > 0) {
3303
- this.hasUserAssignedMails = true;
3304
- this.getTotalNoOfRecords();
3305
- }
3306
- else {
3307
- this.hasUserAssignedMails = false;
3308
- this.NoServiceMsgText = errorMsg.NOMAILFOUND;
3309
- }
3310
- });
3311
- }
3312
- //Note: Get Total No of Records for Pagination
3313
- getTotalNoOfRecords() {
3314
- if (this.ListOfUserAssingedMails.length > 0 &&
3315
- this.ListOfUserAssingedMails[0]['totalRecords'] != null) {
3316
- this.totalCount = this.ListOfUserAssingedMails[0]['totalRecords'];
3317
- }
3318
- }
3319
- /*Method : POST
3320
- Action : Get configuration ID based on to show hide Vault Btn*/
3321
- getglobalConfigDetails() {
3322
- this.httpCommonService
3323
- .getglobalConfigDetails('1', [247, 338])
3324
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData))
3325
- .subscribe((data) => {
3326
- if (data && data.length > 0) {
3327
- data.forEach((element) => {
3328
- //For Vault Btn
3329
- if (element && element['id'] === 247 && element['value'] === '0') {
3330
- this.showVaultBtn = false;
3331
- }
3332
- else {
3333
- this.showVaultBtn = true;
3334
- }
3335
- //For Vault Btn
3336
- if (element && element['id'] === 338 && element['value'] === '1') {
3337
- this.SSHFileName = 'pem';
3338
- }
3339
- else {
3340
- this.SSHFileName = 'ppk';
3341
- }
3342
- });
3343
- }
3344
- });
3345
- }
3346
- //Method: Fetch User Assigned Email based on PageNo
3347
- updateDataOnPageChange(pageDetails) {
3348
- this.currentPgNo = pageDetails['currentPgNo'];
3349
- this.perPgRows = pageDetails['perPgRows'];
3350
- this.getUserEmails();
3351
- }
3352
- closeMailBox() {
3353
- this.closeMailDialogBox.emit();
3354
- }
3355
- ngOnDestroy() {
3356
- this.unsubscribeAPIEventListenerData.next(true);
3357
- this.unsubscribeAPIEventListenerData.complete();
3358
- }
3359
- }
3360
- UserMailboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: UserMailboxComponent, deps: [{ token: i1$3.DialogService }, { token: EventService }, { token: i4.TranslateService }, { token: CommonHeaderLibService }, { token: HttpCommonService }], target: i0.ɵɵFactoryTarget.Component });
3361
- UserMailboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: UserMailboxComponent, selector: "app-user-mailbox", inputs: { apiURL: "apiURL" }, outputs: { closeMailDialogBox: "closeMailDialogBox" }, providers: [DialogService], ngImport: i0, template: "<div class=\"mail-content\">\r\n <div\r\n class=\"box-title my-3 d-flex justify-content-between align-items-center w-100\"\r\n >\r\n <div>\r\n {{ \"Generic_lib.MailBox\" | translate }}\r\n </div>\r\n <button\r\n type=\"button\"\r\n class=\"common-bn tertiary-btn ms-auto\"\r\n (click)=\"closeMailBox()\"\r\n >\r\n <img\r\n src=\"assets/common-header-lib/images/close.svg\"\r\n class=\"imgs\"\r\n alt=\"close icon\"\r\n title=\"Close\"\r\n loading=\"lazy\"\r\n />\r\n </button>\r\n </div>\r\n\r\n <div class=\"mail-table\">\r\n <ng-container *ngIf=\"isContentLoaded && hasUserAssignedMails\">\r\n <p-table\r\n [value]=\"ListOfUserAssingedMails\"\r\n selectionMode=\"multiple\"\r\n dataKey=\"code\"\r\n [tableStyle]=\"{ 'min-width': '50rem' }\"\r\n >\r\n <ng-template pTemplate=\"header\">\r\n <tr>\r\n <th scope=\"col\">\r\n {{ \"Generic_lib.From\" | translate }}\r\n </th>\r\n\r\n <th scope=\"col\">\r\n {{ \"Generic_lib.Subject\" | translate }}\r\n </th>\r\n\r\n <th scope=\"col\">\r\n {{ \"Generic_lib.ViewFrom\" | translate }}\r\n </th>\r\n\r\n <th scope=\"col\"></th>\r\n\r\n <th scope=\"col\">\r\n {{ \"Generic_lib.Action\" | translate }}\r\n </th>\r\n </tr>\r\n </ng-template>\r\n <ng-template pTemplate=\"body\" let-userMail>\r\n <tr [ngClass]=\"{ markasRead: userMail.smi_sms_id != 1 }\">\r\n <td class=\"form-colm\">{{ userMail.smi_From_Details }}</td>\r\n <td>\r\n <div class=\"subject-colm\" title=\"{{ userMail.smi_MailSubject }}\">\r\n {{ userMail.smi_MailSubject }}\r\n </div>\r\n </td>\r\n <!-- <td class=\"view-colm\">{{userMail.smi_Received_On}}</td> -->\r\n <td class=\"view-colm\">\r\n {{ userMail.smi_Received_On | customDateFormat }}\r\n </td>\r\n <td>\r\n <div class=\"icon-colm\">\r\n <div>\r\n <img\r\n src=\"assets/common-header-lib/images/mail-icon.svg\"\r\n alt=\"Icon\"\r\n />\r\n </div>\r\n <div>\r\n <img\r\n src=\"assets/common-header-lib/images/flag1.svg\"\r\n alt=\"Icon\"\r\n />\r\n </div>\r\n <div>\r\n <img\r\n src=\"assets/common-header-lib/images/lock1.svg\"\r\n alt=\"Icon\"\r\n class=\"\"\r\n />\r\n </div>\r\n </div>\r\n </td>\r\n <td class=\"action-colm\">\r\n <button\r\n [disabled]=\"userMail.password_status === 'Close'\"\r\n (click)=\"openViewPasswordPanel(userMail)\"\r\n class=\"view-label\"\r\n >\r\n {{ \"Generic_lib.ViewPassword\" | translate }}\r\n </button>\r\n </td>\r\n </tr></ng-template\r\n >\r\n </p-table>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isContentLoaded\">\r\n <p-table\r\n [value]=\"repeatLoader\"\r\n [tableStyle]=\"{ 'min-width': '50rem' }\"\r\n responsiveLayout=\"scroll\"\r\n >\r\n <ng-template pTemplate=\"header\">\r\n <tr>\r\n <th scope=\"col\">{{ \"Generic_lib.From\" | translate }}</th>\r\n <th scope=\"col\">{{ \"Generic_lib.Subject\" | translate }}</th>\r\n <th scope=\"col\">{{ \"Generic_lib.ViewFrom\" | translate }}</th>\r\n <th scope=\"col\"></th>\r\n <th scope=\"col\">{{ \"Generic_lib.Action\" | translate }}</th>\r\n </tr>\r\n </ng-template>\r\n <ng-template pTemplate=\"body\" let-data>\r\n <tr>\r\n <td><p-skeleton height=\"1rem\" width=\"100%\"></p-skeleton></td>\r\n <td><p-skeleton height=\"1rem\" width=\"100%\"></p-skeleton></td>\r\n <td><p-skeleton height=\"1rem\" width=\"100%\"></p-skeleton></td>\r\n <td><p-skeleton height=\"1rem\" width=\"100%\"></p-skeleton></td>\r\n <td><p-skeleton height=\"1rem\" width=\"100%\"></p-skeleton></td>\r\n </tr>\r\n </ng-template>\r\n </p-table>\r\n </ng-container>\r\n <!-- When There is No Data Present -->\r\n <ng-container *ngIf=\"!hasUserAssignedMails\">\r\n <app-no-service-my-access-pg\r\n [heading]=\"NoServiceMsgText\"\r\n ></app-no-service-my-access-pg>\r\n </ng-container>\r\n </div>\r\n <!-- ---Pagination -->\r\n <div class=\"mail-pagination\">\r\n <app-grid-pagination\r\n [totalRecords]=\"totalCount\"\r\n (onPgChange)=\"updateDataOnPageChange($event)\"\r\n ></app-grid-pagination>\r\n </div>\r\n</div>\r\n", styles: [".mail-content{padding:0 25px;height:calc(100vh - 42px);overflow:auto;background-color:#fff}.mail-content .mail-body{background-color:#000}.mail-content .box-title{color:var(--primary-text);font-size:20px;line-height:30px;font-weight:600}.mail-content .view-label{border:none;color:var(--dodger-blue);font-size:13px!important;font-weight:600;cursor:pointer;padding-right:25px}.mail-content .icon-trending{position:relative;left:5px;cursor:pointer}.mail-content .disable-click{pointer-events:none}.mail-content .disable-click:hover,.mail-content .disable-click:focus{cursor:not-allowed}.subject-colm{text-overflow:ellipsis;overflow:hidden;width:500px}.markasRead{border-left:2px solid #3b82f6!important;color:#676879!important;border-bottom:1px solid #dee2e6!important;font-weight:600}.icon-colm div{display:inline-flex;width:30px;height:30px;border-radius:50%;align-items:center;justify-content:center;vertical-align:middle;margin-right:4px;cursor:pointer}.icon-colm div img{width:16px;height:16px}.icon-colm div:hover{background-color:#fff}.icon-colm div:hover img{filter:invert(0%) sepia(4%) saturate(0%) hue-rotate(324deg) brightness(55%) contrast(105%)}.view-label{background:url(assets/common-header-lib/images/east.svg) no-repeat 99% 5px}button:disabled{cursor:not-allowed!important;opacity:50%}\n"], dependencies: [{ kind: "directive", type: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i9.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i10$1.Skeleton, selector: "p-skeleton", inputs: ["styleClass", "style", "shape", "animation", "borderRadius", "size", "width", "height"] }, { kind: "component", type: i9$2.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "style", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "scrollDirection", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "responsive", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "autoLayout", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "groupRowsByOrder", "responsiveLayout", "breakpoint", "virtualRowHeight", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll"], outputs: ["selectAllChange", "selectionChange", "contextMenuSelectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "component", type: NoServiceMyAccessPgComponent, selector: "app-no-service-my-access-pg", inputs: ["heading", "subHeading"] }, { kind: "component", type: GridPaginationComponent, selector: "app-grid-pagination", inputs: ["currentPgNo", "rows", "totalRecords"], outputs: ["onPgChange"] }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }, { kind: "pipe", type: customDateFormatPipe, name: "customDateFormat" }] });
3362
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: UserMailboxComponent, decorators: [{
3363
- type: Component,
3364
- args: [{ selector: 'app-user-mailbox', providers: [DialogService], template: "<div class=\"mail-content\">\r\n <div\r\n class=\"box-title my-3 d-flex justify-content-between align-items-center w-100\"\r\n >\r\n <div>\r\n {{ \"Generic_lib.MailBox\" | translate }}\r\n </div>\r\n <button\r\n type=\"button\"\r\n class=\"common-bn tertiary-btn ms-auto\"\r\n (click)=\"closeMailBox()\"\r\n >\r\n <img\r\n src=\"assets/common-header-lib/images/close.svg\"\r\n class=\"imgs\"\r\n alt=\"close icon\"\r\n title=\"Close\"\r\n loading=\"lazy\"\r\n />\r\n </button>\r\n </div>\r\n\r\n <div class=\"mail-table\">\r\n <ng-container *ngIf=\"isContentLoaded && hasUserAssignedMails\">\r\n <p-table\r\n [value]=\"ListOfUserAssingedMails\"\r\n selectionMode=\"multiple\"\r\n dataKey=\"code\"\r\n [tableStyle]=\"{ 'min-width': '50rem' }\"\r\n >\r\n <ng-template pTemplate=\"header\">\r\n <tr>\r\n <th scope=\"col\">\r\n {{ \"Generic_lib.From\" | translate }}\r\n </th>\r\n\r\n <th scope=\"col\">\r\n {{ \"Generic_lib.Subject\" | translate }}\r\n </th>\r\n\r\n <th scope=\"col\">\r\n {{ \"Generic_lib.ViewFrom\" | translate }}\r\n </th>\r\n\r\n <th scope=\"col\"></th>\r\n\r\n <th scope=\"col\">\r\n {{ \"Generic_lib.Action\" | translate }}\r\n </th>\r\n </tr>\r\n </ng-template>\r\n <ng-template pTemplate=\"body\" let-userMail>\r\n <tr [ngClass]=\"{ markasRead: userMail.smi_sms_id != 1 }\">\r\n <td class=\"form-colm\">{{ userMail.smi_From_Details }}</td>\r\n <td>\r\n <div class=\"subject-colm\" title=\"{{ userMail.smi_MailSubject }}\">\r\n {{ userMail.smi_MailSubject }}\r\n </div>\r\n </td>\r\n <!-- <td class=\"view-colm\">{{userMail.smi_Received_On}}</td> -->\r\n <td class=\"view-colm\">\r\n {{ userMail.smi_Received_On | customDateFormat }}\r\n </td>\r\n <td>\r\n <div class=\"icon-colm\">\r\n <div>\r\n <img\r\n src=\"assets/common-header-lib/images/mail-icon.svg\"\r\n alt=\"Icon\"\r\n />\r\n </div>\r\n <div>\r\n <img\r\n src=\"assets/common-header-lib/images/flag1.svg\"\r\n alt=\"Icon\"\r\n />\r\n </div>\r\n <div>\r\n <img\r\n src=\"assets/common-header-lib/images/lock1.svg\"\r\n alt=\"Icon\"\r\n class=\"\"\r\n />\r\n </div>\r\n </div>\r\n </td>\r\n <td class=\"action-colm\">\r\n <button\r\n [disabled]=\"userMail.password_status === 'Close'\"\r\n (click)=\"openViewPasswordPanel(userMail)\"\r\n class=\"view-label\"\r\n >\r\n {{ \"Generic_lib.ViewPassword\" | translate }}\r\n </button>\r\n </td>\r\n </tr></ng-template\r\n >\r\n </p-table>\r\n </ng-container>\r\n <ng-container *ngIf=\"!isContentLoaded\">\r\n <p-table\r\n [value]=\"repeatLoader\"\r\n [tableStyle]=\"{ 'min-width': '50rem' }\"\r\n responsiveLayout=\"scroll\"\r\n >\r\n <ng-template pTemplate=\"header\">\r\n <tr>\r\n <th scope=\"col\">{{ \"Generic_lib.From\" | translate }}</th>\r\n <th scope=\"col\">{{ \"Generic_lib.Subject\" | translate }}</th>\r\n <th scope=\"col\">{{ \"Generic_lib.ViewFrom\" | translate }}</th>\r\n <th scope=\"col\"></th>\r\n <th scope=\"col\">{{ \"Generic_lib.Action\" | translate }}</th>\r\n </tr>\r\n </ng-template>\r\n <ng-template pTemplate=\"body\" let-data>\r\n <tr>\r\n <td><p-skeleton height=\"1rem\" width=\"100%\"></p-skeleton></td>\r\n <td><p-skeleton height=\"1rem\" width=\"100%\"></p-skeleton></td>\r\n <td><p-skeleton height=\"1rem\" width=\"100%\"></p-skeleton></td>\r\n <td><p-skeleton height=\"1rem\" width=\"100%\"></p-skeleton></td>\r\n <td><p-skeleton height=\"1rem\" width=\"100%\"></p-skeleton></td>\r\n </tr>\r\n </ng-template>\r\n </p-table>\r\n </ng-container>\r\n <!-- When There is No Data Present -->\r\n <ng-container *ngIf=\"!hasUserAssignedMails\">\r\n <app-no-service-my-access-pg\r\n [heading]=\"NoServiceMsgText\"\r\n ></app-no-service-my-access-pg>\r\n </ng-container>\r\n </div>\r\n <!-- ---Pagination -->\r\n <div class=\"mail-pagination\">\r\n <app-grid-pagination\r\n [totalRecords]=\"totalCount\"\r\n (onPgChange)=\"updateDataOnPageChange($event)\"\r\n ></app-grid-pagination>\r\n </div>\r\n</div>\r\n", styles: [".mail-content{padding:0 25px;height:calc(100vh - 42px);overflow:auto;background-color:#fff}.mail-content .mail-body{background-color:#000}.mail-content .box-title{color:var(--primary-text);font-size:20px;line-height:30px;font-weight:600}.mail-content .view-label{border:none;color:var(--dodger-blue);font-size:13px!important;font-weight:600;cursor:pointer;padding-right:25px}.mail-content .icon-trending{position:relative;left:5px;cursor:pointer}.mail-content .disable-click{pointer-events:none}.mail-content .disable-click:hover,.mail-content .disable-click:focus{cursor:not-allowed}.subject-colm{text-overflow:ellipsis;overflow:hidden;width:500px}.markasRead{border-left:2px solid #3b82f6!important;color:#676879!important;border-bottom:1px solid #dee2e6!important;font-weight:600}.icon-colm div{display:inline-flex;width:30px;height:30px;border-radius:50%;align-items:center;justify-content:center;vertical-align:middle;margin-right:4px;cursor:pointer}.icon-colm div img{width:16px;height:16px}.icon-colm div:hover{background-color:#fff}.icon-colm div:hover img{filter:invert(0%) sepia(4%) saturate(0%) hue-rotate(324deg) brightness(55%) contrast(105%)}.view-label{background:url(assets/common-header-lib/images/east.svg) no-repeat 99% 5px}button:disabled{cursor:not-allowed!important;opacity:50%}\n"] }]
3365
- }], ctorParameters: function () { return [{ type: i1$3.DialogService }, { type: EventService }, { type: i4.TranslateService }, { type: CommonHeaderLibService }, { type: HttpCommonService }]; }, propDecorators: { closeMailDialogBox: [{
3366
- type: Output
3367
- }], apiURL: [{
3368
- type: Input
3369
- }] } });
3370
-
3371
- class ConfirmDialogComponent {
3372
- constructor(confirmationService) {
3373
- this.confirmationService = confirmationService;
3374
- this.header = '';
3375
- this.message = '';
3376
- this.result = new EventEmitter();
3377
- }
3378
- openConfirmModal(event) {
3379
- this.confirmationService.confirm({
3380
- target: event.target,
3381
- message: this.message,
3382
- header: this.header,
3383
- closeOnEscape: true,
3384
- // icon: 'pi pi-exclamation-triangle',
3385
- // ✔ PrimeNG 14 button config
3386
- acceptLabel: 'Yes',
3387
- rejectLabel: 'No',
3388
- acceptButtonStyleClass: 'p-button-primary',
3389
- rejectButtonStyleClass: 'p-button-secondary p-button-outlined',
3390
- accept: () => {
3391
- this.result.emit(true);
3392
- },
3393
- reject: () => {
3394
- this.result.emit(false);
3395
- },
3396
- });
3397
- }
3398
- }
3399
- ConfirmDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ConfirmDialogComponent, deps: [{ token: i9.ConfirmationService }], target: i0.ɵɵFactoryTarget.Component });
3400
- ConfirmDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: ConfirmDialogComponent, selector: "confirm-dialog", inputs: { header: "header", message: "message" }, outputs: { result: "result" }, providers: [ConfirmationService], ngImport: i0, template: "<div class=\"card flex justify-center gap-2 view-pass-details confirmtion-modal\">\r\n <p-confirmDialog icon=\"none\" acceptIcon=\"\" rejectIcon=\"\"></p-confirmDialog>\r\n</div>\r\n", styles: [""], dependencies: [{ kind: "component", type: i2$1.ConfirmDialog, selector: "p-confirmDialog", inputs: ["header", "icon", "message", "style", "styleClass", "maskStyleClass", "acceptIcon", "acceptLabel", "acceptAriaLabel", "acceptVisible", "rejectIcon", "rejectLabel", "rejectAriaLabel", "rejectVisible", "acceptButtonStyleClass", "rejectButtonStyleClass", "closeOnEscape", "dismissableMask", "blockScroll", "rtl", "closable", "appendTo", "key", "autoZIndex", "baseZIndex", "transitionOptions", "focusTrap", "defaultFocus", "breakpoints", "visible", "position"], outputs: ["onHide"] }] });
3401
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ConfirmDialogComponent, decorators: [{
3402
- type: Component,
3403
- args: [{ selector: 'confirm-dialog', providers: [ConfirmationService], template: "<div class=\"card flex justify-center gap-2 view-pass-details confirmtion-modal\">\r\n <p-confirmDialog icon=\"none\" acceptIcon=\"\" rejectIcon=\"\"></p-confirmDialog>\r\n</div>\r\n" }]
3404
- }], ctorParameters: function () { return [{ type: i9.ConfirmationService }]; }, propDecorators: { header: [{
3405
- type: Input,
3406
- args: ['header']
3407
- }], message: [{
3408
- type: Input,
3409
- args: ['message']
3410
- }], result: [{
3411
- type: Output,
3412
- args: ['result']
3413
- }] } });
3414
-
3415
- class CommonHeaderLibComponent {
3416
- constructor(cdRef, _signalRService, _eventService, translate, httpCommonService, msgService) {
3417
- this.cdRef = cdRef;
3418
- this._signalRService = _signalRService;
3419
- this._eventService = _eventService;
3420
- this.translate = translate;
3421
- this.httpCommonService = httpCommonService;
3422
- this.msgService = msgService;
3423
- // @Input() apiURL: string = '';
3424
- this.EnableLogo = true;
3425
- this.moduleName = '';
3426
- this.EnableTimeZone = true;
3427
- this.EnableLOB = true;
3428
- this.showAllLOB = false;
3429
- this.EnableMail = true;
3430
- this.EnableNotifications = true;
3431
- this.EnableMoreApps = true;
3432
- this.EnableProfile = true;
3433
- /* Supported languages forwarded down to <ng-translation>. The host app
3434
- loads languages.json once (via its APP_INITIALIZER) and binds the
3435
- resulting list here, eliminating a duplicate fetch from the library. */
3436
- this.languages = [];
3437
- this.timezoneDetails = new EventEmitter();
3438
- this.lobSelected = new EventEmitter();
3439
- this.getBgImage = new EventEmitter();
3440
- this.langChange = new EventEmitter();
3441
- this.overlayStateChange = new EventEmitter();
3442
- this.userTimeZoneAbbreviations = '';
3443
- this.userTimeZoneFullForm = '';
3444
- this.userLOBList = [];
3445
- this.showLobLoader = true;
3446
- this.totalEmails = '';
3447
- this.userNotificationCount = '';
3448
- this.ListOfUserPrivillegedApp = [];
3449
- this.userdisplayName = '';
3450
- this.userDetailsInfo = [];
3451
- this.isOpenSidePopup = false;
3452
- this.showUserDetails = false;
3453
- this.userAppLoaderLoadder = true;
3454
- this.repeatLoader = new Array(12).fill(0);
3455
- this.showMailboxScreenflag = false;
3456
- this.isErrorFound = false;
3457
- this.userNotificationCountObj = {};
3458
- this.eventwiseNotificationCount = [];
3459
- this.notificationLoadder = true;
3460
- this.unsubscribeAPIEventListenerData = new Subject();
3461
- this.unsubscribeSidebarListenerData = new Subject();
3462
- this.userId = '';
3463
- this.assetCategoryMenuList = [];
3464
- this.showbusinessFileds = false;
3465
- this.showInfraFileds = false;
3466
- this.showfiltersearch = true;
3467
- this.clickInside = false;
3468
- this.isLobContentLoaded = false;
3469
- this.isHeaderContentLoaded = false;
3470
- this.requestTypeId = 1;
3471
- this.accessTypes = [
3472
- { id: 1, name: 'Permanent' },
3473
- { id: 2, name: 'OneTime' },
3474
- { id: 3, name: 'TimeBased' },
3475
- ];
3476
- this.selectedAssetName = {
3477
- assetId: -100,
3478
- assetName: 'All',
3479
- };
3480
- this.assetName = '';
3481
- this.assetId = 0;
3482
- this.allCategory = {
3483
- assetTypeId: -100,
3484
- assetTypeValue: 'All Section',
3485
- assetList: [
3486
- {
3487
- assetId: -100,
3488
- assetName: 'All',
3489
- },
3490
- ],
3491
- };
3492
- this.translateName = [
3493
- 'Generic_lib.Permanent',
3494
- 'Generic_lib.OneTime',
3495
- 'Generic_lib.TimeBased',
3496
- ];
3497
- this.appPanel = OverlayPanel;
3498
- this.isErrorOccured = false;
3499
- // @Output() public refreshNotification = new EventEmitter<boolean>();
3500
- this.repeatLoader1 = new Array(9).fill(0);
3501
- // Mapping of app codes to their pre-connection validation checks.
3502
- // Apps not listed here open the connection directly without a config check.
3503
- this.APP_CONNECTION_CHECKS = {
3504
- APP032: {
3505
- check: () => this.httpCommonService.checkMFAConfiguration(),
3506
- },
3507
- APP033: {
3508
- // Backend expects the lowercase app code (mirrors Workflow_UI MR !287)
3509
- check: () => this.httpCommonService.getInternalAppConfig('app033'),
3510
- },
3511
- };
3512
- this.setWebAPIURL();
3513
- }
3514
- ngOnChanges(changes) {
3515
- if (changes['EnableLOB']) {
3516
- if (changes['EnableLOB'].currentValue === true) {
3517
- this.getListofLOB();
3518
- }
3519
- }
3520
- }
3521
- ngOnInit() {
3522
- this.headerLogo = '';
3523
- this.overlayStateChange.emit(false);
3524
- this.setWebAPIURL();
3525
- if (this.EnableLogo)
3526
- this.loadHeaderLogo();
3527
- this.onLoadMethod();
3528
- }
3529
- onLoadMethod() {
3530
- this.onDemandActions();
3531
- if (this.EnableNotifications)
3532
- this.getEventwiseNotificationCount();
3533
- this.getUserActivityDetails();
3534
- }
3535
- //* on click of Mail icon
3536
- showMailBoxScreen() {
3537
- this.showMailboxScreenflag = true;
3538
- this.overlayStateChange.emit(true);
3539
- }
3540
- hideMailBoxScreen() {
3541
- this.showMailboxScreenflag = false;
3542
- this.overlayStateChange.emit(false);
3543
- }
3544
- //* Main language change emitter
3545
- languageChange(event) {
3546
- if (!event)
3547
- return;
3548
- this.langChange.emit(event);
3549
- }
3550
- showUserAppsPanel(event) {
3551
- this.appPanel.toggle(event);
3552
- if (this.ListOfUserPrivillegedApp.length === 0) {
3553
- this.getUserAssignedApp();
3554
- }
3555
- }
3556
- showUserDetailsPanel() {
3557
- this.openSidePopup();
3558
- this.showUserDetails = true;
3559
- }
3560
- closeSidePopup() {
3561
- this.showUserDetails = false;
3562
- this.isOpenSidePopup = false;
3563
- }
3564
- openSidePopup() {
3565
- this.isOpenSidePopup = true;
3566
- }
3567
- //Method: Take Connection of Application
3568
- getConnectionofApplication(appCode) {
3569
- var _a;
3570
- // Close the apps (9-dots) overlay panel immediately on selection.
3571
- (_a = this.appPanel) === null || _a === void 0 ? void 0 : _a.hide();
3572
- const appCheck = this.APP_CONNECTION_CHECKS[appCode];
3573
- const commonError = 'Unable to verify the application configuration.';
3574
- // Apps without a configured check connect directly.
3575
- if (!appCheck) {
3576
- this.httpCommonService.openAppConnection(appCode);
3577
- return;
3578
- }
3579
- appCheck
3580
- .check()
3581
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData))
3582
- .subscribe({
3583
- next: (response) => {
3584
- if (response === null || response === void 0 ? void 0 : response.isValid) {
3585
- this.httpCommonService.openAppConnection(appCode);
3586
- }
3587
- else {
3588
- this.msgService.error((response === null || response === void 0 ? void 0 : response.errorMessage) || commonError);
3589
- }
3590
- },
3591
- error: () => {
3592
- this.msgService.error(commonError);
3593
- },
3594
- });
3595
- }
3596
- getConnectToSingalRhub() {
3597
- return __awaiter(this, void 0, void 0, function* () {
3598
- try {
3599
- yield this._signalRService.initializeSignalRConnection();
3600
- }
3601
- catch (error) {
3602
- console.error('All SignalR hub connections failed.', error);
3603
- }
3604
- });
3605
- }
3606
- ngAfterViewInit() {
3607
- this.ListenToTranslateEvent();
3608
- // Initialize modal instance when DOM is ready
3609
- this.bsModalInstance = new bootstrap.Modal(this.notifyModal.nativeElement);
3610
- }
3611
- /*Method : Listen to the Other component event
3612
- Action : It used to listen diff. component command on basis of perform some actions */
3613
- onDemandActions() {
3614
- //Listen the Event Emit by SignalR Hub
3615
- this._signalRService
3616
- .listenerEventMsg()
3617
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData))
3618
- .subscribe((data) => {
3619
- if (data && data['application'] && data['events']) {
3620
- this.isErrorFound = false;
3621
- this.userNotificationCountObj = data['application'];
3622
- //Note: If Notification count > 99
3623
- if (this.userNotificationCountObj &&
3624
- this.userNotificationCountObj['PendingCount']) {
3625
- if (Number(this.userNotificationCountObj['PendingCount']) > 99) {
3626
- this.userNotificationCount = '99+';
3627
- }
3628
- else {
3629
- this.userNotificationCount = String(this.userNotificationCountObj['PendingCount']);
3630
- }
3631
- }
3632
- else {
3633
- this.userNotificationCount = '';
3634
- }
3635
- this.eventwiseNotificationCount = data['events'];
3636
- }
3637
- });
3638
- this.listenToTimeZoneConfig();
3639
- this.listenToEmailCountEvent();
3640
- }
3641
- //Listen to TimeZone Config
3642
- listenToTimeZoneConfig() {
3643
- this._eventService
3644
- .listenerTimezone()
3645
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData))
3646
- .subscribe((response) => {
3647
- if (response && response['component'] == 'timezone') {
3648
- this.userTimeZoneAbbreviations =
3649
- response['usertimezoneAbbreviations'];
3650
- this.timezoneDetails.emit({
3651
- abbreviations: response['usertimezoneAbbreviations'],
3652
- userTimeZone: response['id'],
3653
- timelist: response['timelist'],
3654
- });
3655
- this.userTimeZoneFullForm = response['userTimeZoneFullForm'];
3656
- }
3657
- });
3658
- }
3659
- //Listen to Email Count when user Read
3660
- listenToEmailCountEvent() {
3661
- this._eventService
3662
- .listenerUserEmail()
3663
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData))
3664
- .subscribe((data) => {
3665
- if (data && data['component'] === 'email-count') {
3666
- this.totalEmails = data['mailCount'];
3667
- }
3668
- });
3669
- }
3670
- //Method: Convert text one Lang. to another
3671
- ListenToTranslateEvent() {
3672
- this.translate.onLangChange.subscribe((val) => {
3673
- this.getTranslateContent();
3674
- });
3675
- }
3676
- //Method: Convert text one Lang. to another Event Listener
3677
- getTranslateContent() {
3678
- this.translate.get(this.translateName).subscribe((trans) => {
3679
- this.accessTypes.forEach((item, index) => {
3680
- const key = this.translateName[index];
3681
- item['name'] = trans[key];
3682
- });
3683
- });
3684
- }
3685
- OpenNotificationModal() {
3686
- var _a;
3687
- // const modalRef = this.modalService.open(NotificationSidebarComponent);
3688
- // modalRef.componentInstance.lesson = lesson;
3689
- (_a = this.bsModalInstance) === null || _a === void 0 ? void 0 : _a.show();
3690
- }
3691
- closeModal() {
3692
- var _a;
3693
- (_a = this.bsModalInstance) === null || _a === void 0 ? void 0 : _a.hide();
3694
- }
3695
- //Method: Call APi to Fetch New Notification Count
3696
- getEventwiseNotification() {
3697
- // this.refreshNotification.emit(true);
3698
- this.getEventwiseNotificationCount();
3699
- }
3700
- setWebAPIURL() {
3701
- if (GlobalConstants.baseURL == undefined) {
3702
- if (localStorage.getItem('_WAU')) {
3703
- GlobalConstants.baseURL = localStorage.getItem('_WAU') || '';
3704
- }
3705
- else {
3706
- let parsedURL = new URL(window.location.href);
3707
- let WebApiUrl = parsedURL.origin;
3708
- GlobalConstants.baseURL = WebApiUrl;
3709
- localStorage.setItem('_WAU', GlobalConstants.baseURL);
3710
- }
3711
- }
3712
- }
3713
- getUserActivityDetails() {
3714
- // Reset error state before API calls
3715
- this.isErrorFound = false;
3716
- // Initialize response container for forkJoin
3717
- const responseSet = {};
3718
- // Build payload once for notification API
3719
- const notificationPayload = {
3720
- ApplicationName: GlobalConstants.applicationName,
3721
- UserId: String(this.userId),
3722
- };
3723
- // Add notification API if enabled
3724
- if (this.EnableNotifications) {
3725
- responseSet.notifications = this.httpCommonService
3726
- .getWorkFlowTicketCount(notificationPayload)
3727
- .pipe(
3728
- // Extract valid notification data
3729
- map((response) => response),
3730
- // Handle API error without breaking forkJoin
3731
- catchError(() => {
3732
- this.isErrorFound = true;
3733
- return of(null);
3734
- }));
3735
- }
3736
- // Add user profile API if enabled
3737
- if (this.EnableProfile) {
3738
- responseSet.userinfo = this.httpCommonService.getLoggedInUserDetails();
3739
- }
3740
- // Add timezone API if enabled
3741
- if (this.EnableTimeZone) {
3742
- responseSet.timeZone = this.httpCommonService.getGlobalTimeZone();
3743
- }
3744
- // Add unread email count API if enabled
3745
- if (this.EnableMail) {
3746
- responseSet.emailCount =
3747
- this.httpCommonService.getUnreadUserEmailsCount();
3748
- }
3749
- // Execute all enabled APIs together
3750
- forkJoin(responseSet)
3751
- .pipe(
3752
- // Mark header loading as completed
3753
- finalize(() => {
3754
- this.isHeaderContentLoaded = true;
3755
- }))
3756
- .subscribe((response) => {
3757
- // Process notification data
3758
- if (response.notifications) {
3759
- this.getTotalNotificationCounts(response.notifications);
3760
- }
3761
- // Process user profile data
3762
- if (response.userinfo) {
3763
- this.getLoggedInUserDetails(response.userinfo);
3764
- }
3765
- // Process timezone list
3766
- if (response.timeZone) {
3767
- this.getListOfTimeZones(response.timeZone);
3768
- }
3769
- // Process unread email count
3770
- if (response.emailCount) {
3771
- this.getUserEmailCount(response.emailCount);
3772
- }
3773
- });
3774
- }
3775
- getTotalNotificationCounts(data) {
3776
- // this.isErrorFound = false;
3777
- this.userNotificationCountObj = data || {};
3778
- if (this.userNotificationCountObj &&
3779
- this.userNotificationCountObj['PendingCount']) {
3780
- if (Number(this.userNotificationCountObj['PendingCount']) > 99) {
3781
- this.userNotificationCount = '99+';
3782
- }
3783
- else {
3784
- this.userNotificationCount = String(this.userNotificationCountObj['PendingCount']);
3785
- }
3786
- }
3787
- else {
3788
- this.userNotificationCount = '';
3789
- }
3790
- }
3791
- /*Method : Retrieves details of the currently logged-in user*/
3792
- getLoggedInUserDetails(response) {
3793
- if (response && response['success'] && response['result']) {
3794
- this.userDetails = response['result'];
3795
- this.userdisplayName = this.userDetails['userDisplayName'];
3796
- }
3797
- }
3798
- /*Method : GET
3799
- Action : Get List of Time Zone*/
3800
- getListOfTimeZones(result) {
3801
- if (result && result['abbreviations']) {
3802
- this.timezoneDetails.emit(result);
3803
- this.userTimeZoneAbbreviations = result['abbreviations'];
3804
- this.userTimeZoneFullForm = result['userTimeZone'];
3805
- }
3806
- }
3807
- /*Method : GET
3808
- Action : Transformation fo Count */
3809
- getUserEmailCount(count) {
3810
- if (count <= 0) {
3811
- this.totalEmails = '';
3812
- }
3813
- else if (count > 99) {
3814
- this.totalEmails = '99+';
3815
- }
3816
- else {
3817
- this.totalEmails = String(count);
3818
- }
3819
- }
3820
- /** API to get the header LOGO */
3821
- loadHeaderLogo() {
3822
- this.httpCommonService.getLogo().subscribe((img) => {
3823
- this.getBgImage.emit(img);
3824
- this.headerLogo = 'data:image/png;base64,' + img['logoImg'];
3825
- });
3826
- }
3827
- /** API to get the timezone */
3828
- // getUserPreferredTimezone() {
3829
- // this.httpCommonService.getGlobalTimeZone().subscribe((res: any) => {
3830
- // if (res?.abbreviations) {
3831
- // this.userTimeZoneAbbreviations = res.abbreviations;
3832
- // this.userTimeZoneFullForm = res?.userTimeZone;
3833
- // }
3834
- // });
3835
- // }
3836
- //* get Lob AI call and initial LOB emitter
3837
- getListofLOB() {
3838
- this.showLobLoader = true;
3839
- this.httpCommonService.getLOBList().subscribe((res) => {
3840
- var _a, _b, _c;
3841
- this.showLobLoader = false;
3842
- this.userLOBList = res.result;
3843
- //* As per parent input, here we add All LOB option in DDL
3844
- if (this.showAllLOB)
3845
- this.userLOBList.unshift({
3846
- lobId: -1,
3847
- lobName: 'All LOB',
3848
- });
3849
- let initialLobSelected = this.getLobById(this.userLOBList, (_a = this.userLOBList[0]) === null || _a === void 0 ? void 0 : _a.lobId);
3850
- const preSelectedLob = JSON.parse(localStorage.getItem('XOB') || 'null');
3851
- let isPreSelectedLobExistsInList = this.userLOBList.some((lob) => Number(lob.lobId) == Number(preSelectedLob === null || preSelectedLob === void 0 ? void 0 : preSelectedLob.LOBId));
3852
- if (preSelectedLob &&
3853
- Number(preSelectedLob.LOBId) &&
3854
- isPreSelectedLobExistsInList) {
3855
- //* Emitting 1st LOB for LOB List as LOb details available in localstorega
3856
- this.selectedLOBId = preSelectedLob === null || preSelectedLob === void 0 ? void 0 : preSelectedLob.LOBId;
3857
- this.tempSelectedLOBId = preSelectedLob === null || preSelectedLob === void 0 ? void 0 : preSelectedLob.LOBId;
3858
- initialLobSelected = this.getLobById(this.userLOBList, this.selectedLOBId);
3859
- }
3860
- else {
3861
- //* Emitting 1st LOB for LOB List if localstorage have null LOB details
3862
- this.selectedLOBId = (_b = this.userLOBList[0]) === null || _b === void 0 ? void 0 : _b.lobId;
3863
- this.tempSelectedLOBId = (_c = this.userLOBList[0]) === null || _c === void 0 ? void 0 : _c.lobId;
3864
- localStorage.setItem('XOB', JSON.stringify(initialLobSelected));
3865
- }
3866
- this.lobSelected.emit(initialLobSelected);
3867
- this.cdRef.detectChanges();
3868
- });
3869
- }
3870
- //* Selected LOB emitter
3871
- onLobChangeEvent(event) {
3872
- this.selectedLOBId = event.value;
3873
- this.openConfirm(event);
3874
- }
3875
- openConfirm(event) {
3876
- this.confirmDialog.openConfirmModal(event);
3877
- }
3878
- lobChangeConfirmation(event) {
3879
- if (event) {
3880
- this.tempSelectedLOBId = this.selectedLOBId;
3881
- let selectedLob = this.getLobById(this.userLOBList, this.tempSelectedLOBId);
3882
- localStorage.setItem('XOB', JSON.stringify(selectedLob));
3883
- this.lobSelected.emit(selectedLob);
3884
- }
3885
- else {
3886
- this.selectedLOBId = this.tempSelectedLOBId;
3887
- }
3888
- }
3889
- setCustomLobId(lobId) {
3890
- if (this.userLOBList) {
3891
- let filteredLobs = this.getLobById(this.userLOBList, lobId);
3892
- if (Object.keys(filteredLobs).length > 0) {
3893
- this.selectedLOBId = lobId;
3894
- //* If the LOB is forcefully set from the parent module, CustomLOBSetByParent is set to true; otherwise, it is set to false.
3895
- filteredLobs['CustomLOBSetByParent'] = true;
3896
- this.lobSelected.emit(filteredLobs);
3897
- localStorage.setItem('XOB', JSON.stringify(filteredLobs));
3898
- }
3899
- else {
3900
- //todo need to do translation
3901
- this.msgService.error('The LOB you are trying to set is not available.');
3902
- }
3903
- }
3904
- }
3905
- //* Helper function to get selected LOB Object by LobId
3906
- getLobById(list, id) {
3907
- const item = list.find((x) => x.lobId === id);
3908
- if (!item)
3909
- return {};
3910
- return {
3911
- LOBId: item.lobId,
3912
- LOBName: item.lobName,
3913
- CustomLOBSetByParent: false,
3914
- };
3915
- }
3916
- //* get the Mail count
3917
- // getMailCount() {
3918
- // this.httpCommonService
3919
- // .getUnreadUserEmailsCount()
3920
- // .pipe(takeUntil(this.unsubscribeAPIEventListenerData))
3921
- // .subscribe((result) => {
3922
- // this.totalEmails = result;
3923
- // });
3924
- // }
3925
- //Action: Used to Get Total Eventwise User Notification Count */
3926
- getEventwiseNotificationCount() {
3927
- let payload = {
3928
- ApplicationName: GlobalConstants.applicationName,
3929
- UserId: String(this.userId),
3930
- };
3931
- this.notificationLoadder = true;
3932
- this.httpCommonService
3933
- .getWorkFlowTicketEventwiseCount(payload)
3934
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData), finalize(() => (this.notificationLoadder = false)))
3935
- .subscribe({
3936
- next: (data) => {
3937
- this.isErrorFound = data.length == 0;
3938
- this.eventwiseNotificationCount = data;
3939
- },
3940
- error: () => {
3941
- this.isErrorFound = true;
3942
- },
3943
- });
3944
- }
3945
- //* Get Module privilege list
3946
- getUserAssignedApp() {
3947
- this.ListOfUserPrivillegedApp = [];
3948
- this.userAppLoaderLoadder = true;
3949
- this.httpCommonService
3950
- .getUserAssignedApps()
3951
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData))
3952
- .subscribe((result) => {
3953
- this.userAppLoaderLoadder = false;
3954
- this.ListOfUserPrivillegedApp = result;
3955
- });
3956
- }
3957
- //* Get User details
3958
- getLoggedInuserDetails() {
3959
- this.httpCommonService.getLoggedInUserDetails().subscribe((result) => {
3960
- this.userDetailsInfo = result.result;
3961
- this.userdisplayName = this.userDetailsInfo['userDisplayName'];
3962
- });
3963
- }
3964
- ngOnDestroy() {
3965
- this.unsubscribeAPIEventListenerData.next(true);
3966
- this.unsubscribeAPIEventListenerData.complete();
3967
- this.unsubscribeSidebarListenerData.next(true);
3968
- this.unsubscribeSidebarListenerData.complete();
3969
- }
3970
- }
3971
- CommonHeaderLibComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CommonHeaderLibComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: RestSignalRService }, { token: EventService }, { token: i4.TranslateService }, { token: HttpCommonService }, { token: ToastMsgService }], target: i0.ɵɵFactoryTarget.Component });
3972
- CommonHeaderLibComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CommonHeaderLibComponent, selector: "lib-common-header-lib", inputs: { EnableLogo: "EnableLogo", moduleName: "moduleName", EnableTimeZone: "EnableTimeZone", EnableLOB: "EnableLOB", showAllLOB: "showAllLOB", EnableMail: "EnableMail", EnableNotifications: "EnableNotifications", EnableMoreApps: "EnableMoreApps", EnableProfile: "EnableProfile", languages: "languages" }, outputs: { timezoneDetails: "timezoneDetails", lobSelected: "lobSelected", getBgImage: "getBgImage", langChange: "langChange", overlayStateChange: "overlayStateChange" }, viewQueries: [{ propertyName: "confirmDialog", first: true, predicate: ["confirmDialog"], descendants: true }, { propertyName: "appPanel", first: true, predicate: ["App"], descendants: true }, { propertyName: "notifyModalRef", first: true, predicate: ["notifyModal"], descendants: true }, { propertyName: "notifyModal", first: true, predicate: ["notifyModal"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<header class=\"app-header ext\">\r\n <div class=\"d-flex justify-content-between align-items-center\">\r\n <div class=\"d-flex\">\r\n <div class=\"logo gap-4\" *ngIf=\"EnableLogo\">\r\n <img\r\n *ngIf=\"EnableLogo && headerLogo\"\r\n class=\"logo-size\"\r\n title=\"Logo\"\r\n alt=\"Logo\"\r\n [src]=\"headerLogo\"\r\n loading=\"lazy\"\r\n />\r\n <p-skeleton\r\n *ngIf=\"!headerLogo\"\r\n height=\"1.5rem\"\r\n width=\"5rem\"\r\n ></p-skeleton>\r\n </div>\r\n </div>\r\n\r\n <!--* Test Buttons for toast UI -->\r\n <!-- <button type=\"button\" class=\"btn btn-success\" (click)=\"success()\">\r\n success</button\r\n ><button type=\"button\" class=\"btn btn-success\" (click)=\"success1()\">\r\n success1\r\n </button>\r\n <button type=\"button\" class=\"btn btn-danger\" (click)=\"danger()\">color: #1d4ed8;\r\n background: #eff6ff;\r\n danger\r\n </button>\r\n <button type=\"button\" class=\"btn btn-warning\" (click)=\"warning()\">\r\n warning\r\n </button>\r\n <button type=\"button\" class=\"btn btn-info\" (click)=\"info()\">info</button> -->\r\n\r\n <div class=\"projName\">\r\n <h1 class=\"modname\">{{ moduleName }}</h1>\r\n </div>\r\n\r\n <div class=\"d-flex justify-content-end align-items-center\">\r\n <!--timezone-->\r\n <ng-container *ngIf=\"EnableTimeZone && userTimeZoneAbbreviations\">\r\n <div class=\"timezone\">\r\n <img\r\n src=\"assets/common-header-lib/images/schedule.svg\"\r\n class=\"mb-1\"\r\n alt=\"Icon\"\r\n />\r\n <span class=\"timezone-text\"\r\n >{{ \"Generic_lib.PreferredTimezone\" | translate }} :\r\n </span>\r\n <span\r\n *ngIf=\"userTimeZoneAbbreviations\"\r\n class=\"user-tz\"\r\n [title]=\"userTimeZoneFullForm\"\r\n >{{ userTimeZoneAbbreviations }}</span\r\n >\r\n </div>\r\n </ng-container>\r\n\r\n <!--lob-->\r\n <ng-container *ngIf=\"EnableLOB\">\r\n <ng-container\r\n *ngIf=\"EnableLOB && !showLobLoader; else LobLodderAnimation\"\r\n >\r\n <div class=\"main-left d-flex\">\r\n <img\r\n src=\"assets/common-header-lib/images/marker-pin.svg\"\r\n alt=\"pen Icon\"\r\n />\r\n\r\n <!-- *Note: Removed [virtualScroll] and [itemSize] from p-dropdown because it caused filtered search results to appear empty until scrolling. Not needed as LOB list size is small. -->\r\n <p-dropdown\r\n filterPlaceholder=\"{{ 'Generic_lib.Search' | translate }}\"\r\n [options]=\"userLOBList\"\r\n (onChange)=\"onLobChangeEvent($event)\"\r\n optionLabel=\"lobName\"\r\n optionValue=\"lobId\"\r\n [(ngModel)]=\"selectedLOBId\"\r\n [filter]=\"true\"\r\n filterBy=\"lobName\"\r\n [showClear]=\"false\"\r\n [style]=\"{ width: '150px', height: '30px' }\"\r\n [resetFilterOnHide]=\"true\"\r\n [lazy]=\"false\"\r\n name=\"lob\"\r\n class=\"loblist-drpdwn\"\r\n panelStyleClass=\"loblist-drpdwn-panel\"\r\n >\r\n <ng-template let-loblist pTemplate=\"item\">\r\n <div class=\"flex align-items-center gap-2\">\r\n <div title=\"{{ loblist.lobName }}\" class=\"header-drpdwn\">\r\n {{ loblist.lobName }}\r\n </div>\r\n </div>\r\n </ng-template>\r\n </p-dropdown>\r\n </div>\r\n </ng-container>\r\n <ng-template #LobLodderAnimation>\r\n <p-skeleton height=\"1.5rem\" width=\"10rem\"></p-skeleton>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <!--mailbox-->\r\n <ng-container *ngIf=\"isHeaderContentLoaded; else HeaderLoading\">\r\n <div *ngIf=\"EnableMail\" class=\"header-left-icon\">\r\n <img\r\n src=\"assets/common-header-lib/images/mail-icon.svg\"\r\n alt=\"mail Icon\"\r\n class=\"headeright-icon\"\r\n (click)=\"showMailBoxScreen()\"\r\n />\r\n </div>\r\n <ng-container *ngIf=\"EnableMail && totalEmails.length > 0\">\r\n <!-- <ng-container> -->\r\n <div class=\"badge-notify\">\r\n <div pBadge [value]=\"totalEmails\"></div>\r\n </div>\r\n </ng-container>\r\n\r\n <!--notification-->\r\n <div class=\"header-left-icon\" *ngIf=\"EnableNotifications\">\r\n <img\r\n src=\"assets/common-header-lib/images/bell-icon.svg\"\r\n alt=\"mail Icon\"\r\n class=\"headeright-icon\"\r\n (click)=\"OpenNotificationModal()\"\r\n />\r\n </div>\r\n\r\n <ng-container\r\n *ngIf=\"EnableNotifications && userNotificationCount.length > 0\"\r\n >\r\n <div class=\"badge-notify\">\r\n <div pBadge [value]=\"userNotificationCount\"></div>\r\n </div>\r\n </ng-container>\r\n\r\n <!--9 Dots -->\r\n <div\r\n *ngIf=\"EnableMoreApps\"\r\n class=\"header-left-icon\"\r\n title=\"Control Center\"\r\n alt=\"bell Icon\"\r\n (click)=\"showUserAppsPanel($event)\"\r\n >\r\n <img\r\n src=\"assets/common-header-lib/images/apps-1.svg\"\r\n class=\"apps-icon\"\r\n />\r\n </div>\r\n\r\n <!--user display name -->\r\n <div\r\n *ngIf=\"EnableProfile\"\r\n class=\"main-right\"\r\n (click)=\"showUserDetailsPanel()\"\r\n >\r\n <ng-container>\r\n <div class=\"initial-text mx-1\">\r\n {{ userdisplayName | sliceToTwo }}\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n\r\n <ng-template #HeaderLoading>\r\n <p-skeleton shape=\"circle\" size=\"1.3rem\" styleClass=\"mx-2\"></p-skeleton>\r\n <p-skeleton shape=\"circle\" size=\"1.3rem\" styleClass=\"mx-2\"></p-skeleton>\r\n <p-skeleton size=\"1.5rem\" styleClass=\"mx-2\"></p-skeleton>\r\n <p-skeleton shape=\"circle\" size=\"2rem\" styleClass=\"mx-2\"></p-skeleton>\r\n </ng-template>\r\n </div>\r\n </div>\r\n</header>\r\n\r\n<!--List of Application : 9 dots -->\r\n<p-overlayPanel #App class=\"pt-0\" styleClass=\"app-panel\">\r\n <ng-container *ngIf=\"!userAppLoaderLoadder; else LoadingTemplate\">\r\n <div class=\"custom-popover-content\">\r\n <div class=\"waffle-align\">\r\n <div\r\n class=\"waffle-popup\"\r\n [title]=\"appDetails['applicationName']\"\r\n *ngFor=\"let appDetails of ListOfUserPrivillegedApp\"\r\n (click)=\"getConnectionofApplication(appDetails['appCode'])\"\r\n >\r\n <img\r\n *ngIf=\"appDetails?.appCode\"\r\n src=\"assets/common-header-lib/images/{{ appDetails.appCode }}.svg\"\r\n alt=\"App icon\"\r\n />\r\n\r\n <div class=\"waffle-text\">{{ appDetails[\"applicationName\"] }}</div>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-template #LoadingTemplate>\r\n <div class=\"custom-popover-content skeleton-popover\">\r\n <ng-container *ngFor=\"let item of repeatLoader\">\r\n <div\r\n class=\"d-flex flex-column align-items-center justify-content-center gap-2\"\r\n >\r\n <p-skeleton size=\"3rem\"></p-skeleton>\r\n <p-skeleton height=\".3rem\" width=\"35px\"></p-skeleton>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-template>\r\n</p-overlayPanel>\r\n\r\n<!--mailbox details-->\r\n<ng-container *ngIf=\"showMailboxScreenflag\">\r\n <div class=\"changingContent\">\r\n <app-user-mailbox\r\n (closeMailDialogBox)=\"hideMailBoxScreen()\"\r\n ></app-user-mailbox>\r\n </div>\r\n</ng-container>\r\n\r\n<!-- Userdetails profile pop up -->\r\n<div class=\"profile-sidebar\">\r\n <app-side-popup\r\n *ngIf=\"isOpenSidePopup\"\r\n [visible]=\"true\"\r\n [position]=\"'right'\"\r\n (closeDialogBox)=\"closeSidePopup()\"\r\n >\r\n <app-user-sidebar\r\n *ngIf=\"showUserDetails\"\r\n [languages]=\"languages\"\r\n (closeDialogBox)=\"closeSidePopup()\"\r\n ></app-user-sidebar>\r\n </app-side-popup>\r\n</div>\r\n\r\n<!-- Notification side popup -->\r\n<div\r\n class=\"modal fade common-alert-modal\"\r\n #notifyModal\r\n id=\"Notify_SidebarModal\"\r\n tabindex=\"-1\"\r\n aria-hidden=\"true\"\r\n>\r\n <div class=\"modal-dialog sidebar-outer white-bg\">\r\n <div class=\"modal-content\">\r\n <div class=\"sidebar-container white-bg\">\r\n <!-- keep everything inside this content -->\r\n\r\n <!-- Sidebar Header -->\r\n <div class=\"sidebar-header grey-background\">\r\n <div class=\"sh-top\">\r\n <div class=\"sh-top-left d-flex align-items-center\">\r\n <div class=\"mx-2 log-text\">\r\n {{ \"Generic_lib.Notification\" | translate }}\r\n </div>\r\n </div>\r\n <div class=\"sh-top-right\">\r\n <button\r\n type=\"button\"\r\n class=\"common-bn tertiary-btn\"\r\n aria-label=\"Close\"\r\n (click)=\"closeModal()\"\r\n >\r\n <img\r\n src=\"assets/common-header-lib/images/close.svg\"\r\n alt=\"Close\"\r\n class=\"imgs mb-1\"\r\n />\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Sidebar Body -->\r\n <div class=\"sidebar-body\">\r\n <div class=\"d-flex justify-content-between align-items-center mb-2\">\r\n <div class=\"noti-text\">\r\n {{\r\n \"Generic_lib.YouHaveNNotifications\"\r\n | translate: { count: userNotificationCount }\r\n }}\r\n </div>\r\n <div\r\n class=\"d-flex align-items-center gap-1 refresh-icon\"\r\n (click)=\"getEventwiseNotification()\"\r\n >\r\n <img\r\n src=\"assets/common-header-lib/images/refresh-1.svg\"\r\n alt=\"Refresh\"\r\n />\r\n <div class=\"refresh-text\">\r\n {{ \"Generic_lib.Refresh\" | translate }}\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"mt-3\">\r\n <ng-container\r\n *ngIf=\"\r\n !isErrorFound && !notificationLoadder;\r\n else Noti_LoadingTemplate\r\n \"\r\n >\r\n <div\r\n class=\"notify-border\"\r\n *ngFor=\"let event of eventwiseNotificationCount\"\r\n >\r\n <div class=\"d-flex align-items-center gap-3\">\r\n <div class=\"initial-text initial-text-1 mx-1\">\r\n <img\r\n src=\"assets/common-header-lib/images/noti_ticket.svg\"\r\n alt=\"Icon\"\r\n />\r\n </div>\r\n <div>\r\n <div>\r\n <span class=\"service-count\"\r\n >{{ event[\"PendingCount\"] }} New </span\r\n ><span class=\"service-request\"\r\n >{{ event[\"EventName\"] }} Event requests</span\r\n >\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"grey-borders mt-2\"></div>\r\n </div>\r\n </ng-container>\r\n <ng-template #Noti_LoadingTemplate>\r\n <ng-container *ngIf=\"notificationLoadder; else errorTemplate\">\r\n <ng-container *ngFor=\"let item of repeatLoader1\">\r\n <div class=\"d-flex align-items-center gap-3\">\r\n <p-skeleton\r\n shape=\"circle\"\r\n size=\"60px\"\r\n styleClass=\"my-2\"\r\n ></p-skeleton>\r\n <div class=\"ms-1\">\r\n <p-skeleton width=\"200%\" styleClass=\"mb-2\"></p-skeleton>\r\n <p-skeleton width=\"150px\" height=\"1rem\"></p-skeleton>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </ng-template>\r\n\r\n <ng-template #errorTemplate>\r\n <app-no-service-my-access-pg\r\n heading=\"{{ 'Generic_lib.CommonError' | translate }}\"\r\n ></app-no-service-my-access-pg>\r\n </ng-template>\r\n </div>\r\n <!-- Notification content & loaders remain here -->\r\n </div>\r\n </div>\r\n <!-- end of sidebar-container -->\r\n </div>\r\n <!-- end of modal-content -->\r\n </div>\r\n <!-- end of modal-dialog -->\r\n</div>\r\n\r\n<!-- Common Conirmation Modal -->\r\n<confirm-dialog\r\n class=\"rm-invalid-border\"\r\n #confirmDialog\r\n header=\"{{ 'Generic_lib.ChangeLOB' | translate }}\"\r\n message=\"{{ 'Generic_lib.DoYouWantToChangeTheCurrentLOB' | translate }}\"\r\n (result)=\"lobChangeConfirmation($event)\"\r\n></confirm-dialog>\r\n\r\n<!--* Need to use component based notification UI as below -->\r\n<!-- Notification-Sidebar Started -->\r\n<!-- <app-notification-sidebar [isErrorOccured]=\"isErrorFound\" [userNotificationCount]=\"userNotificationCount\"\r\n [userNotificationCountObj]=\"userNotificationCountObj\" [eventwiseNotificationCount]=\"eventwiseNotificationCount\"\r\n (refreshNotification)=\"getEventwiseNotificationCount()\"\r\n [notificationLoadder]=\"notificationLoadder\"></app-notification-sidebar> -->\r\n<!-- Notification-Sidebar Ended -->\r\n", styles: [".app-header{padding:4px 10px 10px;height:42px;border-bottom:1px solid #d0d4e4}.logo{display:flex;align-items:center}.main-right{display:flex;align-items:center;cursor:pointer}.logo-icon{width:0;height:0;border-left:14px solid transparent;border-right:14px solid transparent;position:relative}.logo-icon:after{width:0;height:0;border-left:7px solid transparent;border-right:7px solid transparent;position:absolute;content:\"\";top:7px;left:-7px}p{font-size:25px!important}.p-inputtext.p-inputtext-sm{padding:4px 5px 4px 33px!important}.pi-search:before{font-size:13px;position:absolute;top:2px}.overlay-text{font-size:13px;line-height:18px;color:#676879;font-weight:400}.main-left .p-dropdown{border:none;border-radius:0;width:140px!important}.main-left .p-dropdown-panel .p-dropdown-items{padding:0!important;max-height:110px}.main-left :focus-visible{outline:none}.main-left .p-scroller{overflow-x:hidden;height:120px!important}.header-drpdwn{width:120px!important;font-size:11px!important;text-overflow:ellipsis;overflow:hidden}.logs{gap:70px;margin-top:5px}.head-search{position:fixed;top:4px;left:275px}.head-search input{width:calc(30vw - 40px)!important;border:1px solid #c3c6d4;background-color:#f6f7fb;height:32px;border-radius:0 4px 4px 0;border-left:none;font-size:13px!important;padding-left:30px!important;padding-right:54px}.head-search.active{position:fixed;top:4px;left:275px}.head-search.active input{width:555px!important}@media screen and (min-width: 1920px){.head-search.active{position:fixed;top:4px;left:275px}.head-search.active input{width:900px!important}}.header-left-icon{height:32px;width:32px;cursor:pointer;display:flex;justify-content:center;align-items:center;transition:all .5s;border-radius:50%;margin-right:4px;position:relative}.header-left-icon:hover{background:#dcdfec}.header-left-icon img:hover{filter:invert(0%) sepia(4%) saturate(0%) hue-rotate(324deg) brightness(55%) contrast(105%)}.apps-icon{width:21px}.logo-img{width:80px}.initial-text{width:32px;height:32px;display:flex;align-items:center;justify-content:center;font-size:11px;border-radius:50%;color:#fff;background-color:#8e562e}.initial-text-1{background-color:#f2edfa}.lob-img{padding-bottom:4px}.session-app:hover{background:#dcdfec;border-radius:10px}.app-col{cursor:pointer;padding:8px 0}.app-text{font-size:12px;color:#676879;white-space:nowrap;padding-top:8px;text-align:center;text-overflow:ellipsis;overflow:hidden;width:100px}.filter-search{position:relative;right:50px;bottom:2px;cursor:pointer}.filter-search .cross-search{width:23px}.filter-search .search-filter{width:19px}.headeright-icon{width:17px;height:17px;filter:invert(44%) sepia(3%) saturate(1698%) hue-rotate(199deg) brightness(92%) contrast(93%)}.pl-0{padding-left:0}.form-control-sm{border:none;border-bottom:1px solid #c3c6d4;border-radius:0}.overlay-footer .common-btn{width:110px;height:32px;padding:11px 12px;border-radius:4px;font-size:13px;cursor:pointer;background:#fff}.overlay-footer .primary-btn{padding:8px 12px 11px 14px;border-radius:4px;height:32px;width:65px;font-size:13px;cursor:pointer}.filter-popup{position:relative;left:10px}.form-group{margin-bottom:5px}.waffle-text{font-size:11px;text-align:center;width:70px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;margin-top:-3px}.waffle-align{display:grid;grid-template-columns:auto auto auto}.waffle{cursor:pointer;margin-right:16px}.waffle-popup{width:89px!important;margin-top:0;padding:8px 0 4px;display:flex;align-items:center;justify-content:center;flex-direction:column;cursor:pointer}.waffle-popup:hover{background:var(--primary-notification-bg);border-radius:10px}.waffle-popup img{height:40px}.custom-popover-content{padding:10px;right:-5px;top:0;position:absolute;background:white;border-radius:8px;box-shadow:0 0 6px #9d9d9d}.custom-popover-content.skeleton-popover{width:313px;display:grid;grid-template-columns:auto auto auto;gap:10px}.timezone{margin-right:12px}.timezone-icon{font-size:16px}.timezone-text{padding-left:6px;font-size:13px;color:#495057;font-weight:400}.user-tz{font-size:13px;color:#757575;font-weight:400;text-overflow:ellipsis;overflow:hidden;width:30px;white-space:normal}.profile-sidebar .p-dialog .p-dialog-content{padding:0}.profile-sidebar .p-dialog-header{display:none}.modname{font-size:18px;margin-bottom:0}.changingContent{overflow:hidden;width:100%}.changingContent .intro-text{background-image:linear-gradient(145deg,#f1eaec,#f8e3e7,#f7e1f8,#ebeeff,#e8eef3);position:relative;height:135px}.changingContent .inner-garient{padding:50px 20px 115px 30px}.changingContent .table-heading{padding:0 20px 1px 30px}.changingContent .table-selection{padding:3px 20px 0 30px}.grey-background{background-color:#f6f7fb}.white-bg{background:#ffffff;overflow:hidden}.imgs{width:20px}.p-dropdown .p-dropdown-label{background:transparent;border:0 none;display:flex;align-items:center}.p-dropdown .p-dropdown-trigger{width:32px!important}.pi-chevron-down:before{content:\"\\e902\";font-size:11px}.sidebar-outer{height:100vh}.lang-dropdown .p-dropdown{border:1px solid #dee2e6!important;height:26px!important;border-radius:4px!important;min-width:calc(40vh - 92px)!important;padding:0 4px 0 12px!important;display:flex!important;align-items:center!important;justify-content:space-between!important}.lang-dropdown .p-dropdown .pi{position:relative;bottom:2px;left:7px}.lang-dropdown .p-dropdown-panel{background:#ffffff!important;color:#495057!important;border:0px!important;box-shadow:0 2px 12px #0000001a!important}.lang-dropdown .p-dropdown-header{padding:5px 10px!important;border-bottom:1px solid #dee2e6!important;background:#f8f9fa!important;color:#343a40!important;margin:0!important}.lang-dropdown .p-dropdown-items-wrapper{max-height:140px!important}.lang-dropdown .p-dropdown-panel .p-dropdown-header{padding:4px 8px!important;border-radius:0!important}.p-dropdown-panel .p-dropdown-header{padding:.75rem 1.25rem;border-bottom:1px solid #dee2e6;color:#343a40;background:#f8f9fa;margin:0;border-top-right-radius:6px;border-top-left-radius:6px}.lang-dropdown .p-dropdown .p-dropdown-header .p-dropdown-filter{height:26px;border-radius:4px;font-size:12px;border:1px solid #ced4da!important;padding-left:12px!important}.lang-dropdown .p-inputtext{margin:0;text-align:start;font-size:13px;padding:0!important}.lang-dropdown .p-dropdown-panel .p-dropdown-header .p-dropdown-filter-icon{position:relative;bottom:13px;font-size:13px}.sidebar-outer .sidebar-body .sb-list ul li span{margin-right:12px}.p-dropdown-panel .p-dropdown-header .p-dropdown-filter-icon{left:6px;color:#6c757d}.lang-dropdown .p-dropdown-items-wrapper ::-webkit-scrollbar{width:6px!important}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background-color:#c1c1c1;border-radius:6px}::-webkit-scrollbar-thumb:hover{background-color:#a8a8a8}.sidebar-outer .sidebar-body .sb-list ul{float:left;width:100%;list-style:none;padding-left:0}.lang-dropdown .p-dropdown-panel .p-dropdown-items{font-size:12px;padding:0!important}.p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-highlight{color:var(--jaguar-black-color);background:var(--solitude-blue);background-color:var(--solitude-blue)}.lang-dropdown .p-dropdown-panel .p-dropdown-items .p-dropdown-item{padding:2px 14px;font-size:12px}.sidebar-outer .sidebar-body .sb-list ul li{display:flex;padding:8px 2px;cursor:pointer}.modal-dialog{margin-right:0;margin-top:0;margin-bottom:0}.loblist-drpdwn-panel .p-dropdown-header{padding:5px 10px}.loblist-drpdwn-panel .p-inputtext{background:#ffffff;padding:6px}.loblist-drpdwn .p-inputtext{font-size:13px}.loblist-drpdwn-panel .p-dropdown-header .p-dropdown-filter{height:28px;border-radius:4px;font-size:12px}.loblist-drpdwn-panel .p-dropdown-items .p-dropdown-item{margin-bottom:1px;padding:6px 16px;border:0;color:#495057;background:transparent;transition:box-shadow .2s;border-radius:0;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.loblist-drpdwn-panel .p-dropdown-header .p-dropdown-filter-icon{position:absolute;left:82%;top:50%;transform:translateY(-50%);color:#6c757d}.loblist-drpdwn-panel .p-dropdown-items .p-dropdown-empty-message{padding:6px 12px;color:#495057!important;background:transparent!important;font-size:12px}.logo-size{max-height:32px;max-width:92px}.logo-size-1{width:80px;height:30px}.sidebar-body{overflow:auto;height:calc(100vh - 70px);width:100%}.sidebar-body .refresh-icon{cursor:pointer}.sidebar-body .notify-border{padding:8px 8px 0 6px;cursor:pointer}.sidebar-body .notify-border:hover{background-color:#dcdfec;border-radius:8px}.sidebar-body .notify-border .initial-text{width:40px;height:40px;display:flex;align-items:center;justify-content:center;font-size:11px;border-radius:50%;color:#fff;background-color:#f2edfa}.sidebar-body .notify-border .service-count{color:#323238;font-weight:600;font-size:13px}.sidebar-body .notify-border .service-request{color:#676879;font-size:12px;font-weight:500}.sidebar-body .notify-border .time-text{color:#676879;font-size:12px}.sidebar-body .notify-border .grey-borders{border-bottom:1px solid #d0d4e4}.mail-table{height:calc(100vh - 196px);overflow:auto}.mail-table .p-datatable .p-datatable-thead>tr{border:1px solid #dee2e6;border-radius:24px}.mail-table .p-datatable .p-datatable-thead>tr th{padding:0 8px;height:36px;font-size:13px;color:var(--primary-text);font-weight:600;background:#fff}.mail-table .p-datatable .p-datatable-tbody>tr{border:1px solid #dee2e6;border-radius:24px}.mail-table .p-datatable .p-datatable-tbody>tr td{padding:0 25px 0 8px;height:38px;font-size:13px;color:var(--secondary-text);white-space:nowrap}.mail-table .p-checkbox{height:18px;width:18px}.mail-table .p-checkbox .p-checkbox-box{height:16px;width:16px;border-radius:4px;border:1px solid var(--ui-border)}.mail-table .p-checkbox .p-checkbox-box:hover{border:1px solid var(--ui-border)!important}.mail-table .p-checkbox .p-checkbox-icon{font-size:10px!important}.mail-table .p-datatable .p-sortable-column:hover{background-color:#fff!important;color:#000!important}.mail-table .p-datatable .p-sortable-column:focus{box-shadow:none!important}.mail-table .p-datatable .p-sortable-column .p-sortable-column-icon{font-size:12px}.mail-table .p-dropdown-panel .p-dropdown-items{padding:0}.mail-table .p-dropdown-panel .p-dropdown-items .p-dropdown-item{font-size:13px!important;padding:10px 15px}.mail-table .p-paginator{justify-content:flex-start!important;position:fixed;bottom:0;padding-left:0!important}.mail-table .p-paginator .p-paginator-current{font-size:12px;height:1rem!important}.mail-table .p-paginator .p-paginator-pages .p-paginator-page{min-width:30px!important;height:30px!important;font-size:12px}.mail-table .p-paginator .p-dropdown{height:30px!important;margin-top:0;border:0px}.mail-table .p-paginator .p-dropdown .p-dropdown-label{padding:4px 5px 0 10px!important;font-size:14px}.mail-table .p-paginator .p-dropdown .p-dropdown-trigger{width:1.5rem!important}.mail-table .p-paginator .p-dropdown .p-dropdown-trigger .pi{font-size:13px!important}.mail-pagination .p-paginator{justify-content:flex-start!important;padding-left:0;height:47px;width:100%}.mail-pagination .p-paginator .p-paginator-current{font-size:12px;height:1rem!important;padding-left:0}.mail-pagination .p-paginator .p-paginator-pages .p-paginator-page{min-width:30px!important;height:30px!important;font-size:12px}.mail-pagination .p-paginator .p-dropdown{height:30px!important;margin-top:0;border:0px}.mail-pagination .p-paginator .p-dropdown .p-dropdown-label{padding:4px 5px 0 10px!important;font-size:14px}.mail-pagination .p-paginator .p-dropdown .p-dropdown-trigger{width:1.5rem!important}.mail-pagination .p-paginator .p-dropdown .p-dropdown-trigger .pi{font-size:13px!important}.mail-pagination .p-paginator .p-paginator-first,.mail-pagination .p-paginator .p-paginator-prev,.mail-pagination .p-paginator .p-paginator-next,.mail-pagination .p-paginator .p-paginator-last{min-width:30px!important;height:30px!important}.rm-invalid-border .card{border:0px}.view-pass-details{width:600px!important}.view-pass-details .p-dialog-header{background:#ffffff!important;border-radius:4px 4px 0 0!important;border-bottom:1px solid var(--primary-color)!important}.view-pass-details .p-dialog-content:last-of-type{border-bottom-right-radius:4px!important;border-bottom-left-radius:4px!important;padding:0}.confirmtion-modal .p-dialog-content{padding-top:24px;padding-right:100px;font-size:var(--base-font-size)}.confirmtion-modal .p-confirm-dialog-message{margin-left:0!important}.confirmtion-modal .p-button{font-size:var(--base-font-size);background-color:var(--primary-color);border-color:var(--primary-color);padding:6px 28px}.confirmtion-modal .p-button .p-button-secondary .p-button-outlined{background-color:var(--white-color);border:1px solid var(--primary-color);color:var(--primary-color)}.confirmtion-modal .p-button .p-button-secondary .p-button-outlined:enabled:hover{background-color:var(--white-color)}.confirmtion-modal .p-button:enabled:hover{border:1px solid var(--primary-color);background-color:var(--primary-color)}.confirmtion-modal .p-button.p-button-secondary.p-button-outlined{color:var(--primary-color);border:1px solid var(--primary-color);background-color:var(--white-color)}.confirmtion-modal .p-button.p-button-secondary.p-button-outlined:enabled:hover{color:var(--primary-color);border:1px solid var(--primary-color);background-color:var(--white-color)}.badge-notify:hover{border-radius:50%;background:#dcdfec}.badge-notify .p-badge{min-width:16px;height:16px;line-height:15px}.badge-notify .p-overlay-badge .p-badge{background-color:var(--primary-color)!important;position:absolute;top:-7px;right:12px;font-size:9px;padding:0 2px;cursor:pointer}.madontary-icon{color:#d4231d;font-weight:500;padding:5px 0 0 5px}.img-lock{width:12px;margin-bottom:1px}.img-lock.ext{width:16px;margin-bottom:0}.img-lock.ext2{width:18px;margin-bottom:0}.form-group .error-msg{position:relative}.submit-btn .p-button{height:30px;font-size:14px;border-radius:4px;border:1px solid var(--primary-color);background-color:var(--primary-color);border-color:var(--primary-color)}.submit-btn .p-button:enabled:hover{border:1px solid var(--primary-color);background-color:var(--primary-color);border-color:var(--primary-color)}.submit-btn .p-button .p-button-label{font-weight:400;font-size:13px}.p-dialog.general-configuration{width:100%;height:100vh;max-height:100vh}.general-configuration .p-dialog-header{border-bottom:1px solid #d0d4e4!important;background:#ffffff!important}.p-dialog .p-dialog-header{padding:10px 21px!important;background:#fff!important;border-top-right-radius:6px!important;border-top-left-radius:6px!important;height:45px}.p-dialog .p-dialog-header .p-dialog-title{font-weight:600;font-size:var(--base-font-size)}.assets-dropdown .p-dropdown{height:38px!important;width:100%!important;border-radius:4px!important;align-items:center!important}.assets-dropdown .p-dropdown:hover{border:1px solid #ced4da!important}.p-dropdown-panel .p-dropdown-header .p-dropdown-filter{padding-right:1.75rem;margin-right:-1.75rem}.assets-dropdown .p-inputtext{width:100%;border-radius:4px;height:30px;font-size:13px!important}.assets-dropdown .p-dropdown-panel .p-dropdown-header .p-dropdown-filter-icon{left:96%;color:#6c757d;font-size:13px;top:15px!important}.assets-dropdown .p-dropdown-panel .p-dropdown-header{padding:10px!important}.assets-dropdown .p-dropdown-items-wrapper{max-height:100px!important}.assets-dropdown .p-dropdown-panel .p-dropdown-items .p-dropdown-item{padding:5px 20px!important;font-size:13px!important;font-weight:400!important}.p-dropdown-panel .p-dropdown-items{padding:0!important}.assets-dropdown .p-dropdown-panel .p-dropdown-items .p-dropdown-empty-message{font-size:13px!important;padding:8px 20px!important}.p-dropdown-panel .p-dropdown-items .p-dropdown-empty-message{padding:.75rem 1.25rem;color:#495057!important;background:transparent!important}.p-dropdown-filter-container{position:relative}.p-dropdown-filter-container input{border:1px solid #ced4da!important}.input-dropdown .password-checkbox-right{position:absolute;width:24px;right:8px}.timezone-dropdown .p-dropdown{width:100%;border:1px solid #ced4da!important;border-radius:4px;height:38px}.timezone-dropdown .p-dropdown-panel .p-dropdown-header{padding:5px}.timezone-dropdown .p-dropdown:hover{border:1px solid #ced4da!important}.timezone-dropdown .p-inputtext{width:100%;border-radius:4px;height:30px;font-size:13px!important}.timezone-dropdown .p-dropdown-panel .p-dropdown-header .p-dropdown-filter-icon{left:96%;color:#6c757d;font-size:13px;top:15px!important}.timezone-dropdown .p-dropdown-panel .p-dropdown-header{padding:10px!important}.timezone-dropdowntimezone-dropdown .p-dropdown-items-wrapper{max-height:100px!important}.timezone-dropdown .p-dropdown-panel .p-dropdown-items .p-dropdown-item{padding:5px 20px!important;font-size:13px!important;font-weight:400!important}.timezone-dropdown .p-dropdown-panel .p-dropdown-items .p-dropdown-empty-message{font-size:13px!important;padding:8px 20px!important}.sidebar-container{width:420px;position:fixed;top:0;height:100vh;max-width:100%;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;background-color:#fff}.white-bg{background:#ffffff;width:420px;overflow:hidden}.sidebar-outer .sidebar-header{padding:12px 15px}.sidebar-outer .sidebar-header .sh-top{display:flex;align-items:center;justify-content:space-between}.log-text{font-size:16px;color:#292f4c;font-weight:600}.sidebar-outer .sidebar-header .sh-top button{height:24px}.sidebar-outer .sidebar-body{padding:12px 20px;float:left;width:100%;overflow:auto;height:calc(100vh - 70px)}.tertiary-btn{border:none;background-color:transparent}.sidebar-body .noti-text{color:#292f4c;font-size:13px;font-weight:600;line-height:24px}.sidebar-body .refresh-text{color:#676879;font-size:12px;line-height:24px}.error-msg{font-size:12px;font-weight:600;width:100%;position:absolute;bottom:4px;left:0;display:flex;align-items:flex-end;color:#d83a52;font-family:-apple-system,BlinkMacSystemFont,Roboto,Segoe UI,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",Segoe UI Symbol!important}.error-msg .error-icon{font-size:18px;margin-right:4px;position:relative;top:-1px}.common-alert-modal .modal-dialog{margin-right:0!important}.ngx-toastr{width:400px!important;margin-top:10px!important}.toast-success{background-color:#fff!important;border-bottom:3px solid #258750;border-radius:4px!important;background-image:url(assets/common-header-lib/images/toast-success.svg)!important;background-repeat:no-repeat}.toast-success .toast-title{color:#258750!important;font-weight:700;font-size:16px}.toast-success .toast-message{padding-top:2px;color:#676879!important;font-size:14px!important}.toast-success .toast-progress{color:#258750!important}.toast-error{background-color:#fff!important;border-bottom:3px solid #d83a52;border-radius:4px!important;background-image:url(assets/common-header-lib/images/toast-error.svg)!important;background-repeat:no-repeat}.toast-error .toast-title{color:#d83a52!important;font-weight:700;font-size:16px}.toast-error .toast-message{padding-top:2px;color:#676879!important;font-size:14px!important}.toast-info{background-color:#fff!important;border-bottom:3px solid #0073ea;border-radius:4px!important;background-image:url(assets/common-header-lib/images/toast-info.svg)!important;background-repeat:no-repeat}.toast-info .toast-title{color:#0073ea!important;font-weight:700;font-size:16px}.toast-info .toast-message{padding-top:3px;color:#676879!important;font-size:14px!important}.toast-warning{background-color:#fff!important;border-bottom:3px solid #fdab3d;border-radius:4px!important;background-image:url(assets/common-header-lib/images/toast-alert.svg)!important;background-repeat:no-repeat}.toast-warning .toast-title{color:#fdab3d!important;font-weight:700;font-size:16px}.toast-warning .toast-message{padding-top:3px;color:#676879!important;font-size:14px!important}.toast-close-button{right:4px!important;top:0;font-size:20px;font-weight:700;text-shadow:0 1px 0 #ffffff;background-color:transparent;border:0px;color:#676879;position:absolute;cursor:pointer}.toast-container{position:fixed;z-index:2147483647!important;pointer-events:auto!important}.toast-container .ngx-toastr{position:relative;overflow:hidden;margin:0 0 6px;padding:15px 40px 15px 50px;width:300px;border-radius:8px!important;background-position:15px 15px;background-repeat:no-repeat;background-size:24px;box-shadow:0 0 9px #99999980;color:#fff}.toast-top-center{top:0;right:0;width:100%}.toast-top-right{right:15px;top:40px}.toast-container.toast-top-center .ngx-toastr,.toast-container.toast-bottom-center .ngx-toastr{margin-left:auto;margin-right:auto}.p-tooltip{max-width:320px!important}.p-tooltip .p-tooltip-text{font-size:12px!important;line-height:18px!important;padding:8px 10px!important;border-radius:6px!important;white-space:normal!important;overflow-wrap:anywhere;word-break:break-word}\n"], dependencies: [{ kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "component", type: i8.Dropdown, selector: "p-dropdown", inputs: ["scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "filterPlaceholder", "filterLocale", "inputId", "selectId", "dataKey", "filterBy", "autofocus", "resetFilterOnHide", "dropdownIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "overlayDirection", "disabled", "itemSize", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "options", "filterValue"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "directive", type: i9.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i10$2.OverlayPanel, selector: "p-overlayPanel", inputs: ["dismissable", "showCloseIcon", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions"], outputs: ["onShow", "onHide"] }, { kind: "directive", type: i11.BadgeDirective, selector: "[pBadge]", inputs: ["iconPos", "badgeDisabled", "value", "severity"] }, { kind: "component", type: i10$1.Skeleton, selector: "p-skeleton", inputs: ["styleClass", "style", "shape", "animation", "borderRadius", "size", "width", "height"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: UserSidebarComponent, selector: "app-user-sidebar", inputs: ["languages"], outputs: ["closeDialogBox"] }, { kind: "component", type: SidePopupComponent, selector: "app-side-popup", inputs: ["visible", "position", "header"], outputs: ["closeDialogBox"] }, { kind: "component", type: UserMailboxComponent, selector: "app-user-mailbox", inputs: ["apiURL"], outputs: ["closeMailDialogBox"] }, { kind: "component", type: NoServiceMyAccessPgComponent, selector: "app-no-service-my-access-pg", inputs: ["heading", "subHeading"] }, { kind: "component", type: ConfirmDialogComponent, selector: "confirm-dialog", inputs: ["header", "message"], outputs: ["result"] }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }, { kind: "pipe", type: SliceToTwoPipe, name: "sliceToTwo" }], encapsulation: i0.ViewEncapsulation.None });
3973
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CommonHeaderLibComponent, decorators: [{
3974
- type: Component,
3975
- args: [{ selector: 'lib-common-header-lib', encapsulation: ViewEncapsulation.None, template: "<header class=\"app-header ext\">\r\n <div class=\"d-flex justify-content-between align-items-center\">\r\n <div class=\"d-flex\">\r\n <div class=\"logo gap-4\" *ngIf=\"EnableLogo\">\r\n <img\r\n *ngIf=\"EnableLogo && headerLogo\"\r\n class=\"logo-size\"\r\n title=\"Logo\"\r\n alt=\"Logo\"\r\n [src]=\"headerLogo\"\r\n loading=\"lazy\"\r\n />\r\n <p-skeleton\r\n *ngIf=\"!headerLogo\"\r\n height=\"1.5rem\"\r\n width=\"5rem\"\r\n ></p-skeleton>\r\n </div>\r\n </div>\r\n\r\n <!--* Test Buttons for toast UI -->\r\n <!-- <button type=\"button\" class=\"btn btn-success\" (click)=\"success()\">\r\n success</button\r\n ><button type=\"button\" class=\"btn btn-success\" (click)=\"success1()\">\r\n success1\r\n </button>\r\n <button type=\"button\" class=\"btn btn-danger\" (click)=\"danger()\">color: #1d4ed8;\r\n background: #eff6ff;\r\n danger\r\n </button>\r\n <button type=\"button\" class=\"btn btn-warning\" (click)=\"warning()\">\r\n warning\r\n </button>\r\n <button type=\"button\" class=\"btn btn-info\" (click)=\"info()\">info</button> -->\r\n\r\n <div class=\"projName\">\r\n <h1 class=\"modname\">{{ moduleName }}</h1>\r\n </div>\r\n\r\n <div class=\"d-flex justify-content-end align-items-center\">\r\n <!--timezone-->\r\n <ng-container *ngIf=\"EnableTimeZone && userTimeZoneAbbreviations\">\r\n <div class=\"timezone\">\r\n <img\r\n src=\"assets/common-header-lib/images/schedule.svg\"\r\n class=\"mb-1\"\r\n alt=\"Icon\"\r\n />\r\n <span class=\"timezone-text\"\r\n >{{ \"Generic_lib.PreferredTimezone\" | translate }} :\r\n </span>\r\n <span\r\n *ngIf=\"userTimeZoneAbbreviations\"\r\n class=\"user-tz\"\r\n [title]=\"userTimeZoneFullForm\"\r\n >{{ userTimeZoneAbbreviations }}</span\r\n >\r\n </div>\r\n </ng-container>\r\n\r\n <!--lob-->\r\n <ng-container *ngIf=\"EnableLOB\">\r\n <ng-container\r\n *ngIf=\"EnableLOB && !showLobLoader; else LobLodderAnimation\"\r\n >\r\n <div class=\"main-left d-flex\">\r\n <img\r\n src=\"assets/common-header-lib/images/marker-pin.svg\"\r\n alt=\"pen Icon\"\r\n />\r\n\r\n <!-- *Note: Removed [virtualScroll] and [itemSize] from p-dropdown because it caused filtered search results to appear empty until scrolling. Not needed as LOB list size is small. -->\r\n <p-dropdown\r\n filterPlaceholder=\"{{ 'Generic_lib.Search' | translate }}\"\r\n [options]=\"userLOBList\"\r\n (onChange)=\"onLobChangeEvent($event)\"\r\n optionLabel=\"lobName\"\r\n optionValue=\"lobId\"\r\n [(ngModel)]=\"selectedLOBId\"\r\n [filter]=\"true\"\r\n filterBy=\"lobName\"\r\n [showClear]=\"false\"\r\n [style]=\"{ width: '150px', height: '30px' }\"\r\n [resetFilterOnHide]=\"true\"\r\n [lazy]=\"false\"\r\n name=\"lob\"\r\n class=\"loblist-drpdwn\"\r\n panelStyleClass=\"loblist-drpdwn-panel\"\r\n >\r\n <ng-template let-loblist pTemplate=\"item\">\r\n <div class=\"flex align-items-center gap-2\">\r\n <div title=\"{{ loblist.lobName }}\" class=\"header-drpdwn\">\r\n {{ loblist.lobName }}\r\n </div>\r\n </div>\r\n </ng-template>\r\n </p-dropdown>\r\n </div>\r\n </ng-container>\r\n <ng-template #LobLodderAnimation>\r\n <p-skeleton height=\"1.5rem\" width=\"10rem\"></p-skeleton>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <!--mailbox-->\r\n <ng-container *ngIf=\"isHeaderContentLoaded; else HeaderLoading\">\r\n <div *ngIf=\"EnableMail\" class=\"header-left-icon\">\r\n <img\r\n src=\"assets/common-header-lib/images/mail-icon.svg\"\r\n alt=\"mail Icon\"\r\n class=\"headeright-icon\"\r\n (click)=\"showMailBoxScreen()\"\r\n />\r\n </div>\r\n <ng-container *ngIf=\"EnableMail && totalEmails.length > 0\">\r\n <!-- <ng-container> -->\r\n <div class=\"badge-notify\">\r\n <div pBadge [value]=\"totalEmails\"></div>\r\n </div>\r\n </ng-container>\r\n\r\n <!--notification-->\r\n <div class=\"header-left-icon\" *ngIf=\"EnableNotifications\">\r\n <img\r\n src=\"assets/common-header-lib/images/bell-icon.svg\"\r\n alt=\"mail Icon\"\r\n class=\"headeright-icon\"\r\n (click)=\"OpenNotificationModal()\"\r\n />\r\n </div>\r\n\r\n <ng-container\r\n *ngIf=\"EnableNotifications && userNotificationCount.length > 0\"\r\n >\r\n <div class=\"badge-notify\">\r\n <div pBadge [value]=\"userNotificationCount\"></div>\r\n </div>\r\n </ng-container>\r\n\r\n <!--9 Dots -->\r\n <div\r\n *ngIf=\"EnableMoreApps\"\r\n class=\"header-left-icon\"\r\n title=\"Control Center\"\r\n alt=\"bell Icon\"\r\n (click)=\"showUserAppsPanel($event)\"\r\n >\r\n <img\r\n src=\"assets/common-header-lib/images/apps-1.svg\"\r\n class=\"apps-icon\"\r\n />\r\n </div>\r\n\r\n <!--user display name -->\r\n <div\r\n *ngIf=\"EnableProfile\"\r\n class=\"main-right\"\r\n (click)=\"showUserDetailsPanel()\"\r\n >\r\n <ng-container>\r\n <div class=\"initial-text mx-1\">\r\n {{ userdisplayName | sliceToTwo }}\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n\r\n <ng-template #HeaderLoading>\r\n <p-skeleton shape=\"circle\" size=\"1.3rem\" styleClass=\"mx-2\"></p-skeleton>\r\n <p-skeleton shape=\"circle\" size=\"1.3rem\" styleClass=\"mx-2\"></p-skeleton>\r\n <p-skeleton size=\"1.5rem\" styleClass=\"mx-2\"></p-skeleton>\r\n <p-skeleton shape=\"circle\" size=\"2rem\" styleClass=\"mx-2\"></p-skeleton>\r\n </ng-template>\r\n </div>\r\n </div>\r\n</header>\r\n\r\n<!--List of Application : 9 dots -->\r\n<p-overlayPanel #App class=\"pt-0\" styleClass=\"app-panel\">\r\n <ng-container *ngIf=\"!userAppLoaderLoadder; else LoadingTemplate\">\r\n <div class=\"custom-popover-content\">\r\n <div class=\"waffle-align\">\r\n <div\r\n class=\"waffle-popup\"\r\n [title]=\"appDetails['applicationName']\"\r\n *ngFor=\"let appDetails of ListOfUserPrivillegedApp\"\r\n (click)=\"getConnectionofApplication(appDetails['appCode'])\"\r\n >\r\n <img\r\n *ngIf=\"appDetails?.appCode\"\r\n src=\"assets/common-header-lib/images/{{ appDetails.appCode }}.svg\"\r\n alt=\"App icon\"\r\n />\r\n\r\n <div class=\"waffle-text\">{{ appDetails[\"applicationName\"] }}</div>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-template #LoadingTemplate>\r\n <div class=\"custom-popover-content skeleton-popover\">\r\n <ng-container *ngFor=\"let item of repeatLoader\">\r\n <div\r\n class=\"d-flex flex-column align-items-center justify-content-center gap-2\"\r\n >\r\n <p-skeleton size=\"3rem\"></p-skeleton>\r\n <p-skeleton height=\".3rem\" width=\"35px\"></p-skeleton>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-template>\r\n</p-overlayPanel>\r\n\r\n<!--mailbox details-->\r\n<ng-container *ngIf=\"showMailboxScreenflag\">\r\n <div class=\"changingContent\">\r\n <app-user-mailbox\r\n (closeMailDialogBox)=\"hideMailBoxScreen()\"\r\n ></app-user-mailbox>\r\n </div>\r\n</ng-container>\r\n\r\n<!-- Userdetails profile pop up -->\r\n<div class=\"profile-sidebar\">\r\n <app-side-popup\r\n *ngIf=\"isOpenSidePopup\"\r\n [visible]=\"true\"\r\n [position]=\"'right'\"\r\n (closeDialogBox)=\"closeSidePopup()\"\r\n >\r\n <app-user-sidebar\r\n *ngIf=\"showUserDetails\"\r\n [languages]=\"languages\"\r\n (closeDialogBox)=\"closeSidePopup()\"\r\n ></app-user-sidebar>\r\n </app-side-popup>\r\n</div>\r\n\r\n<!-- Notification side popup -->\r\n<div\r\n class=\"modal fade common-alert-modal\"\r\n #notifyModal\r\n id=\"Notify_SidebarModal\"\r\n tabindex=\"-1\"\r\n aria-hidden=\"true\"\r\n>\r\n <div class=\"modal-dialog sidebar-outer white-bg\">\r\n <div class=\"modal-content\">\r\n <div class=\"sidebar-container white-bg\">\r\n <!-- keep everything inside this content -->\r\n\r\n <!-- Sidebar Header -->\r\n <div class=\"sidebar-header grey-background\">\r\n <div class=\"sh-top\">\r\n <div class=\"sh-top-left d-flex align-items-center\">\r\n <div class=\"mx-2 log-text\">\r\n {{ \"Generic_lib.Notification\" | translate }}\r\n </div>\r\n </div>\r\n <div class=\"sh-top-right\">\r\n <button\r\n type=\"button\"\r\n class=\"common-bn tertiary-btn\"\r\n aria-label=\"Close\"\r\n (click)=\"closeModal()\"\r\n >\r\n <img\r\n src=\"assets/common-header-lib/images/close.svg\"\r\n alt=\"Close\"\r\n class=\"imgs mb-1\"\r\n />\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Sidebar Body -->\r\n <div class=\"sidebar-body\">\r\n <div class=\"d-flex justify-content-between align-items-center mb-2\">\r\n <div class=\"noti-text\">\r\n {{\r\n \"Generic_lib.YouHaveNNotifications\"\r\n | translate: { count: userNotificationCount }\r\n }}\r\n </div>\r\n <div\r\n class=\"d-flex align-items-center gap-1 refresh-icon\"\r\n (click)=\"getEventwiseNotification()\"\r\n >\r\n <img\r\n src=\"assets/common-header-lib/images/refresh-1.svg\"\r\n alt=\"Refresh\"\r\n />\r\n <div class=\"refresh-text\">\r\n {{ \"Generic_lib.Refresh\" | translate }}\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"mt-3\">\r\n <ng-container\r\n *ngIf=\"\r\n !isErrorFound && !notificationLoadder;\r\n else Noti_LoadingTemplate\r\n \"\r\n >\r\n <div\r\n class=\"notify-border\"\r\n *ngFor=\"let event of eventwiseNotificationCount\"\r\n >\r\n <div class=\"d-flex align-items-center gap-3\">\r\n <div class=\"initial-text initial-text-1 mx-1\">\r\n <img\r\n src=\"assets/common-header-lib/images/noti_ticket.svg\"\r\n alt=\"Icon\"\r\n />\r\n </div>\r\n <div>\r\n <div>\r\n <span class=\"service-count\"\r\n >{{ event[\"PendingCount\"] }} New </span\r\n ><span class=\"service-request\"\r\n >{{ event[\"EventName\"] }} Event requests</span\r\n >\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"grey-borders mt-2\"></div>\r\n </div>\r\n </ng-container>\r\n <ng-template #Noti_LoadingTemplate>\r\n <ng-container *ngIf=\"notificationLoadder; else errorTemplate\">\r\n <ng-container *ngFor=\"let item of repeatLoader1\">\r\n <div class=\"d-flex align-items-center gap-3\">\r\n <p-skeleton\r\n shape=\"circle\"\r\n size=\"60px\"\r\n styleClass=\"my-2\"\r\n ></p-skeleton>\r\n <div class=\"ms-1\">\r\n <p-skeleton width=\"200%\" styleClass=\"mb-2\"></p-skeleton>\r\n <p-skeleton width=\"150px\" height=\"1rem\"></p-skeleton>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </ng-template>\r\n\r\n <ng-template #errorTemplate>\r\n <app-no-service-my-access-pg\r\n heading=\"{{ 'Generic_lib.CommonError' | translate }}\"\r\n ></app-no-service-my-access-pg>\r\n </ng-template>\r\n </div>\r\n <!-- Notification content & loaders remain here -->\r\n </div>\r\n </div>\r\n <!-- end of sidebar-container -->\r\n </div>\r\n <!-- end of modal-content -->\r\n </div>\r\n <!-- end of modal-dialog -->\r\n</div>\r\n\r\n<!-- Common Conirmation Modal -->\r\n<confirm-dialog\r\n class=\"rm-invalid-border\"\r\n #confirmDialog\r\n header=\"{{ 'Generic_lib.ChangeLOB' | translate }}\"\r\n message=\"{{ 'Generic_lib.DoYouWantToChangeTheCurrentLOB' | translate }}\"\r\n (result)=\"lobChangeConfirmation($event)\"\r\n></confirm-dialog>\r\n\r\n<!--* Need to use component based notification UI as below -->\r\n<!-- Notification-Sidebar Started -->\r\n<!-- <app-notification-sidebar [isErrorOccured]=\"isErrorFound\" [userNotificationCount]=\"userNotificationCount\"\r\n [userNotificationCountObj]=\"userNotificationCountObj\" [eventwiseNotificationCount]=\"eventwiseNotificationCount\"\r\n (refreshNotification)=\"getEventwiseNotificationCount()\"\r\n [notificationLoadder]=\"notificationLoadder\"></app-notification-sidebar> -->\r\n<!-- Notification-Sidebar Ended -->\r\n", styles: [".app-header{padding:4px 10px 10px;height:42px;border-bottom:1px solid #d0d4e4}.logo{display:flex;align-items:center}.main-right{display:flex;align-items:center;cursor:pointer}.logo-icon{width:0;height:0;border-left:14px solid transparent;border-right:14px solid transparent;position:relative}.logo-icon:after{width:0;height:0;border-left:7px solid transparent;border-right:7px solid transparent;position:absolute;content:\"\";top:7px;left:-7px}p{font-size:25px!important}.p-inputtext.p-inputtext-sm{padding:4px 5px 4px 33px!important}.pi-search:before{font-size:13px;position:absolute;top:2px}.overlay-text{font-size:13px;line-height:18px;color:#676879;font-weight:400}.main-left .p-dropdown{border:none;border-radius:0;width:140px!important}.main-left .p-dropdown-panel .p-dropdown-items{padding:0!important;max-height:110px}.main-left :focus-visible{outline:none}.main-left .p-scroller{overflow-x:hidden;height:120px!important}.header-drpdwn{width:120px!important;font-size:11px!important;text-overflow:ellipsis;overflow:hidden}.logs{gap:70px;margin-top:5px}.head-search{position:fixed;top:4px;left:275px}.head-search input{width:calc(30vw - 40px)!important;border:1px solid #c3c6d4;background-color:#f6f7fb;height:32px;border-radius:0 4px 4px 0;border-left:none;font-size:13px!important;padding-left:30px!important;padding-right:54px}.head-search.active{position:fixed;top:4px;left:275px}.head-search.active input{width:555px!important}@media screen and (min-width: 1920px){.head-search.active{position:fixed;top:4px;left:275px}.head-search.active input{width:900px!important}}.header-left-icon{height:32px;width:32px;cursor:pointer;display:flex;justify-content:center;align-items:center;transition:all .5s;border-radius:50%;margin-right:4px;position:relative}.header-left-icon:hover{background:#dcdfec}.header-left-icon img:hover{filter:invert(0%) sepia(4%) saturate(0%) hue-rotate(324deg) brightness(55%) contrast(105%)}.apps-icon{width:21px}.logo-img{width:80px}.initial-text{width:32px;height:32px;display:flex;align-items:center;justify-content:center;font-size:11px;border-radius:50%;color:#fff;background-color:#8e562e}.initial-text-1{background-color:#f2edfa}.lob-img{padding-bottom:4px}.session-app:hover{background:#dcdfec;border-radius:10px}.app-col{cursor:pointer;padding:8px 0}.app-text{font-size:12px;color:#676879;white-space:nowrap;padding-top:8px;text-align:center;text-overflow:ellipsis;overflow:hidden;width:100px}.filter-search{position:relative;right:50px;bottom:2px;cursor:pointer}.filter-search .cross-search{width:23px}.filter-search .search-filter{width:19px}.headeright-icon{width:17px;height:17px;filter:invert(44%) sepia(3%) saturate(1698%) hue-rotate(199deg) brightness(92%) contrast(93%)}.pl-0{padding-left:0}.form-control-sm{border:none;border-bottom:1px solid #c3c6d4;border-radius:0}.overlay-footer .common-btn{width:110px;height:32px;padding:11px 12px;border-radius:4px;font-size:13px;cursor:pointer;background:#fff}.overlay-footer .primary-btn{padding:8px 12px 11px 14px;border-radius:4px;height:32px;width:65px;font-size:13px;cursor:pointer}.filter-popup{position:relative;left:10px}.form-group{margin-bottom:5px}.waffle-text{font-size:11px;text-align:center;width:70px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;margin-top:-3px}.waffle-align{display:grid;grid-template-columns:auto auto auto}.waffle{cursor:pointer;margin-right:16px}.waffle-popup{width:89px!important;margin-top:0;padding:8px 0 4px;display:flex;align-items:center;justify-content:center;flex-direction:column;cursor:pointer}.waffle-popup:hover{background:var(--primary-notification-bg);border-radius:10px}.waffle-popup img{height:40px}.custom-popover-content{padding:10px;right:-5px;top:0;position:absolute;background:white;border-radius:8px;box-shadow:0 0 6px #9d9d9d}.custom-popover-content.skeleton-popover{width:313px;display:grid;grid-template-columns:auto auto auto;gap:10px}.timezone{margin-right:12px}.timezone-icon{font-size:16px}.timezone-text{padding-left:6px;font-size:13px;color:#495057;font-weight:400}.user-tz{font-size:13px;color:#757575;font-weight:400;text-overflow:ellipsis;overflow:hidden;width:30px;white-space:normal}.profile-sidebar .p-dialog .p-dialog-content{padding:0}.profile-sidebar .p-dialog-header{display:none}.modname{font-size:18px;margin-bottom:0}.changingContent{overflow:hidden;width:100%}.changingContent .intro-text{background-image:linear-gradient(145deg,#f1eaec,#f8e3e7,#f7e1f8,#ebeeff,#e8eef3);position:relative;height:135px}.changingContent .inner-garient{padding:50px 20px 115px 30px}.changingContent .table-heading{padding:0 20px 1px 30px}.changingContent .table-selection{padding:3px 20px 0 30px}.grey-background{background-color:#f6f7fb}.white-bg{background:#ffffff;overflow:hidden}.imgs{width:20px}.p-dropdown .p-dropdown-label{background:transparent;border:0 none;display:flex;align-items:center}.p-dropdown .p-dropdown-trigger{width:32px!important}.pi-chevron-down:before{content:\"\\e902\";font-size:11px}.sidebar-outer{height:100vh}.lang-dropdown .p-dropdown{border:1px solid #dee2e6!important;height:26px!important;border-radius:4px!important;min-width:calc(40vh - 92px)!important;padding:0 4px 0 12px!important;display:flex!important;align-items:center!important;justify-content:space-between!important}.lang-dropdown .p-dropdown .pi{position:relative;bottom:2px;left:7px}.lang-dropdown .p-dropdown-panel{background:#ffffff!important;color:#495057!important;border:0px!important;box-shadow:0 2px 12px #0000001a!important}.lang-dropdown .p-dropdown-header{padding:5px 10px!important;border-bottom:1px solid #dee2e6!important;background:#f8f9fa!important;color:#343a40!important;margin:0!important}.lang-dropdown .p-dropdown-items-wrapper{max-height:140px!important}.lang-dropdown .p-dropdown-panel .p-dropdown-header{padding:4px 8px!important;border-radius:0!important}.p-dropdown-panel .p-dropdown-header{padding:.75rem 1.25rem;border-bottom:1px solid #dee2e6;color:#343a40;background:#f8f9fa;margin:0;border-top-right-radius:6px;border-top-left-radius:6px}.lang-dropdown .p-dropdown .p-dropdown-header .p-dropdown-filter{height:26px;border-radius:4px;font-size:12px;border:1px solid #ced4da!important;padding-left:12px!important}.lang-dropdown .p-inputtext{margin:0;text-align:start;font-size:13px;padding:0!important}.lang-dropdown .p-dropdown-panel .p-dropdown-header .p-dropdown-filter-icon{position:relative;bottom:13px;font-size:13px}.sidebar-outer .sidebar-body .sb-list ul li span{margin-right:12px}.p-dropdown-panel .p-dropdown-header .p-dropdown-filter-icon{left:6px;color:#6c757d}.lang-dropdown .p-dropdown-items-wrapper ::-webkit-scrollbar{width:6px!important}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background-color:#c1c1c1;border-radius:6px}::-webkit-scrollbar-thumb:hover{background-color:#a8a8a8}.sidebar-outer .sidebar-body .sb-list ul{float:left;width:100%;list-style:none;padding-left:0}.lang-dropdown .p-dropdown-panel .p-dropdown-items{font-size:12px;padding:0!important}.p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-highlight{color:var(--jaguar-black-color);background:var(--solitude-blue);background-color:var(--solitude-blue)}.lang-dropdown .p-dropdown-panel .p-dropdown-items .p-dropdown-item{padding:2px 14px;font-size:12px}.sidebar-outer .sidebar-body .sb-list ul li{display:flex;padding:8px 2px;cursor:pointer}.modal-dialog{margin-right:0;margin-top:0;margin-bottom:0}.loblist-drpdwn-panel .p-dropdown-header{padding:5px 10px}.loblist-drpdwn-panel .p-inputtext{background:#ffffff;padding:6px}.loblist-drpdwn .p-inputtext{font-size:13px}.loblist-drpdwn-panel .p-dropdown-header .p-dropdown-filter{height:28px;border-radius:4px;font-size:12px}.loblist-drpdwn-panel .p-dropdown-items .p-dropdown-item{margin-bottom:1px;padding:6px 16px;border:0;color:#495057;background:transparent;transition:box-shadow .2s;border-radius:0;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.loblist-drpdwn-panel .p-dropdown-header .p-dropdown-filter-icon{position:absolute;left:82%;top:50%;transform:translateY(-50%);color:#6c757d}.loblist-drpdwn-panel .p-dropdown-items .p-dropdown-empty-message{padding:6px 12px;color:#495057!important;background:transparent!important;font-size:12px}.logo-size{max-height:32px;max-width:92px}.logo-size-1{width:80px;height:30px}.sidebar-body{overflow:auto;height:calc(100vh - 70px);width:100%}.sidebar-body .refresh-icon{cursor:pointer}.sidebar-body .notify-border{padding:8px 8px 0 6px;cursor:pointer}.sidebar-body .notify-border:hover{background-color:#dcdfec;border-radius:8px}.sidebar-body .notify-border .initial-text{width:40px;height:40px;display:flex;align-items:center;justify-content:center;font-size:11px;border-radius:50%;color:#fff;background-color:#f2edfa}.sidebar-body .notify-border .service-count{color:#323238;font-weight:600;font-size:13px}.sidebar-body .notify-border .service-request{color:#676879;font-size:12px;font-weight:500}.sidebar-body .notify-border .time-text{color:#676879;font-size:12px}.sidebar-body .notify-border .grey-borders{border-bottom:1px solid #d0d4e4}.mail-table{height:calc(100vh - 196px);overflow:auto}.mail-table .p-datatable .p-datatable-thead>tr{border:1px solid #dee2e6;border-radius:24px}.mail-table .p-datatable .p-datatable-thead>tr th{padding:0 8px;height:36px;font-size:13px;color:var(--primary-text);font-weight:600;background:#fff}.mail-table .p-datatable .p-datatable-tbody>tr{border:1px solid #dee2e6;border-radius:24px}.mail-table .p-datatable .p-datatable-tbody>tr td{padding:0 25px 0 8px;height:38px;font-size:13px;color:var(--secondary-text);white-space:nowrap}.mail-table .p-checkbox{height:18px;width:18px}.mail-table .p-checkbox .p-checkbox-box{height:16px;width:16px;border-radius:4px;border:1px solid var(--ui-border)}.mail-table .p-checkbox .p-checkbox-box:hover{border:1px solid var(--ui-border)!important}.mail-table .p-checkbox .p-checkbox-icon{font-size:10px!important}.mail-table .p-datatable .p-sortable-column:hover{background-color:#fff!important;color:#000!important}.mail-table .p-datatable .p-sortable-column:focus{box-shadow:none!important}.mail-table .p-datatable .p-sortable-column .p-sortable-column-icon{font-size:12px}.mail-table .p-dropdown-panel .p-dropdown-items{padding:0}.mail-table .p-dropdown-panel .p-dropdown-items .p-dropdown-item{font-size:13px!important;padding:10px 15px}.mail-table .p-paginator{justify-content:flex-start!important;position:fixed;bottom:0;padding-left:0!important}.mail-table .p-paginator .p-paginator-current{font-size:12px;height:1rem!important}.mail-table .p-paginator .p-paginator-pages .p-paginator-page{min-width:30px!important;height:30px!important;font-size:12px}.mail-table .p-paginator .p-dropdown{height:30px!important;margin-top:0;border:0px}.mail-table .p-paginator .p-dropdown .p-dropdown-label{padding:4px 5px 0 10px!important;font-size:14px}.mail-table .p-paginator .p-dropdown .p-dropdown-trigger{width:1.5rem!important}.mail-table .p-paginator .p-dropdown .p-dropdown-trigger .pi{font-size:13px!important}.mail-pagination .p-paginator{justify-content:flex-start!important;padding-left:0;height:47px;width:100%}.mail-pagination .p-paginator .p-paginator-current{font-size:12px;height:1rem!important;padding-left:0}.mail-pagination .p-paginator .p-paginator-pages .p-paginator-page{min-width:30px!important;height:30px!important;font-size:12px}.mail-pagination .p-paginator .p-dropdown{height:30px!important;margin-top:0;border:0px}.mail-pagination .p-paginator .p-dropdown .p-dropdown-label{padding:4px 5px 0 10px!important;font-size:14px}.mail-pagination .p-paginator .p-dropdown .p-dropdown-trigger{width:1.5rem!important}.mail-pagination .p-paginator .p-dropdown .p-dropdown-trigger .pi{font-size:13px!important}.mail-pagination .p-paginator .p-paginator-first,.mail-pagination .p-paginator .p-paginator-prev,.mail-pagination .p-paginator .p-paginator-next,.mail-pagination .p-paginator .p-paginator-last{min-width:30px!important;height:30px!important}.rm-invalid-border .card{border:0px}.view-pass-details{width:600px!important}.view-pass-details .p-dialog-header{background:#ffffff!important;border-radius:4px 4px 0 0!important;border-bottom:1px solid var(--primary-color)!important}.view-pass-details .p-dialog-content:last-of-type{border-bottom-right-radius:4px!important;border-bottom-left-radius:4px!important;padding:0}.confirmtion-modal .p-dialog-content{padding-top:24px;padding-right:100px;font-size:var(--base-font-size)}.confirmtion-modal .p-confirm-dialog-message{margin-left:0!important}.confirmtion-modal .p-button{font-size:var(--base-font-size);background-color:var(--primary-color);border-color:var(--primary-color);padding:6px 28px}.confirmtion-modal .p-button .p-button-secondary .p-button-outlined{background-color:var(--white-color);border:1px solid var(--primary-color);color:var(--primary-color)}.confirmtion-modal .p-button .p-button-secondary .p-button-outlined:enabled:hover{background-color:var(--white-color)}.confirmtion-modal .p-button:enabled:hover{border:1px solid var(--primary-color);background-color:var(--primary-color)}.confirmtion-modal .p-button.p-button-secondary.p-button-outlined{color:var(--primary-color);border:1px solid var(--primary-color);background-color:var(--white-color)}.confirmtion-modal .p-button.p-button-secondary.p-button-outlined:enabled:hover{color:var(--primary-color);border:1px solid var(--primary-color);background-color:var(--white-color)}.badge-notify:hover{border-radius:50%;background:#dcdfec}.badge-notify .p-badge{min-width:16px;height:16px;line-height:15px}.badge-notify .p-overlay-badge .p-badge{background-color:var(--primary-color)!important;position:absolute;top:-7px;right:12px;font-size:9px;padding:0 2px;cursor:pointer}.madontary-icon{color:#d4231d;font-weight:500;padding:5px 0 0 5px}.img-lock{width:12px;margin-bottom:1px}.img-lock.ext{width:16px;margin-bottom:0}.img-lock.ext2{width:18px;margin-bottom:0}.form-group .error-msg{position:relative}.submit-btn .p-button{height:30px;font-size:14px;border-radius:4px;border:1px solid var(--primary-color);background-color:var(--primary-color);border-color:var(--primary-color)}.submit-btn .p-button:enabled:hover{border:1px solid var(--primary-color);background-color:var(--primary-color);border-color:var(--primary-color)}.submit-btn .p-button .p-button-label{font-weight:400;font-size:13px}.p-dialog.general-configuration{width:100%;height:100vh;max-height:100vh}.general-configuration .p-dialog-header{border-bottom:1px solid #d0d4e4!important;background:#ffffff!important}.p-dialog .p-dialog-header{padding:10px 21px!important;background:#fff!important;border-top-right-radius:6px!important;border-top-left-radius:6px!important;height:45px}.p-dialog .p-dialog-header .p-dialog-title{font-weight:600;font-size:var(--base-font-size)}.assets-dropdown .p-dropdown{height:38px!important;width:100%!important;border-radius:4px!important;align-items:center!important}.assets-dropdown .p-dropdown:hover{border:1px solid #ced4da!important}.p-dropdown-panel .p-dropdown-header .p-dropdown-filter{padding-right:1.75rem;margin-right:-1.75rem}.assets-dropdown .p-inputtext{width:100%;border-radius:4px;height:30px;font-size:13px!important}.assets-dropdown .p-dropdown-panel .p-dropdown-header .p-dropdown-filter-icon{left:96%;color:#6c757d;font-size:13px;top:15px!important}.assets-dropdown .p-dropdown-panel .p-dropdown-header{padding:10px!important}.assets-dropdown .p-dropdown-items-wrapper{max-height:100px!important}.assets-dropdown .p-dropdown-panel .p-dropdown-items .p-dropdown-item{padding:5px 20px!important;font-size:13px!important;font-weight:400!important}.p-dropdown-panel .p-dropdown-items{padding:0!important}.assets-dropdown .p-dropdown-panel .p-dropdown-items .p-dropdown-empty-message{font-size:13px!important;padding:8px 20px!important}.p-dropdown-panel .p-dropdown-items .p-dropdown-empty-message{padding:.75rem 1.25rem;color:#495057!important;background:transparent!important}.p-dropdown-filter-container{position:relative}.p-dropdown-filter-container input{border:1px solid #ced4da!important}.input-dropdown .password-checkbox-right{position:absolute;width:24px;right:8px}.timezone-dropdown .p-dropdown{width:100%;border:1px solid #ced4da!important;border-radius:4px;height:38px}.timezone-dropdown .p-dropdown-panel .p-dropdown-header{padding:5px}.timezone-dropdown .p-dropdown:hover{border:1px solid #ced4da!important}.timezone-dropdown .p-inputtext{width:100%;border-radius:4px;height:30px;font-size:13px!important}.timezone-dropdown .p-dropdown-panel .p-dropdown-header .p-dropdown-filter-icon{left:96%;color:#6c757d;font-size:13px;top:15px!important}.timezone-dropdown .p-dropdown-panel .p-dropdown-header{padding:10px!important}.timezone-dropdowntimezone-dropdown .p-dropdown-items-wrapper{max-height:100px!important}.timezone-dropdown .p-dropdown-panel .p-dropdown-items .p-dropdown-item{padding:5px 20px!important;font-size:13px!important;font-weight:400!important}.timezone-dropdown .p-dropdown-panel .p-dropdown-items .p-dropdown-empty-message{font-size:13px!important;padding:8px 20px!important}.sidebar-container{width:420px;position:fixed;top:0;height:100vh;max-width:100%;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;background-color:#fff}.white-bg{background:#ffffff;width:420px;overflow:hidden}.sidebar-outer .sidebar-header{padding:12px 15px}.sidebar-outer .sidebar-header .sh-top{display:flex;align-items:center;justify-content:space-between}.log-text{font-size:16px;color:#292f4c;font-weight:600}.sidebar-outer .sidebar-header .sh-top button{height:24px}.sidebar-outer .sidebar-body{padding:12px 20px;float:left;width:100%;overflow:auto;height:calc(100vh - 70px)}.tertiary-btn{border:none;background-color:transparent}.sidebar-body .noti-text{color:#292f4c;font-size:13px;font-weight:600;line-height:24px}.sidebar-body .refresh-text{color:#676879;font-size:12px;line-height:24px}.error-msg{font-size:12px;font-weight:600;width:100%;position:absolute;bottom:4px;left:0;display:flex;align-items:flex-end;color:#d83a52;font-family:-apple-system,BlinkMacSystemFont,Roboto,Segoe UI,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",Segoe UI Symbol!important}.error-msg .error-icon{font-size:18px;margin-right:4px;position:relative;top:-1px}.common-alert-modal .modal-dialog{margin-right:0!important}.ngx-toastr{width:400px!important;margin-top:10px!important}.toast-success{background-color:#fff!important;border-bottom:3px solid #258750;border-radius:4px!important;background-image:url(assets/common-header-lib/images/toast-success.svg)!important;background-repeat:no-repeat}.toast-success .toast-title{color:#258750!important;font-weight:700;font-size:16px}.toast-success .toast-message{padding-top:2px;color:#676879!important;font-size:14px!important}.toast-success .toast-progress{color:#258750!important}.toast-error{background-color:#fff!important;border-bottom:3px solid #d83a52;border-radius:4px!important;background-image:url(assets/common-header-lib/images/toast-error.svg)!important;background-repeat:no-repeat}.toast-error .toast-title{color:#d83a52!important;font-weight:700;font-size:16px}.toast-error .toast-message{padding-top:2px;color:#676879!important;font-size:14px!important}.toast-info{background-color:#fff!important;border-bottom:3px solid #0073ea;border-radius:4px!important;background-image:url(assets/common-header-lib/images/toast-info.svg)!important;background-repeat:no-repeat}.toast-info .toast-title{color:#0073ea!important;font-weight:700;font-size:16px}.toast-info .toast-message{padding-top:3px;color:#676879!important;font-size:14px!important}.toast-warning{background-color:#fff!important;border-bottom:3px solid #fdab3d;border-radius:4px!important;background-image:url(assets/common-header-lib/images/toast-alert.svg)!important;background-repeat:no-repeat}.toast-warning .toast-title{color:#fdab3d!important;font-weight:700;font-size:16px}.toast-warning .toast-message{padding-top:3px;color:#676879!important;font-size:14px!important}.toast-close-button{right:4px!important;top:0;font-size:20px;font-weight:700;text-shadow:0 1px 0 #ffffff;background-color:transparent;border:0px;color:#676879;position:absolute;cursor:pointer}.toast-container{position:fixed;z-index:2147483647!important;pointer-events:auto!important}.toast-container .ngx-toastr{position:relative;overflow:hidden;margin:0 0 6px;padding:15px 40px 15px 50px;width:300px;border-radius:8px!important;background-position:15px 15px;background-repeat:no-repeat;background-size:24px;box-shadow:0 0 9px #99999980;color:#fff}.toast-top-center{top:0;right:0;width:100%}.toast-top-right{right:15px;top:40px}.toast-container.toast-top-center .ngx-toastr,.toast-container.toast-bottom-center .ngx-toastr{margin-left:auto;margin-right:auto}.p-tooltip{max-width:320px!important}.p-tooltip .p-tooltip-text{font-size:12px!important;line-height:18px!important;padding:8px 10px!important;border-radius:6px!important;white-space:normal!important;overflow-wrap:anywhere;word-break:break-word}\n"] }]
3976
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: RestSignalRService }, { type: EventService }, { type: i4.TranslateService }, { type: HttpCommonService }, { type: ToastMsgService }]; }, propDecorators: { EnableLogo: [{
3977
- type: Input
3978
- }], moduleName: [{
3979
- type: Input
3980
- }], EnableTimeZone: [{
3981
- type: Input
3982
- }], EnableLOB: [{
3983
- type: Input
3984
- }], showAllLOB: [{
3985
- type: Input
3986
- }], EnableMail: [{
3987
- type: Input
3988
- }], EnableNotifications: [{
3989
- type: Input
3990
- }], EnableMoreApps: [{
3991
- type: Input
3992
- }], EnableProfile: [{
3993
- type: Input
3994
- }], languages: [{
3995
- type: Input
3996
- }], timezoneDetails: [{
3997
- type: Output
3998
- }], lobSelected: [{
3999
- type: Output
4000
- }], getBgImage: [{
4001
- type: Output
4002
- }], langChange: [{
4003
- type: Output
4004
- }], overlayStateChange: [{
4005
- type: Output
4006
- }], confirmDialog: [{
4007
- type: ViewChild,
4008
- args: ['confirmDialog']
4009
- }], appPanel: [{
4010
- type: ViewChild,
4011
- args: ['App']
4012
- }], notifyModalRef: [{
4013
- type: ViewChild,
4014
- args: ['notifyModal']
4015
- }], notifyModal: [{
4016
- type: ViewChild,
4017
- args: ['notifyModal']
4018
- }] } });
4019
-
4020
- class NotificationSidebarComponent {
4021
- constructor() {
4022
- this.userNotificationCount = '';
4023
- this.userNotificationCountObj = {};
4024
- this.eventwiseNotificationCount = [];
4025
- this.refreshNotification = new EventEmitter();
4026
- this.isErrorOccured = false;
4027
- this.notificationLoadder = true;
4028
- this.NoServiceMsgText = 'Generic_lib.CommonError';
4029
- this.repeatLoader = Array(9).fill(0);
4030
- }
4031
- //Method: Call APi to Fetch New Notification Count
4032
- getEventwiseNotification() {
4033
- this.refreshNotification.emit(true);
4034
- }
4035
- }
4036
- NotificationSidebarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NotificationSidebarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4037
- NotificationSidebarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: NotificationSidebarComponent, selector: "app-notification-sidebar", inputs: { userNotificationCount: "userNotificationCount", userNotificationCountObj: "userNotificationCountObj", eventwiseNotificationCount: "eventwiseNotificationCount", isErrorOccured: "isErrorOccured", notificationLoadder: "notificationLoadder" }, outputs: { refreshNotification: "refreshNotification" }, ngImport: i0, template: "<div class=\"modal fade common-alert-modal\" id=\"Notify_SidebarModal\" tabindex=\"-1\" aria-hidden=\"true\">\r\n <div class=\"sidebar-container white-bg\">\r\n <div class=\"modal-dialog sidebar-outer white-bg\">\r\n <div class=\"sidebar-header grey-background\">\r\n <div class=\"sh-top\">\r\n <div class=\"sh-top-left d-flex align-items-center\">\r\n <div class=\"mx-2 log-text\">Notification</div>\r\n </div>\r\n <div class=\"sh-top-right\">\r\n <button type=\"button\" class=\"common-bn tertiary-btn\" data-bs-dismiss=\"modal\" aria-label=\"Close\">\r\n <img src=\"assets/common-header-lib/images/close.svg\" alt=\"Icon\" class=\"imgs mb-1\" title=\"Close\">\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"sidebar-body\">\r\n <div class=\"d-flex justify-content-between align-items-center mb-2\">\r\n <div class=\"noti-text\">You Have {{userNotificationCount}} Notification</div>\r\n <div class=\"d-flex align-items-center gap-1 refresh-icon\" (click)=\"getEventwiseNotification()\">\r\n <img src=\"assets/common-header-lib/images/refresh-1.svg\" alt=\"Icon\">\r\n <div class=\"refresh-text\">Refresh</div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"mt-3\">\r\n <ng-container *ngIf=\"!isErrorOccured && !notificationLoadder; else LoadingTemplate\">\r\n <div class=\"notify-border\" *ngFor=\"let event of eventwiseNotificationCount\">\r\n <div class=\"d-flex align-items-center gap-3\">\r\n <div class=\"initial-text mx-1\">\r\n <img src=\"assets/common-header-lib/images/noti_ticket.svg\" alt=\"Icon\">\r\n </div>\r\n <div>\r\n <div><span class=\"service-count\">{{event['PendingCount']}} New </span><span\r\n class=\"service-request\">{{event['EventName'] }} Event requests</span>\r\n </div>\r\n <!-- <div class=\"time-text\">{{'2h ago'}}</div> -->\r\n </div>\r\n </div>\r\n <div class=\"grey-borders mt-2\"></div>\r\n </div>\r\n </ng-container>\r\n <ng-template #LoadingTemplate>\r\n <ng-container *ngIf=\"notificationLoadder; else errorTemplate\">\r\n <ng-container *ngFor=\"let item of repeatLoader\">\r\n <div class=\"d-flex align-items-center gap-3\">\r\n <p-skeleton shape=\"circle\" size=\"60px\" styleClass=\"my-2\"></p-skeleton>\r\n <div class=\"ms-1\">\r\n <p-skeleton width=\"200%\" styleClass=\"mb-2\"></p-skeleton>\r\n <p-skeleton width=\"150px\" height=\"1rem\"></p-skeleton>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </ng-template>\r\n <ng-template #errorTemplate>\r\n <app-no-service-my-access-pg [heading]=\"NoServiceMsgText\"></app-no-service-my-access-pg>\r\n </ng-template>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".grey-background{background-color:#f6f7fb}.white-bg{background:#ffffff;width:420px;overflow:hidden}.log-text{font-size:16px;color:#292f4c;font-weight:600}.imgs{width:20px}.sidebar-body{overflow:auto;height:calc(100vh - 70px);width:100%}.sidebar-body .noti-text{color:#292f4c;font-size:13px;font-weight:600;line-height:24px}.sidebar-body .refresh-icon{cursor:pointer}.sidebar-body .refresh-text{color:#676879;font-size:12px;line-height:24px}.sidebar-body .notify-border{padding:8px 8px 0 6px;cursor:pointer}.sidebar-body .notify-border:hover{background-color:#dcdfec;border-radius:8px}.sidebar-body .notify-border .initial-text{width:40px;height:40px;display:flex;align-items:center;justify-content:center;font-size:11px;border-radius:50%;color:var(--white-color);background-color:#f2edfa}.sidebar-body .notify-border .service-count{color:#323238;font-weight:600;font-size:13px}.sidebar-body .notify-border .service-request{color:#676879;font-size:12px;font-weight:500}.sidebar-body .notify-border .time-text{color:#676879;font-size:12px}.sidebar-body .notify-border .grey-borders{border-bottom:1px solid var(--layout-border)}\n"], dependencies: [{ kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i10$1.Skeleton, selector: "p-skeleton", inputs: ["styleClass", "style", "shape", "animation", "borderRadius", "size", "width", "height"] }, { kind: "component", type: NoServiceMyAccessPgComponent, selector: "app-no-service-my-access-pg", inputs: ["heading", "subHeading"] }] });
4038
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NotificationSidebarComponent, decorators: [{
4039
- type: Component,
4040
- args: [{ selector: 'app-notification-sidebar', template: "<div class=\"modal fade common-alert-modal\" id=\"Notify_SidebarModal\" tabindex=\"-1\" aria-hidden=\"true\">\r\n <div class=\"sidebar-container white-bg\">\r\n <div class=\"modal-dialog sidebar-outer white-bg\">\r\n <div class=\"sidebar-header grey-background\">\r\n <div class=\"sh-top\">\r\n <div class=\"sh-top-left d-flex align-items-center\">\r\n <div class=\"mx-2 log-text\">Notification</div>\r\n </div>\r\n <div class=\"sh-top-right\">\r\n <button type=\"button\" class=\"common-bn tertiary-btn\" data-bs-dismiss=\"modal\" aria-label=\"Close\">\r\n <img src=\"assets/common-header-lib/images/close.svg\" alt=\"Icon\" class=\"imgs mb-1\" title=\"Close\">\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"sidebar-body\">\r\n <div class=\"d-flex justify-content-between align-items-center mb-2\">\r\n <div class=\"noti-text\">You Have {{userNotificationCount}} Notification</div>\r\n <div class=\"d-flex align-items-center gap-1 refresh-icon\" (click)=\"getEventwiseNotification()\">\r\n <img src=\"assets/common-header-lib/images/refresh-1.svg\" alt=\"Icon\">\r\n <div class=\"refresh-text\">Refresh</div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"mt-3\">\r\n <ng-container *ngIf=\"!isErrorOccured && !notificationLoadder; else LoadingTemplate\">\r\n <div class=\"notify-border\" *ngFor=\"let event of eventwiseNotificationCount\">\r\n <div class=\"d-flex align-items-center gap-3\">\r\n <div class=\"initial-text mx-1\">\r\n <img src=\"assets/common-header-lib/images/noti_ticket.svg\" alt=\"Icon\">\r\n </div>\r\n <div>\r\n <div><span class=\"service-count\">{{event['PendingCount']}} New </span><span\r\n class=\"service-request\">{{event['EventName'] }} Event requests</span>\r\n </div>\r\n <!-- <div class=\"time-text\">{{'2h ago'}}</div> -->\r\n </div>\r\n </div>\r\n <div class=\"grey-borders mt-2\"></div>\r\n </div>\r\n </ng-container>\r\n <ng-template #LoadingTemplate>\r\n <ng-container *ngIf=\"notificationLoadder; else errorTemplate\">\r\n <ng-container *ngFor=\"let item of repeatLoader\">\r\n <div class=\"d-flex align-items-center gap-3\">\r\n <p-skeleton shape=\"circle\" size=\"60px\" styleClass=\"my-2\"></p-skeleton>\r\n <div class=\"ms-1\">\r\n <p-skeleton width=\"200%\" styleClass=\"mb-2\"></p-skeleton>\r\n <p-skeleton width=\"150px\" height=\"1rem\"></p-skeleton>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </ng-template>\r\n <ng-template #errorTemplate>\r\n <app-no-service-my-access-pg [heading]=\"NoServiceMsgText\"></app-no-service-my-access-pg>\r\n </ng-template>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".grey-background{background-color:#f6f7fb}.white-bg{background:#ffffff;width:420px;overflow:hidden}.log-text{font-size:16px;color:#292f4c;font-weight:600}.imgs{width:20px}.sidebar-body{overflow:auto;height:calc(100vh - 70px);width:100%}.sidebar-body .noti-text{color:#292f4c;font-size:13px;font-weight:600;line-height:24px}.sidebar-body .refresh-icon{cursor:pointer}.sidebar-body .refresh-text{color:#676879;font-size:12px;line-height:24px}.sidebar-body .notify-border{padding:8px 8px 0 6px;cursor:pointer}.sidebar-body .notify-border:hover{background-color:#dcdfec;border-radius:8px}.sidebar-body .notify-border .initial-text{width:40px;height:40px;display:flex;align-items:center;justify-content:center;font-size:11px;border-radius:50%;color:var(--white-color);background-color:#f2edfa}.sidebar-body .notify-border .service-count{color:#323238;font-weight:600;font-size:13px}.sidebar-body .notify-border .service-request{color:#676879;font-size:12px;font-weight:500}.sidebar-body .notify-border .time-text{color:#676879;font-size:12px}.sidebar-body .notify-border .grey-borders{border-bottom:1px solid var(--layout-border)}\n"] }]
4041
- }], ctorParameters: function () { return []; }, propDecorators: { userNotificationCount: [{
4042
- type: Input
4043
- }], userNotificationCountObj: [{
4044
- type: Input
4045
- }], eventwiseNotificationCount: [{
4046
- type: Input
4047
- }], refreshNotification: [{
4048
- type: Output
4049
- }], isErrorOccured: [{
4050
- type: Input
4051
- }], notificationLoadder: [{
4052
- type: Input
4053
- }] } });
4054
-
4055
- /**
4056
- * Common header library module.
4057
- *
4058
- * Translation initialization (APP_INITIALIZER, languages.json validation,
4059
- * fallback chain, language-file loading) is OWNED BY THE CONSUMING APP —
4060
- * see `initTranslateService` and `HttpLoaderFactory` in src/app/app.module.ts
4061
- * (test/dev host) and the equivalent code in your main project's MainModule.
4062
- *
4063
- * The library only imports/exports `TranslateModule` (no `forChild({ isolate })`)
4064
- * so its components share the host app's TranslateService singleton. This
4065
- * guarantees that when the host changes language, library labels translate
4066
- * accordingly.
4067
- *
4068
- * The supported-language list (USERFILTEREDLANGUAGES) is provided by the
4069
- * host app via the `[languages]` @Input on `<lib-common-header-lib>`, which
4070
- * forwards it down to `<ng-translation>`. The library no longer fetches
4071
- * languages.json itself.
4072
- */
4073
- class CommonHeaderLibModule {
4074
- }
4075
- CommonHeaderLibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CommonHeaderLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4076
- CommonHeaderLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: CommonHeaderLibModule, declarations: [CommonHeaderLibComponent,
4077
- SliceToTwoPipe,
4078
- customDateFormatPipe,
4079
- DateDiffPipe,
4080
- UserSidebarComponent,
4081
- SidePopupComponent,
4082
- NgTranslationComponent,
4083
- UserMailboxComponent,
4084
- NotificationSidebarComponent,
4085
- GeneralConfigurationComponent,
4086
- TimezoneConfigurationComponent,
4087
- LandingpgConfigComponent,
4088
- NoServiceMyAccessPgComponent,
4089
- GridPaginationComponent,
4090
- ConfirmDialogComponent,
4091
- ViewpasswordPopupComponent], imports: [CommonModule,
4092
- HttpClientModule,
4093
- ReactiveFormsModule,
4094
- /* UI Modules */
4095
- InputTextModule,
4096
- DropdownModule,
4097
- OverlayPanelModule,
4098
- TooltipModule,
4099
- BadgeModule,
4100
- DialogModule,
4101
- SkeletonModule,
4102
- PaginatorModule,
4103
- TableModule,
4104
- ButtonModule,
4105
- ConfirmDialogModule,
4106
- NgbModule,
4107
- /* Share the host app's TranslateService instance — DO NOT use
4108
- forChild({ isolate: true }) here, otherwise library components would
4109
- receive a separate TranslateService and host language changes would
4110
- not propagate to library labels. */
4111
- TranslateModule], exports: [CommonHeaderLibComponent,
4112
- SliceToTwoPipe,
4113
- DateDiffPipe,
4114
- customDateFormatPipe,
4115
- ConfirmDialogComponent,
4116
- ViewpasswordPopupComponent,
4117
- TranslateModule] });
4118
- CommonHeaderLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CommonHeaderLibModule, imports: [CommonModule,
4119
- HttpClientModule,
4120
- ReactiveFormsModule,
4121
- /* UI Modules */
4122
- InputTextModule,
4123
- DropdownModule,
4124
- OverlayPanelModule,
4125
- TooltipModule,
4126
- BadgeModule,
4127
- DialogModule,
4128
- SkeletonModule,
4129
- PaginatorModule,
4130
- TableModule,
4131
- ButtonModule,
4132
- ConfirmDialogModule,
4133
- NgbModule,
4134
- /* Share the host app's TranslateService instance — DO NOT use
4135
- forChild({ isolate: true }) here, otherwise library components would
4136
- receive a separate TranslateService and host language changes would
4137
- not propagate to library labels. */
4138
- TranslateModule, TranslateModule] });
4139
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CommonHeaderLibModule, decorators: [{
4140
- type: NgModule,
4141
- args: [{
4142
- declarations: [
4143
- CommonHeaderLibComponent,
4144
- SliceToTwoPipe,
4145
- customDateFormatPipe,
4146
- DateDiffPipe,
4147
- UserSidebarComponent,
4148
- SidePopupComponent,
4149
- NgTranslationComponent,
4150
- UserMailboxComponent,
4151
- NotificationSidebarComponent,
4152
- GeneralConfigurationComponent,
4153
- TimezoneConfigurationComponent,
4154
- LandingpgConfigComponent,
4155
- NoServiceMyAccessPgComponent,
4156
- GridPaginationComponent,
4157
- ConfirmDialogComponent,
4158
- ViewpasswordPopupComponent,
4159
- ],
4160
- imports: [
4161
- CommonModule,
4162
- HttpClientModule,
4163
- ReactiveFormsModule,
4164
- /* UI Modules */
4165
- InputTextModule,
4166
- DropdownModule,
4167
- OverlayPanelModule,
4168
- TooltipModule,
4169
- BadgeModule,
4170
- DialogModule,
4171
- SkeletonModule,
4172
- PaginatorModule,
4173
- TableModule,
4174
- ButtonModule,
4175
- ConfirmDialogModule,
4176
- NgbModule,
4177
- /* Share the host app's TranslateService instance — DO NOT use
4178
- forChild({ isolate: true }) here, otherwise library components would
4179
- receive a separate TranslateService and host language changes would
4180
- not propagate to library labels. */
4181
- TranslateModule,
4182
- ],
4183
- exports: [
4184
- CommonHeaderLibComponent,
4185
- SliceToTwoPipe,
4186
- DateDiffPipe,
4187
- customDateFormatPipe,
4188
- ConfirmDialogComponent,
4189
- ViewpasswordPopupComponent,
4190
- TranslateModule,
4191
- ],
4192
- providers: [],
4193
- }]
4194
- }] });
4195
-
4196
- /*
4197
- * Public API Surface of common-header-lib
4198
- */
4199
- // export * from './assets/js/bigint-decrypt.helper';
4200
-
4201
- /**
4202
- * Generated bundle index. Do not edit.
4203
- */
4204
-
4205
- export { CommonHeaderLibComponent, CommonHeaderLibModule, CommonHeaderLibService, ConfirmDialogComponent, DateDiffPipe, SliceToTwoPipe, ViewpasswordPopupComponent, customDateFormatPipe };
4206
- //# sourceMappingURL=common-header-lib.mjs.map