common-header-lib 0.0.22 → 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 (110) 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/copy-success.svg +4 -0
  13. package/assets/images/download-blue.svg +3 -0
  14. package/assets/images/generate.svg +3 -0
  15. package/assets/images/regenerate.svg +3 -0
  16. package/fesm2022/common-header-lib.mjs +4370 -0
  17. package/fesm2022/common-header-lib.mjs.map +1 -0
  18. package/index.d.ts +664 -5
  19. package/package.json +20 -31
  20. package/src/assets/i18n/ar.json +25 -2
  21. package/src/assets/i18n/de.json +25 -2
  22. package/src/assets/i18n/en.json +26 -3
  23. package/src/assets/i18n/es.json +25 -2
  24. package/src/assets/i18n/fr.json +25 -2
  25. package/src/assets/i18n/hi.json +25 -2
  26. package/src/assets/i18n/ja.json +25 -2
  27. package/src/assets/i18n/ko.json +25 -2
  28. package/src/assets/images/APP035.svg +20 -0
  29. package/src/assets/images/APP036.svg +14 -0
  30. package/src/assets/images/copy-success.svg +4 -0
  31. package/src/assets/images/download-blue.svg +3 -0
  32. package/src/assets/images/generate.svg +3 -0
  33. package/src/assets/images/regenerate.svg +3 -0
  34. package/assets/scss/_sidebar.scss +0 -257
  35. package/assets/scss/styles.scss +0 -577
  36. package/esm2020/common-header-lib.mjs +0 -5
  37. package/esm2020/lib/Validators/noSpaceAllowed.mjs +0 -16
  38. package/esm2020/lib/common-header-lib.component.mjs +0 -629
  39. package/esm2020/lib/common-header-lib.module.mjs +0 -178
  40. package/esm2020/lib/common-header-lib.service.mjs +0 -200
  41. package/esm2020/lib/components/confirm-dialog/confirm-dialog.component.mjs +0 -49
  42. package/esm2020/lib/components/general-configuration/general-configuration.component.mjs +0 -399
  43. package/esm2020/lib/components/general-configuration/landingpg-config/landingpg-config.component.mjs +0 -124
  44. package/esm2020/lib/components/general-configuration/timezone-configuration/timezone-configuration.component.mjs +0 -137
  45. package/esm2020/lib/components/grid-pagination/grid-pagination.component.mjs +0 -38
  46. package/esm2020/lib/components/ng-translation/ng-translation.component.mjs +0 -82
  47. package/esm2020/lib/components/no-service-my-access-pg/no-service-my-access-pg.component.mjs +0 -19
  48. package/esm2020/lib/components/notification-sidebar/notification-sidebar.component.mjs +0 -40
  49. package/esm2020/lib/components/side-popup/side-popup.component.mjs +0 -34
  50. package/esm2020/lib/components/user-mailbox/user-mailbox.component.mjs +0 -168
  51. package/esm2020/lib/components/user-sidebar/user-sidebar.component.mjs +0 -274
  52. package/esm2020/lib/components/viewpassword-popup/viewpassword-popup.component.mjs +0 -197
  53. package/esm2020/lib/model/data_model.mjs +0 -229
  54. package/esm2020/lib/pipes/custome-dateformat.pipe.mjs +0 -27
  55. package/esm2020/lib/pipes/date-diff.pipe.mjs +0 -55
  56. package/esm2020/lib/pipes/slice-to-two.pipe.mjs +0 -35
  57. package/esm2020/lib/services/EncrypDecryp_RSA.service.mjs +0 -100
  58. package/esm2020/lib/services/async-passwordcheck.service.mjs +0 -70
  59. package/esm2020/lib/services/cookie-storage-manager.service.mjs +0 -78
  60. package/esm2020/lib/services/encrpdata.service.mjs +0 -55
  61. package/esm2020/lib/services/encrydecrydata.service.mjs +0 -205
  62. package/esm2020/lib/services/event.service.mjs +0 -132
  63. package/esm2020/lib/services/http/http-common.service.mjs +0 -245
  64. package/esm2020/lib/services/http/http-general-config.service.mjs +0 -84
  65. package/esm2020/lib/services/rest-login-form.service.mjs +0 -294
  66. package/esm2020/lib/services/rest-signalr.service.mjs +0 -104
  67. package/esm2020/lib/services/storage.service.mjs +0 -33
  68. package/esm2020/lib/services/toast-msg.service.mjs +0 -101
  69. package/esm2020/lib/services/vapt-validation.service.mjs +0 -31
  70. package/esm2020/public-api.mjs +0 -13
  71. package/fesm2015/common-header-lib.mjs +0 -4207
  72. package/fesm2015/common-header-lib.mjs.map +0 -1
  73. package/fesm2020/common-header-lib.mjs +0 -4187
  74. package/fesm2020/common-header-lib.mjs.map +0 -1
  75. package/lib/Validators/noSpaceAllowed.d.ts +0 -2
  76. package/lib/common-header-lib.component.d.ts +0 -149
  77. package/lib/common-header-lib.module.d.ts +0 -56
  78. package/lib/common-header-lib.service.d.ts +0 -25
  79. package/lib/components/confirm-dialog/confirm-dialog.component.d.ts +0 -13
  80. package/lib/components/general-configuration/general-configuration.component.d.ts +0 -86
  81. package/lib/components/general-configuration/landingpg-config/landingpg-config.component.d.ts +0 -37
  82. package/lib/components/general-configuration/timezone-configuration/timezone-configuration.component.d.ts +0 -38
  83. package/lib/components/grid-pagination/grid-pagination.component.d.ts +0 -20
  84. package/lib/components/ng-translation/ng-translation.component.d.ts +0 -21
  85. package/lib/components/no-service-my-access-pg/no-service-my-access-pg.component.d.ts +0 -8
  86. package/lib/components/notification-sidebar/notification-sidebar.component.d.ts +0 -16
  87. package/lib/components/side-popup/side-popup.component.d.ts +0 -14
  88. package/lib/components/user-mailbox/user-mailbox.component.d.ts +0 -40
  89. package/lib/components/user-sidebar/user-sidebar.component.d.ts +0 -62
  90. package/lib/components/viewpassword-popup/viewpassword-popup.component.d.ts +0 -47
  91. package/lib/model/data_model.d.ts +0 -185
  92. package/lib/pipes/custome-dateformat.pipe.d.ts +0 -8
  93. package/lib/pipes/date-diff.pipe.d.ts +0 -9
  94. package/lib/pipes/slice-to-two.pipe.d.ts +0 -7
  95. package/lib/services/EncrypDecryp_RSA.service.d.ts +0 -15
  96. package/lib/services/async-passwordcheck.service.d.ts +0 -18
  97. package/lib/services/cookie-storage-manager.service.d.ts +0 -16
  98. package/lib/services/encrpdata.service.d.ts +0 -12
  99. package/lib/services/encrydecrydata.service.d.ts +0 -33
  100. package/lib/services/event.service.d.ts +0 -30
  101. package/lib/services/http/http-common.service.d.ts +0 -40
  102. package/lib/services/http/http-general-config.service.d.ts +0 -15
  103. package/lib/services/rest-login-form.service.d.ts +0 -39
  104. package/lib/services/rest-signalr.service.d.ts +0 -23
  105. package/lib/services/storage.service.d.ts +0 -11
  106. package/lib/services/toast-msg.service.d.ts +0 -23
  107. package/lib/services/vapt-validation.service.d.ts +0 -7
  108. package/public-api.d.ts +0 -8
  109. package/src/assets/scss/_sidebar.scss +0 -257
  110. package/src/assets/scss/styles.scss +0 -577
@@ -1,4187 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Injectable, EventEmitter, Component, Input, Output, 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 * as i9 from 'primeng/api';
8
- import { ConfirmationService } from 'primeng/api';
9
- import * as i2 from 'primeng/confirmdialog';
10
- import { ConfirmDialogModule } from 'primeng/confirmdialog';
11
- import * as i10$2 from 'primeng/overlaypanel';
12
- import { OverlayPanel, OverlayPanelModule } from 'primeng/overlaypanel';
13
- import * as signalR from '@microsoft/signalr';
14
- import * as i1$1 from 'ngx-cookie-service';
15
- import * as i4 from '@ngx-translate/core';
16
- import { TranslateModule } from '@ngx-translate/core';
17
- import * as i1$2 from 'ngx-toastr';
18
- import * as i6 from '@angular/common';
19
- import { DatePipe, CommonModule } from '@angular/common';
20
- import * as i2$1 from '@angular/forms';
21
- import { FormGroup, Validators, ReactiveFormsModule } from '@angular/forms';
22
- import * as i8 from 'primeng/dropdown';
23
- import { DropdownModule } from 'primeng/dropdown';
24
- import * as i11 from 'primeng/badge';
25
- import { BadgeModule } from 'primeng/badge';
26
- import * as i10$1 from 'primeng/skeleton';
27
- import { SkeletonModule } from 'primeng/skeleton';
28
- import * as i3 from '@angular/router';
29
- import * as i1$3 from 'primeng/dynamicdialog';
30
- import { DialogService } from 'primeng/dynamicdialog';
31
- import * as CryptoJS from 'crypto-js';
32
- import JSEncrypt from 'jsencrypt';
33
- import * as bigintCryptoUtils from 'bigint-crypto-utils';
34
- import { decode } from '@msgpack/msgpack';
35
- import * as i13 from 'primeng/inputtext';
36
- import { InputTextModule } from 'primeng/inputtext';
37
- import * as i10 from 'primeng/button';
38
- import { ButtonModule } from 'primeng/button';
39
- import * as i9$1 from 'primeng/tooltip';
40
- import { TooltipModule } from 'primeng/tooltip';
41
- import * as i1$4 from 'primeng/dialog';
42
- import { DialogModule } from 'primeng/dialog';
43
- import * as i9$2 from 'primeng/table';
44
- import { TableModule } from 'primeng/table';
45
- import * as i1$5 from 'primeng/paginator';
46
- import { PaginatorModule } from 'primeng/paginator';
47
- import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
48
-
49
- class GlobalConstants {
50
- }
51
- GlobalConstants.COOKIEDELETEVENT = 'd';
52
- GlobalConstants.ALLCOOKIEDELET = '-100';
53
- GlobalConstants.TimeForEncToken = 30;
54
- GlobalConstants.AgGridPaginationSize = 50;
55
- GlobalConstants.reconcileServiceLimit = 100;
56
- GlobalConstants.applicationName = 'Converged IAM';
57
- GlobalConstants.publicKey = '';
58
- GlobalConstants.PAMPluginURL = 'http://localhost:55755/';
59
- GlobalConstants.APPName = 'workspace';
60
- GlobalConstants.PlugInDownloadURL = 'https://hfarcon.arconnet.com/helppageui/';
61
- GlobalConstants.cipluginversion = '';
62
- GlobalConstants.localInstalledCIPluginVersion = ''; // to store installed CI plugin version
63
- GlobalConstants.PCI_DSS_Standard = false;
64
- GlobalConstants.TOKENTIME = 30;
65
- GlobalConstants.LOGOUTIMER = 60;
66
- GlobalConstants.PAGEROW = 10;
67
- GlobalConstants.CONFIGCONNECTORS = false;
68
- GlobalConstants.USERLANGUAGES = [
69
- { langKey: 'en', langName: 'English' },
70
- { langKey: 'hi', langName: 'हिन्दी' },
71
- { langKey: 'mr', langName: 'मराठी' },
72
- { langKey: 'ar', langName: 'العربية' },
73
- { langKey: 'fr', langName: 'Français' },
74
- { langKey: 'es', langName: 'Español' },
75
- { langKey: 'de', langName: 'Deutsch' },
76
- { langKey: 'ja', langName: '日本語' },
77
- { langKey: 'ko', langName: '한국어' },
78
- { langKey: 'zh', langName: '中文' },
79
- { langKey: 'ru', langName: 'Русский' },
80
- { langKey: 'pt', langName: 'Português' },
81
- { langKey: 'it', langName: 'Italiano' },
82
- { langKey: 'nl', langName: 'Nederlands' },
83
- { langKey: 'tr', langName: 'Türkçe' },
84
- { langKey: 'sv', langName: 'Svenska' },
85
- { langKey: 'pl', langName: 'Polski' },
86
- { langKey: 'th', langName: 'ไทย' },
87
- { langKey: 'vi', langName: 'Tiếng Việt' },
88
- ];
89
- GlobalConstants.USERFILTEREDLANGUAGES = [];
90
- GlobalConstants.DEFAULTLANG = { langKey: 'en', langName: 'English' };
91
- GlobalConstants.DEFAULTLANGKEY = 'en';
92
- GlobalConstants.DEFAULT_IMGPATH = 'assets/images/';
93
- GlobalConstants.DEFAULT_BGIMG = `${GlobalConstants.DEFAULT_IMGPATH}login-bg/default_bg.svg`;
94
- GlobalConstants.DEFAULT_LOGO = `${GlobalConstants.DEFAULT_IMGPATH}default_logo.svg`;
95
- GlobalConstants.IMG_CODE = 'data:image/png;base64,';
96
- GlobalConstants.DYNAMIC_LOGO = '';
97
- GlobalConstants.DYNAMIC_BGIMG = '';
98
- GlobalConstants.APP_VERSION = '';
99
- class LoggedInUserInfo {
100
- static setPrivateKeyFromBigInts(arr) {
101
- this.privateKey = arr.map((b) => b.toString()).join(',');
102
- }
103
- }
104
- LoggedInUserInfo.domainName = null;
105
- LoggedInUserInfo.domainId = 0;
106
- class RoutePaths {
107
- }
108
- RoutePaths.LOGINPG_PATH = 'login';
109
- RoutePaths.WINDOW_AUTH = 'domainauth';
110
- RoutePaths.OTHER_METHODS_PATH = 'othermethods';
111
- RoutePaths.MY_ACCESS_PATH = 'my-access';
112
- RoutePaths.FORGOT_PASSWORD_PATH = 'forgotpassword';
113
- RoutePaths.AUTH_STATUS_PATH = 'auth-status';
114
- RoutePaths.LOGOUT_PATH = 'logout';
115
- RoutePaths.PAGE_NOT_FOUND_PATH = 'page-not-found';
116
- RoutePaths.INTERNAL_SERVER_ERROR_PATH = 'internal-server-error';
117
- RoutePaths.ERROR_PATH = 'error';
118
- RoutePaths.AUTH_LOADING = 'session-verify';
119
- class errorMsg {
120
- }
121
- errorMsg.NOASSET = `No assets have been assigned to the user in the selected LOB. Please select a different LOB.`;
122
- errorMsg.NORECENTASSET = `No recently accessed Asset found.`;
123
- 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'`;
124
- errorMsg.NOMAILFOUND = `We couldn't find any mails assigned to you`;
125
- errorMsg.SERVERDOWN = `Something Went Wrong, Please Try Again later`;
126
- errorMsg.NOCIPLUGIN = `Install the CI Plugin or Contact Administrator`;
127
- errorMsg.CIPLUGINVERSIONISSUE = `Kindly Install latest version of CI Plugin`;
128
- errorMsg.ADMINMSG = `Kindly Contact Administrator`;
129
- errorMsg.PLUGINMSG = `Kindly check below link for downloadables.`;
130
- errorMsg.PAMPLUGINBTN = `Install the CI Plugin or Contact Administrator`;
131
- errorMsg.USERNOTFOUND = `Invalid User Details`;
132
- errorMsg.TIMEZONESUCCESS = `Time Zone Updated SuccessFully`;
133
- errorMsg.TIMEZONERROR = `Time Zone Updated Couldn't Update`;
134
- errorMsg.LOGOUTERROR = 'Logout Attempt Failed';
135
- errorMsg.ASSETSTATUS = 'Asset Under Maintenance';
136
- errorMsg.REFERENCEPOPUPTITLE = 'Reference Case ID for Accessing Asset';
137
- errorMsg.DICREDENTIALINFO = 'Digital Identity Credentials Updated Successfully';
138
- errorMsg.DICREDENTIALERROR = "Digital Identity Credentials Couldn't updated";
139
- errorMsg.PATHSUCCESS = 'Preference Path Updated SuccessFully';
140
- errorMsg.PATHERROR = "Preference Path Couldn't Update";
141
- errorMsg.USERCREDENIALERROR = 'Configure Credentials';
142
- errorMsg.CREDENIALERROR = 'Kindly Configure Credentials';
143
- errorMsg.ADMINCREDENIALERROR = 'The credentials have yet to be configured by the Admin';
144
- errorMsg.COMMONError = 'Something Went Wrong !';
145
- errorMsg.NODIGITALIDENTITES = 'There are no digital identities assigned. Kindly contact administrator.';
146
- errorMsg.SEARCHTEXT = 'Search Results';
147
- errorMsg.MFACONFIGUREERROR = 'MFA is not configured for the user, Please contact the system administrator';
148
- errorMsg.SESSIONIDERROR = 'Session Service ID not found';
149
- errorMsg.CHROMEEXTENSIONERROR = 'Kindly Install the CI Extension or Contact Administrator';
150
- errorMsg.WINDOW_DOMAIN_LOGINERR = 'Please wait, Domain Authentication is in progress for your login';
151
- errorMsg.LANDINGPGSUCCESS = `Landing Page Configured SuccessFully`;
152
- errorMsg.LANDINGPGERROR = `Landing Page Configuration Couldn't Update`;
153
- errorMsg.SCRIPTERROR = `Unexpected Script Detected`;
154
- class COOKIECONSTANT {
155
- }
156
- COOKIECONSTANT.LOBNAME = 'lobdata';
157
- COOKIECONSTANT.DOMAINAME = 'domainname';
158
- COOKIECONSTANT.DOMAINID = 'domainid';
159
- COOKIECONSTANT.USERDETAILS = 'UserDetail';
160
- COOKIECONSTANT.SESSIONID = 'userSessionId';
161
- COOKIECONSTANT.USERNAME = 'username';
162
- COOKIECONSTANT.USERID = 'userId';
163
- COOKIECONSTANT._AT = '_AT';
164
- COOKIECONSTANT._RT = '_RT';
165
- COOKIECONSTANT.USERDISPLAYNAME = 'userDisplayName';
166
- COOKIECONSTANT.ENCRYPTEDKEY = 'EncryptedKey';
167
- COOKIECONSTANT.MFASTATUS = 'MFAStatus';
168
- COOKIECONSTANT.EVENTNAME = 'Event';
169
- COOKIECONSTANT.MACHINEDETAILS = 'machinedetails';
170
- COOKIECONSTANT.COOKIEDELETEVENT = 'd';
171
- COOKIECONSTANT.COOKIECREATEEVENT = 'c';
172
- COOKIECONSTANT.COOKIEUPDATEEVENT = 'c';
173
- COOKIECONSTANT.ALLCOOKIEDELET = '-100';
174
- COOKIECONSTANT.NEWUSER = '003-NU-GEC';
175
- COOKIECONSTANT.UNLOCKACC = 'Unlock';
176
- COOKIECONSTANT.ERRORCODE = '001-SAC-GEC';
177
- COOKIECONSTANT.PUBLICCODE = '001-PUB-GEC';
178
- COOKIECONSTANT.USERLANG = 'lang';
179
- COOKIECONSTANT.MFATIMEOUT = 180000; //3 mins
180
- COOKIECONSTANT.MFASTATUSCHECK = '_ssmf';
181
- COOKIECONSTANT.MFASTATUSCHECKFAIL = '_ssmff';
182
- COOKIECONSTANT.MFACLI = '_SSIDMFACLI';
183
- COOKIECONSTANT.WINDOWAUTH_HEADER = 'Authentication-Window';
184
- COOKIECONSTANT.SIGNALR_INDEX = '002-SR-NO';
185
- COOKIECONSTANT.ONETIME_TOKEN = 'state';
186
- COOKIECONSTANT.THICKCLIENT_KEY = 'APP_VER';
187
- const EXCLUDED_URLS = [
188
- 'http://localhost:55755/',
189
- 'workflow/api/Workflow/Workflow/GetWorkFlowTicketCount',
190
- 'workflow/api/Workflow/Workflow/GetWorkFlowTicketCountEventWise',
191
- 'xaccess/api/SecureAccess/GetBackgroundImage',
192
- 'xaccess/api/SecureAccess/UpdateLogoutTimer',
193
- ];
194
- class MFAEvent {
195
- }
196
- MFAEvent.ForgotPwd = 1;
197
- MFAEvent.unlockAcc = 2;
198
- MFAEvent.Login = 3;
199
- class BrowserName {
200
- }
201
- BrowserName.Chrome = 'Chrome';
202
- BrowserName.Firefox = 'Firefox';
203
- BrowserName.Edge = 'Edge';
204
- BrowserName.Safari = 'Safari';
205
- BrowserName.Opera = 'Opera';
206
- BrowserName.InterNetExp = 'Internet Explorer';
207
- // GetLocalIPAddress
208
- // GetLocalMACAddress
209
- // GetProcessorID
210
- // GetBIOSSerialID
211
- // GetDomainName
212
- // GetPAMPluginInstalledVersion
213
- //GetLocalHostName
214
- class PAMParameter {
215
- constructor() {
216
- this.ipAddress = '';
217
- this.macAddress = '';
218
- this.processorID = '';
219
- this.bIOSSerialID = '';
220
- this.domainName = '';
221
- this.hostname = '';
222
- this.pAMPluginInstalledVersion = '';
223
- }
224
- }
225
- // "Status : for user status
226
- // Active = 0,
227
- // NewUserCreated = 1,
228
- // ResetbyAdmin = 2,
229
- // LockedOut = 5,
230
- // Dormant = 4,
231
- // Disabled = 3
232
- // Suspended = 6,
233
- // Sabbatical = 7 ,
234
- // ACMO CLI Priviledge not assigned=9"
235
- // export const loginStatusMsg = {
236
- // 0: {
237
- // status: 'Active',
238
- // msg: 'Successfull login',
239
- // },
240
- // 1: {
241
- // status: 'NewUserCreated',
242
- // msg: 'New Created User',
243
- // },
244
- // 2: {
245
- // status: 'ResetbyAdmin',
246
- // msg: 'Password Is Reset By Admin',
247
- // },
248
- // 3: {
249
- // status: 'Disabled',
250
- // msg: 'User is Disabled',
251
- // },
252
- // 4: {
253
- // status: 'Dormant',
254
- // msg: 'User is Dormant',
255
- // },
256
- // 5: {
257
- // status: 'LockedOut',
258
- // msg: 'User is Locked Out',
259
- // },
260
- // 6: {
261
- // status: 'Suspended',
262
- // msg: 'User is Suspended',
263
- // },
264
- // 7: {
265
- // status: 'Sabbatical',
266
- // msg: 'User is Sabbatical',
267
- // },
268
- // 9: {
269
- // status: 'ACMO CLI Priviledge not assigned',
270
- // msg: '',
271
- // },
272
- // 11: {
273
- // status: 'Invalid User',
274
- // msg: 'Invalid User Name OR Password',
275
- // },
276
- // };
277
-
278
- class CommonHeaderLibService {
279
- constructor(http) {
280
- this.http = http;
281
- this.apiUrl = '';
282
- }
283
- getGlobalTimeZone() {
284
- return this.http
285
- .get(GlobalConstants.baseURL + 'xaccess/api/SecureAccess/GetSystemTimeZones')
286
- .pipe(map((response) => {
287
- if (response && response['success']) {
288
- return response['result'];
289
- }
290
- else {
291
- return [];
292
- }
293
- }));
294
- }
295
- getLoggedInUserDetails(url) {
296
- return this.http
297
- .post(url + 'xaccess/api/SecureAccess/GetUsersDetailsById', {})
298
- .pipe(map((response) => {
299
- // return response['result'];
300
- return response;
301
- }));
302
- }
303
- getLOBList(url) {
304
- return this.http.get(url + 'meta/api/metadata/Lobs').pipe(map((response) => {
305
- let result = [];
306
- if (response['statusCode'] === 200) {
307
- // let result = response['result'];
308
- let result = response;
309
- return result;
310
- }
311
- }));
312
- }
313
- getUserAssignedApps(url) {
314
- return this.http
315
- .post(url + 'xaccess/api/SecureAccess/GetUserPriviledgesList', {})
316
- .pipe(map((response) => {
317
- if (response && response['success']) {
318
- return response['result'].filter((x) => x.appCode != null
319
- // (x) => x.appCode !== 'APP026' && x.appCode != null
320
- );
321
- }
322
- else {
323
- return [];
324
- }
325
- }));
326
- }
327
- getUnreadUserEmailsCount(url) {
328
- return this.http.get(url + 'xservice/api/CIInfraAsset/MailBoxCount').pipe(map((response) => {
329
- if (response && response['success'] && response['result'] > 0) {
330
- return response['result'];
331
- }
332
- else {
333
- return 0;
334
- }
335
- }));
336
- }
337
- getUserAssignedMails(userDetails, url) {
338
- return this.http
339
- .post(url + 'xservice/api/CIInfraAsset/MailBox', userDetails)
340
- .pipe(map((response) => {
341
- if (response && response['success']) {
342
- return response['result'];
343
- }
344
- else {
345
- return [];
346
- }
347
- }));
348
- }
349
- getWorkFlowTicketEventwiseCount(userDetails, url) {
350
- return this.http
351
- .post(url + 'workflow/api/Workflow/Workflow/GetWorkFlowTicketCountEventWise', userDetails)
352
- .pipe(map((response) => {
353
- if (response && response[0]['Success']) {
354
- return response[0]['Data'];
355
- }
356
- else {
357
- return [];
358
- }
359
- }), catchError((e) => throwError(this.errorHandler(e))));
360
- }
361
- errorHandler(e) {
362
- throw new Error('Method not implemented.');
363
- }
364
- getUserPreferredAssetTypeDetails(url) {
365
- return this.http
366
- .get(url + 'xaccess/api/PagePreference/GetAssetTypeDetails')
367
- .pipe(map((response) => {
368
- if (response && response['success']) {
369
- return response['result'];
370
- }
371
- else {
372
- return [];
373
- }
374
- }), catchError((e) => throwError(this.errorHandler(e))));
375
- }
376
- getUserPreferredAssetName(payload, url) {
377
- return this.http
378
- .post(url + 'xaccess/api/PagePreference/GetAssetName', payload)
379
- .pipe(map((response) => {
380
- if (response && response['success']) {
381
- return response['result'];
382
- }
383
- else {
384
- return [];
385
- }
386
- }), catchError((e) => throwError(this.errorHandler(e))));
387
- }
388
- getServiceNameByAssetTypeEvent(payload, url) {
389
- return this.http
390
- .post(url + 'xaccess/api/PagePreference/GetServiceDetails', payload)
391
- .pipe(map((response) => {
392
- if (response && response['success']) {
393
- return response['result'];
394
- }
395
- else {
396
- return [];
397
- }
398
- }), catchError((e) => throwError(this.errorHandler(e))));
399
- }
400
- getPreferencePathDetails(payload, url) {
401
- return this.http
402
- .post(url + 'xaccess/api/PagePreference/CurrentPreferencepathDetails', payload)
403
- .pipe(map((response) => {
404
- if (response && response['success']) {
405
- return response['result'];
406
- }
407
- else {
408
- return {};
409
- }
410
- }), catchError((e) => throwError(this.errorHandler(e))));
411
- }
412
- updatePreferencePath(payload, url) {
413
- return this.http
414
- .post(url + 'xaccess/api/PagePreference/UpdatePreferencePath', payload)
415
- .pipe(map((response) => {
416
- if (response && response['success']) {
417
- return true;
418
- }
419
- else {
420
- return false;
421
- }
422
- }), catchError((e) => throwError(this.errorHandler(e))));
423
- }
424
- updateUserTimeZone(tz, url) {
425
- const params = new HttpParams().set('timezone', tz);
426
- return this.http
427
- .post(url + 'xaccess/api/SecureAccess/UpdateTimeZone', {}, { params: params })
428
- .pipe(map((response) => {
429
- if (response && response['success']) {
430
- return response['result'];
431
- }
432
- else {
433
- return '';
434
- }
435
- }), catchError((e) => throwError(this.errorHandler(e))));
436
- }
437
- setLandingPgPreference(moduleId, url) {
438
- return this.http
439
- .post(url + 'xaccess/api/SecureAccess/SetLandingPage', {
440
- moduleId: moduleId,
441
- })
442
- .pipe(map((response) => {
443
- if (response && response['success']) {
444
- return response['result'];
445
- }
446
- else {
447
- return '';
448
- }
449
- }), catchError((e) => throwError(this.errorHandler(e))));
450
- }
451
- getInitiateUserLogout() {
452
- return this.http.post(GlobalConstants.baseURL + 'xaccess/api/SecureAccess/logout', {}).pipe(map((response) => {
453
- if (response && response['success']) {
454
- return response['result'];
455
- }
456
- else {
457
- return {};
458
- }
459
- }), catchError((e) => throwError(this.errorHandler(e))));
460
- }
461
- }
462
- CommonHeaderLibService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CommonHeaderLibService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
463
- CommonHeaderLibService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CommonHeaderLibService, providedIn: 'root' });
464
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CommonHeaderLibService, decorators: [{
465
- type: Injectable,
466
- args: [{
467
- providedIn: 'root',
468
- }]
469
- }], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
470
-
471
- class ConfirmDialogComponent {
472
- constructor(confirmationService) {
473
- this.confirmationService = confirmationService;
474
- this.header = '';
475
- this.message = '';
476
- this.result = new EventEmitter();
477
- }
478
- openConfirmModal(event) {
479
- this.confirmationService.confirm({
480
- target: event.target,
481
- message: this.message,
482
- header: this.header,
483
- closeOnEscape: true,
484
- // icon: 'pi pi-exclamation-triangle',
485
- // ✔ PrimeNG 14 button config
486
- acceptLabel: 'Yes',
487
- rejectLabel: 'No',
488
- acceptButtonStyleClass: 'p-button-primary',
489
- rejectButtonStyleClass: 'p-button-secondary p-button-outlined',
490
- accept: () => {
491
- this.result.emit(true);
492
- },
493
- reject: () => {
494
- this.result.emit(false);
495
- },
496
- });
497
- }
498
- }
499
- ConfirmDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ConfirmDialogComponent, deps: [{ token: i9.ConfirmationService }], target: i0.ɵɵFactoryTarget.Component });
500
- 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.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"] }] });
501
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ConfirmDialogComponent, decorators: [{
502
- type: Component,
503
- 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" }]
504
- }], ctorParameters: function () { return [{ type: i9.ConfirmationService }]; }, propDecorators: { header: [{
505
- type: Input,
506
- args: ['header']
507
- }], message: [{
508
- type: Input,
509
- args: ['message']
510
- }], result: [{
511
- type: Output,
512
- args: ['result']
513
- }] } });
514
-
515
- class StorageService {
516
- constructor() { }
517
- saveData(key, value) {
518
- localStorage.setItem(key, value);
519
- }
520
- getData(key) {
521
- return localStorage.getItem(key);
522
- }
523
- removeData(key) {
524
- localStorage.removeItem(key);
525
- }
526
- clearData() {
527
- localStorage.clear();
528
- }
529
- checkData(key) {
530
- const data = localStorage.getItem(key);
531
- if (data) {
532
- return true;
533
- }
534
- return false;
535
- }
536
- }
537
- StorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
538
- StorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StorageService, providedIn: 'root' });
539
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StorageService, decorators: [{
540
- type: Injectable,
541
- args: [{
542
- providedIn: 'root',
543
- }]
544
- }], ctorParameters: function () { return []; } });
545
-
546
- class EncrpdataService {
547
- constructor() {
548
- // private publicKey: string =
549
- // '10234186980819816859565723471972110581900468266056266385607156653250136308259057583501560583440295112186917105135474383769292631464432088817050933329522683,65537';
550
- this.privateKey = "";
551
- }
552
- getASCIIValue(text) {
553
- let charCodeArr = [];
554
- for (let i = 0; i < text.length; i++) {
555
- let code = text.charCodeAt(i);
556
- charCodeArr.push(BigInt(code));
557
- }
558
- return charCodeArr;
559
- }
560
- getModuleValue(arr, num1, num2) {
561
- let numArr = [];
562
- for (let i = 0; i < arr.length; i++) {
563
- let code = arr[i] ** num2 % num1;
564
- numArr.push(code);
565
- }
566
- return numArr;
567
- }
568
- getEncrpytedData(text) {
569
- this.privateKey = LoggedInUserInfo.privateKey;
570
- let key = this.privateKey.split(',');
571
- const num1 = BigInt(key[0]);
572
- const num2 = BigInt(key[1]);
573
- //1. Convert string to phiN
574
- let asciiValue = this.getASCIIValue(text);
575
- //2. Get Mod of All Value
576
- let ModValue = this.getModuleValue(asciiValue, num1, num2);
577
- //3. Convert Arr to String
578
- // let encodedText = ModValue.join('-');
579
- const encodedText = ModValue.map(b => b.toString()).join('-');
580
- return encodedText;
581
- }
582
- encodeToBase64(text) {
583
- return btoa(text);
584
- }
585
- decodeToBase64(text) {
586
- return atob(text);
587
- }
588
- }
589
- EncrpdataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: EncrpdataService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
590
- EncrpdataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: EncrpdataService, providedIn: 'root' });
591
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: EncrpdataService, decorators: [{
592
- type: Injectable,
593
- args: [{
594
- providedIn: 'root',
595
- }]
596
- }], ctorParameters: function () { return []; } });
597
-
598
- // import { CookieStorageManagerService } from '../cookie-storage-manager.service';
599
- class RestSignalRService {
600
- constructor(_localStorage, _encrpdataService) {
601
- this._localStorage = _localStorage;
602
- this._encrpdataService = _encrpdataService;
603
- this.eventMsg = new BehaviorSubject({});
604
- this.AuthToken = '';
605
- this.hubURLS = [];
606
- //Method: Established the Connection With SignalR to get RealTime Data
607
- this.establishedConnection = async () => {
608
- this.hubConnection = new signalR.HubConnectionBuilder()
609
- .withUrl(`${GlobalConstants.signalRURL}/chatHub`, {
610
- skipNegotiation: true,
611
- transport: signalR.HttpTransportType.WebSockets,
612
- headers: { Authorization: `Bearer ${this.AuthToken}` },
613
- })
614
- .build();
615
- try {
616
- await this.hubConnection.start();
617
- //* SignalR connection established successfully
618
- this.addMessageListener();
619
- }
620
- catch (error) {
621
- console.error('Error establishing SignalR connection:', error);
622
- throw error;
623
- }
624
- };
625
- }
626
- async initializeSignalRConnection() {
627
- if (!GlobalConstants.signalRURL) {
628
- throw new Error('No hub URLs provided');
629
- }
630
- this.hubURLS = GlobalConstants.signalRURL
631
- ? GlobalConstants.signalRURL.split(',')
632
- : [];
633
- if (this.hubURLS.length === 1) {
634
- GlobalConstants.signalRURL = this.hubURLS[0];
635
- await this.establishedConnection();
636
- return;
637
- }
638
- let lastUsedIndex = this.getLastUsedIndex();
639
- for (let i = 0; i < this.hubURLS.length; i++) {
640
- const index = (lastUsedIndex + i) % this.hubURLS.length;
641
- GlobalConstants.signalRURL = this.hubURLS[index];
642
- try {
643
- await this.establishedConnection();
644
- this.setLastUsedIndex(index + 1); // Update for next round
645
- break; // Exit the loop if connection is successful
646
- }
647
- catch (error) {
648
- console.error(`Error connecting to hub ${this.hubURLS[index]}:`, error);
649
- }
650
- }
651
- if (!this.hubConnection) {
652
- throw new Error('All SignalR connections failed');
653
- }
654
- }
655
- addMessageListener() {
656
- this.hubConnection.on('ReceiveMessage', (user, data) => {
657
- data = JSON.parse(data);
658
- this.emitEventMsg(data);
659
- });
660
- }
661
- emitEventMsg(data) {
662
- this.eventMsg.next(data);
663
- }
664
- listenerEventMsg() {
665
- return this.eventMsg.asObservable();
666
- }
667
- getLastUsedIndexv1() {
668
- const lastIndex = this._localStorage.getData(COOKIECONSTANT.SIGNALR_INDEX);
669
- return lastIndex
670
- ? Number(this._encrpdataService.decodeToBase64(lastIndex)) || 0
671
- : 0;
672
- }
673
- getLastUsedIndex() {
674
- const lastIndex = this._localStorage.getData(COOKIECONSTANT.SIGNALR_INDEX);
675
- return lastIndex
676
- ? Number(this._encrpdataService.decodeToBase64(lastIndex)) || 0
677
- : 0;
678
- }
679
- setLastUsedIndex(index) {
680
- const lastIndex = this._encrpdataService.encodeToBase64(index.toString());
681
- this._localStorage.saveData(COOKIECONSTANT.SIGNALR_INDEX, lastIndex);
682
- }
683
- }
684
- 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 });
685
- RestSignalRService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: RestSignalRService, providedIn: 'root' });
686
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: RestSignalRService, decorators: [{
687
- type: Injectable,
688
- args: [{
689
- providedIn: 'root',
690
- }]
691
- }], ctorParameters: function () { return [{ type: StorageService }, { type: EncrpdataService }]; } });
692
-
693
- class EventService {
694
- constructor(_cookie) {
695
- this._cookie = _cookie;
696
- this.getUserLOB = new BehaviorSubject({});
697
- this.getAssetType = new BehaviorSubject({});
698
- this.refreshSidebar = new BehaviorSubject({});
699
- this.filterRecords = new Subject();
700
- this.AuthMethods = new BehaviorSubject([]);
701
- this.refreshEmails = new BehaviorSubject({});
702
- this.timeZone = new BehaviorSubject({});
703
- }
704
- emitLOBEvent(data) {
705
- this.getUserLOB.next(data);
706
- }
707
- listenerLOBEvent() {
708
- return this.getUserLOB.asObservable();
709
- }
710
- emitAssetTypeEvent(data) {
711
- this.getAssetType.next(data);
712
- }
713
- listenerAssetTypeEvent() {
714
- return this.getAssetType.asObservable();
715
- }
716
- emitrefreshSidebar(data) {
717
- this.refreshSidebar.next(data);
718
- }
719
- listenerrefreshSidebar() {
720
- return this.refreshSidebar.asObservable();
721
- }
722
- emitFilterRecords(data) {
723
- this.filterRecords.next(data);
724
- }
725
- listenerFilterEvent() {
726
- return this.filterRecords.asObservable();
727
- }
728
- emitAuthMethod(data) {
729
- this.AuthMethods.next(data);
730
- }
731
- listenerAuthMethod() {
732
- return this.AuthMethods.asObservable();
733
- }
734
- emitUserEmail(data) {
735
- this.refreshEmails.next(data);
736
- }
737
- listenerUserEmail() {
738
- return this.refreshEmails.asObservable();
739
- }
740
- emitTimezone(data) {
741
- this.timeZone.next(data);
742
- }
743
- listenerTimezone() {
744
- return this.timeZone.asObservable();
745
- }
746
- // checkMFAv1(mfaUrl: string) {
747
- // return new Promise((resolve, reject) => {
748
- // const params = `scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no,
749
- // width=600,height=500,left=350,top=150`;
750
- // const mfaWindow = open(mfaUrl, 'CI Authentication', params);
751
- // //setInterval to check cookie every second
752
- // const interval = setInterval(() => {
753
- // if (this._cookie.get(COOKIECONSTANT.MFASTATUSCHECK)) {
754
- // clearInterval(interval);
755
- // // clearTimeout(timeout);
756
- // mfaWindow.close();
757
- // resolve(true);
758
- // }
759
- // else if (this._cookie.get(COOKIECONSTANT.MFASTATUSCHECKFAIL)) {
760
- // clearInterval(interval);
761
- // mfaWindow.close();
762
- // reject(false);
763
- // }
764
- // }, 1000);
765
- // //when use close window manually
766
- // let flag = false;
767
- // mfaWindow.onunload = () => {
768
- // if (flag) {
769
- // clearInterval(interval);
770
- // // clearTimeout(timeout);
771
- // reject(false);
772
- // }
773
- // flag = true;
774
- // }
775
- // })
776
- // }
777
- checkMFA(mfaUrl) {
778
- return new Promise((resolve, reject) => {
779
- const params = `scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no,
780
- width=600,height=500,left=350,top=150`;
781
- const mfaWindow = window.open(mfaUrl, 'CI Authentication', params);
782
- if (!mfaWindow) {
783
- reject(new Error('Failed to open MFA window. Popup blocked?'));
784
- return;
785
- }
786
- // Polling interval to check cookie every second
787
- const interval = setInterval(() => {
788
- if (this._cookie.get(COOKIECONSTANT.MFASTATUSCHECK)) {
789
- clearInterval(interval);
790
- mfaWindow.close();
791
- resolve(true);
792
- }
793
- else if (this._cookie.get(COOKIECONSTANT.MFASTATUSCHECKFAIL)) {
794
- clearInterval(interval);
795
- mfaWindow.close();
796
- reject(false);
797
- }
798
- }, 1000);
799
- // Detect manual close of popup window
800
- const checkPopupClosed = setInterval(() => {
801
- if (mfaWindow.closed) {
802
- clearInterval(interval);
803
- clearInterval(checkPopupClosed);
804
- reject(false);
805
- }
806
- }, 500);
807
- });
808
- }
809
- }
810
- 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 });
811
- EventService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: EventService, providedIn: 'root' });
812
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: EventService, decorators: [{
813
- type: Injectable,
814
- args: [{
815
- providedIn: 'root',
816
- }]
817
- }], ctorParameters: function () { return [{ type: i1$1.CookieService }]; } });
818
-
819
- class HttpCommonService {
820
- constructor(http) {
821
- this.http = http;
822
- this.xAccessAPIUrl = '/xaccess/api/SecureAccess/';
823
- this.metaAPIUrl = '/meta/api/metadata/';
824
- this.metaAPIUrl1 = '/meta/api/Metadata/';
825
- this.xServiceAPIUrl = '/xservice/api/CIInfraAsset/';
826
- this.workflowAPIUrl = '/workflow/api/Workflow/Workflow/';
827
- }
828
- getLogo() {
829
- return this.http
830
- .get(`${GlobalConstants.baseURL}${this.xAccessAPIUrl}BackgroundLogo`)
831
- .pipe(map$1((response) => {
832
- return response['result'];
833
- }));
834
- }
835
- getGlobalTimeZone() {
836
- return this.http
837
- .get(`${GlobalConstants.baseURL}${this.xAccessAPIUrl}GetSystemTimeZones`)
838
- .pipe(map$1((response) => {
839
- if (response && response['success']) {
840
- return response['result'];
841
- }
842
- else {
843
- return [];
844
- }
845
- }));
846
- }
847
- updateUserTimeZone(tz) {
848
- const params = new HttpParams().set('timezone', tz);
849
- return this.http
850
- .post(`${GlobalConstants.baseURL}${this.xAccessAPIUrl}UpdateTimeZone`, {}, { params: params })
851
- .pipe(map$1((response) => {
852
- if (response && response['success']) {
853
- return response['result'];
854
- }
855
- else {
856
- return '';
857
- }
858
- }));
859
- }
860
- getLOBList() {
861
- return this.http
862
- .get(`${GlobalConstants.baseURL}${this.metaAPIUrl}Lobs`)
863
- .pipe(map$1((response) => {
864
- return response;
865
- }));
866
- }
867
- getUnreadUserEmailsCount() {
868
- return this.http
869
- .get(`${GlobalConstants.baseURL}${this.xServiceAPIUrl}MailBoxCount`)
870
- .pipe(map$1((response) => {
871
- if (response && response['success'] && response['result'] > 0) {
872
- return response['result'];
873
- }
874
- else {
875
- return 0;
876
- }
877
- }));
878
- }
879
- getUserAssignedMails(userDetails) {
880
- return this.http
881
- .post(`${GlobalConstants.baseURL}${this.xServiceAPIUrl}MailBox`, userDetails)
882
- .pipe(map$1((response) => {
883
- if (response && response['success']) {
884
- return response['result'];
885
- }
886
- else {
887
- return [];
888
- }
889
- }));
890
- }
891
- /*Method : GET
892
- Action : Get Application Password */
893
- getAccessToViewServicePassword(mailDetails) {
894
- return this.http
895
- .post(`${GlobalConstants.baseURL}${this.xServiceAPIUrl}OpenServicePwd`, mailDetails)
896
- .pipe(map$1((response) => {
897
- if (response && response['success']) {
898
- response['result'][1] = response['message'];
899
- return response['result'];
900
- }
901
- else {
902
- return [];
903
- }
904
- }), catchError$1((e) => throwError(this.errorHandler(e))));
905
- }
906
- getUserAssignedApps() {
907
- return this.http
908
- .post(`${GlobalConstants.baseURL}${this.xAccessAPIUrl}GetUserPriviledgesList`, {})
909
- .pipe(map$1((response) => {
910
- if (response && response['success']) {
911
- return response['result'].filter((x) => x.appCode != null);
912
- }
913
- else {
914
- return [];
915
- }
916
- }));
917
- }
918
- getLoggedInUserDetails() {
919
- return this.http
920
- .post(`${GlobalConstants.baseURL}${this.xAccessAPIUrl}GetUsersDetailsById`, {})
921
- .pipe(map$1((response) => {
922
- return response;
923
- }));
924
- }
925
- //Method: Used to Total Notification count of user
926
- //Action: It used get all notification count
927
- getWorkFlowTicketCount(userDetails) {
928
- return this.http
929
- .post(`${GlobalConstants.baseURL}${this.workflowAPIUrl}GetWorkFlowTicketCount`, userDetails)
930
- .pipe(map$1((response) => {
931
- if (response && response[0]['Success']) {
932
- if (response[0]['Data'][0]) {
933
- return response[0]['Data'][0];
934
- }
935
- else {
936
- return {};
937
- }
938
- }
939
- else {
940
- return {};
941
- }
942
- }), catchError$1((e) => throwError(this.errorHandler(e))));
943
- }
944
- getWorkFlowTicketEventwiseCount(userDetails) {
945
- return this.http
946
- .post(`${GlobalConstants.baseURL}${this.workflowAPIUrl}GetWorkFlowTicketCountEventWise`, userDetails)
947
- .pipe(map$1((response) => {
948
- if (response && response[0]['Success']) {
949
- return response[0]['Data'];
950
- // return [];
951
- }
952
- else {
953
- return [];
954
- }
955
- }));
956
- }
957
- setLandingPgPreference(moduleId) {
958
- return this.http
959
- .post(`${GlobalConstants.baseURL}${this.xAccessAPIUrl}SetLandingPage`, {
960
- moduleId: moduleId,
961
- })
962
- .pipe(map$1((response) => {
963
- if (response && response['success']) {
964
- return response['result'];
965
- }
966
- else {
967
- return '';
968
- }
969
- }));
970
- }
971
- /*Method : POST
972
- Action :Will validate User entered PWD as
973
- per Password Policy Set
974
- */
975
- validatePassword(userDetails) {
976
- return this.http
977
- .post(`${GlobalConstants.baseURL}${this.xAccessAPIUrl}ValidatePassword`, userDetails)
978
- .pipe(catchError$1((e) => throwError(this.errorHandler(e))));
979
- }
980
- /*Method : POST
981
- Action : RESET Password for First Time User
982
- */
983
- setNewpassword(loggedInUserDetails) {
984
- return this.http
985
- .post(`${GlobalConstants.baseURL}${this.xAccessAPIUrl}ChangeUserArcXwdManually`, loggedInUserDetails)
986
- .pipe(catchError$1((e) => throwError(this.errorHandler(e))));
987
- }
988
- errorHandler(e) {
989
- throw new Error('Method not implemented.');
990
- }
991
- /*Method : GET
992
- Action : Get hiding the password for a service. */
993
- getProtectedServiceCredentials(mailDetails) {
994
- return this.http
995
- .post(`${GlobalConstants.baseURL}${this.xServiceAPIUrl}GetServicePasswordClose`, mailDetails)
996
- .pipe(map$1((response) => {
997
- if (response && response['success']) {
998
- return response['result'];
999
- }
1000
- else {
1001
- return false;
1002
- }
1003
- }), catchError$1((e) => throwError(this.errorHandler(e))));
1004
- }
1005
- /*Method : POST
1006
- Parameter : subID , id
1007
- Action : Get configuration ID based on to show hide DOMAIN dropdown
1008
- */
1009
- getglobalConfigDetails(subid, id) {
1010
- return this.http
1011
- .post(`${GlobalConstants.baseURL}${this.metaAPIUrl1}GetArcosConfigsValues?subId=${subid}`, id)
1012
- .pipe(map$1((response) => {
1013
- if (response['statusCode'] === 200) {
1014
- let result = response['result'];
1015
- return result;
1016
- }
1017
- }), catchError$1((e) => throwError(this.errorHandler(e))));
1018
- }
1019
- getInitiateUserLogout() {
1020
- return this.http
1021
- .post(`${GlobalConstants.baseURL}${this.xAccessAPIUrl}logout`, {})
1022
- .pipe(map$1((response) => {
1023
- if (response && response['success']) {
1024
- return response['result'];
1025
- }
1026
- else {
1027
- return {};
1028
- }
1029
- }), catchError$1((e) => throwError(this.errorHandler(e))));
1030
- }
1031
- //Method: Open the OAuth connection window for the given application
1032
- openAppConnection(appCode) {
1033
- const url = GlobalConstants.baseURL + '/xauth/api/Token/AppOAuth?appcode=' + appCode;
1034
- window.open(url, '_blank');
1035
- }
1036
- //Method: Validate MFA / SAML configuration before establishing the APP032 connection
1037
- checkMFAConfiguration() {
1038
- return this.http
1039
- .get(`${GlobalConstants.baseURL}/xaccess/api/Token/getMfaSamlConfig`)
1040
- .pipe(catchError$1((e) => throwError(this.errorHandler(e))));
1041
- }
1042
- //Method: Validate internal SAML app configuration before establishing the connection (e.g. APP033)
1043
- getInternalAppConfig(appCode) {
1044
- return this.http
1045
- .get(`${GlobalConstants.baseURL}/xaccess/api/Token/getInternalAppConfig?appCode=${appCode}`)
1046
- .pipe(catchError$1((e) => throwError(this.errorHandler(e))));
1047
- }
1048
- }
1049
- HttpCommonService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HttpCommonService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1050
- HttpCommonService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HttpCommonService, providedIn: 'root' });
1051
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HttpCommonService, decorators: [{
1052
- type: Injectable,
1053
- args: [{
1054
- providedIn: 'root',
1055
- }]
1056
- }], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
1057
-
1058
- class ToastMsgService {
1059
- constructor(toastr, translateService) {
1060
- this.toastr = toastr;
1061
- this.translateService = translateService;
1062
- this.toastType_sucess = 'toast-success';
1063
- this.toastType_info = 'toast-info';
1064
- this.toastType_error = 'toast-error';
1065
- this.toastType_warning = 'toast-warn';
1066
- }
1067
- success(textMessage, title) {
1068
- const heading = title || this.translateService.instant('Generic_lib.Successful');
1069
- if (this.isToastMsgActive()) {
1070
- if (this.checkActiveToastMessagesByType(this.toastType_sucess)) {
1071
- this.updateActiveToastMessage(heading, textMessage, this.toastType_sucess);
1072
- }
1073
- else {
1074
- this.toastr.success(textMessage, heading);
1075
- }
1076
- }
1077
- else {
1078
- this.toastr.success(textMessage, heading);
1079
- }
1080
- }
1081
- error(textMessage, title) {
1082
- const heading = title || this.translateService.instant('Generic_lib.Error');
1083
- if (this.isToastMsgActive()) {
1084
- if (this.checkActiveToastMessagesByType(this.toastType_error)) {
1085
- this.updateActiveToastMessage(heading, textMessage, this.toastType_error);
1086
- }
1087
- else {
1088
- this.toastr.error(textMessage, heading);
1089
- }
1090
- }
1091
- else {
1092
- this.toastr.error(textMessage, heading);
1093
- }
1094
- }
1095
- info(textMessage, title) {
1096
- const heading = title || this.translateService.instant('Generic_lib.Information');
1097
- if (this.isToastMsgActive()) {
1098
- if (this.checkActiveToastMessagesByType(this.toastType_info)) {
1099
- this.updateActiveToastMessage(heading, textMessage, this.toastType_info);
1100
- }
1101
- else {
1102
- this.toastr.info(textMessage, heading);
1103
- }
1104
- }
1105
- else {
1106
- this.toastr.info(textMessage, heading);
1107
- }
1108
- }
1109
- warning(textMessage, title) {
1110
- const heading = title || this.translateService.instant('Generic_lib.Warning');
1111
- if (this.isToastMsgActive()) {
1112
- if (this.checkActiveToastMessagesByType(this.toastType_warning)) {
1113
- this.updateActiveToastMessage(heading, textMessage, this.toastType_warning);
1114
- }
1115
- else {
1116
- this.toastr.warning(textMessage, heading);
1117
- }
1118
- }
1119
- else {
1120
- this.toastr.warning(textMessage, heading);
1121
- }
1122
- }
1123
- updateActiveToastMessage(title, textMessage, ToastType) {
1124
- const activeToasts = this.getActiveToastMessagesByType(ToastType);
1125
- if (activeToasts.length > 0) {
1126
- const toastObj = activeToasts[0];
1127
- toastObj.toastRef.componentInstance.title = title;
1128
- toastObj.toastRef.componentInstance.message = textMessage;
1129
- }
1130
- }
1131
- isToastMsgActive() {
1132
- return this.toastr.currentlyActive ? true : false;
1133
- }
1134
- getActiveToastMessagesByType(type) {
1135
- return this.toastr.toasts.filter((toastItem) => toastItem.toastRef.componentInstance.toastPackage.toastType.includes(type));
1136
- }
1137
- checkActiveToastMessagesByType(type) {
1138
- return this.toastr.toasts.some((toastItem) => toastItem.toastRef.componentInstance.toastPackage.toastType == type);
1139
- }
1140
- clear() {
1141
- this.toastr.clear();
1142
- }
1143
- }
1144
- 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 });
1145
- ToastMsgService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ToastMsgService, providedIn: 'root' });
1146
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ToastMsgService, decorators: [{
1147
- type: Injectable,
1148
- args: [{
1149
- providedIn: 'root',
1150
- }]
1151
- }], ctorParameters: function () { return [{ type: i1$2.ToastrService }, { type: i4.TranslateService }]; } });
1152
-
1153
- class CookieStorageManagerService {
1154
- constructor(cookie, _http) {
1155
- this.cookie = cookie;
1156
- this._http = _http;
1157
- }
1158
- //Check if cookies is set or not
1159
- checksetCookies(cookiesParam1) {
1160
- let status = this.cookie.check(cookiesParam1);
1161
- if (status) {
1162
- return true;
1163
- }
1164
- else {
1165
- return false;
1166
- }
1167
- }
1168
- //get cookies value
1169
- getCookieValue(cookiesParam) {
1170
- let status = this.cookie.check(cookiesParam);
1171
- if (status) {
1172
- let cookieValue = this.cookie.get(cookiesParam);
1173
- return cookieValue;
1174
- }
1175
- //What if cookies not found
1176
- else {
1177
- return '';
1178
- }
1179
- }
1180
- //Set cookies value
1181
- setCookiesValue(key, value) {
1182
- this.cookie.set(key, value);
1183
- }
1184
- //Delete a specific cookie
1185
- deleteCookie(cookieKey) {
1186
- this.cookie.delete(cookieKey);
1187
- }
1188
- //Delete All cookie
1189
- clearAllCookies() {
1190
- const cookies = this.cookie.getAll();
1191
- for (const cookieName in cookies) {
1192
- if (cookies.hasOwnProperty(cookieName)) {
1193
- this.cookie.delete(cookieName);
1194
- }
1195
- }
1196
- }
1197
- //Delete All cookie
1198
- // clearCookiesByAPI(payload: any) {
1199
- // const delCookieEndpoint = `${GlobalConstants.baseURL}/xaccess/api/SecureAccess/cookiesUpdation`;
1200
- // return this._http.post(delCookieEndpoint, payload).pipe(map((response:any)=>{
1201
- // if (response && response['success']) {
1202
- // return response['result'];
1203
- // } else {
1204
- // return null;
1205
- // }
1206
- // }));
1207
- // }
1208
- //Set Long cookies
1209
- setLongCookie(name, value, maxChunkSize) {
1210
- for (let i = 0; i < Math.ceil(value.length / maxChunkSize); i++) {
1211
- const chunk = value.substring(i * maxChunkSize, (i + 1) * maxChunkSize);
1212
- this.setCookiesValue(`${name}_${i}`, chunk);
1213
- }
1214
- }
1215
- }
1216
- 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 });
1217
- CookieStorageManagerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CookieStorageManagerService, providedIn: 'root' });
1218
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CookieStorageManagerService, decorators: [{
1219
- type: Injectable,
1220
- args: [{
1221
- providedIn: 'root',
1222
- }]
1223
- }], ctorParameters: function () { return [{ type: i1$1.CookieService }, { type: i1.HttpClient }]; } });
1224
-
1225
- class EncrydecryRSAdataService {
1226
- generateAESKey() {
1227
- const publicKey = this.getPublicKey();
1228
- const symmetricKey = this.generateKeyAndIV();
1229
- const gkey = symmetricKey.key.toString();
1230
- const giv = symmetricKey.iv.toString();
1231
- const key = gkey + ',' + giv;
1232
- const encryptedSymmetricKey = this.encryptSymmetricKey(gkey, publicKey);
1233
- const encryptedSymmetriciv = this.encryptSymmetricKey(giv, publicKey);
1234
- return String(encryptedSymmetricKey + ',' + encryptedSymmetriciv);
1235
- }
1236
- encryptViaRSA(simpleText) {
1237
- const { symmKey, symmIV } = this.getRSAsymmetricKeyIV();
1238
- const encryptedText = this.encryptText(simpleText, symmKey, symmIV);
1239
- return encryptedText;
1240
- }
1241
- decryptViaRSA(encrpyText) {
1242
- const { symmKey, symmIV } = this.getRSAsymmetricKeyIV();
1243
- const decryptedText = this.decryptText(encrpyText, symmKey, symmIV);
1244
- return decryptedText;
1245
- }
1246
- generateKeyAndIV() {
1247
- const key = CryptoJS.lib.WordArray.random(32); // 32 bytes for AES-256
1248
- const iv = CryptoJS.lib.WordArray.random(16); // 16 bytes IV
1249
- return { key, iv };
1250
- }
1251
- encryptText(plaintext, hkey, hiv) {
1252
- //* If the data is Object then converting the object into JSON.stringify()
1253
- if (typeof plaintext === 'object' && plaintext !== null) {
1254
- plaintext = JSON.stringify(plaintext);
1255
- }
1256
- const key = CryptoJS.enc.Hex.parse(hkey);
1257
- const iv = CryptoJS.enc.Hex.parse(hiv);
1258
- const encrypted = CryptoJS.AES.encrypt(plaintext, key, {
1259
- iv: iv,
1260
- mode: CryptoJS.mode.CBC,
1261
- padding: CryptoJS.pad.Pkcs7,
1262
- });
1263
- return encrypted.toString();
1264
- }
1265
- encryptSymmetricKey(key, publicKey) {
1266
- try {
1267
- const rsa = new JSEncrypt();
1268
- rsa.setPublicKey(publicKey);
1269
- const encryptedKey = rsa.encrypt(key);
1270
- if (!encryptedKey)
1271
- throw new Error('Encryption failed. The key might be improperly formatted.');
1272
- return encryptedKey;
1273
- }
1274
- catch (error) {
1275
- console.error(`Encryption error: ${error.message}`);
1276
- return '';
1277
- }
1278
- }
1279
- decryptText(encryptedBase64, hkey, hiv) {
1280
- const key = CryptoJS.enc.Hex.parse(hkey);
1281
- const iv = CryptoJS.enc.Hex.parse(hiv);
1282
- const decrypted = CryptoJS.AES.decrypt(encryptedBase64, key, {
1283
- iv: iv,
1284
- mode: CryptoJS.mode.CBC,
1285
- padding: CryptoJS.pad.Pkcs7,
1286
- });
1287
- return decrypted.toString(CryptoJS.enc.Utf8);
1288
- }
1289
- getPublicKey() {
1290
- const publicKey = this.base64ToPem(localStorage.getItem('001-SAC-GEC') || '');
1291
- return publicKey;
1292
- }
1293
- getRSAsymmetricKeyIV() {
1294
- let symmKey = '';
1295
- let symmIV = '';
1296
- const key = localStorage.getItem('001-SAC-GEC');
1297
- if (key?.includes(',')) {
1298
- const syymArr = key.split(',');
1299
- symmKey = syymArr[0];
1300
- symmIV = syymArr[1];
1301
- }
1302
- return { symmKey, symmIV };
1303
- }
1304
- base64ToPem(base64Key) {
1305
- const pemHeader = '-----BEGIN PUBLIC KEY-----';
1306
- const pemFooter = '-----END PUBLIC KEY-----';
1307
- const chunkSize = 64; // Standard line length for PEM files
1308
- const formattedKey = base64Key.match(new RegExp(`.{1,${chunkSize}}`, 'g'))?.join('\n') || '';
1309
- return `${pemHeader}\n${formattedKey}\n${pemFooter}`;
1310
- }
1311
- }
1312
- EncrydecryRSAdataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: EncrydecryRSAdataService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1313
- EncrydecryRSAdataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: EncrydecryRSAdataService, providedIn: 'root' });
1314
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: EncrydecryRSAdataService, decorators: [{
1315
- type: Injectable,
1316
- args: [{
1317
- providedIn: 'root',
1318
- }]
1319
- }] });
1320
-
1321
- class EncrydecrydataService {
1322
- constructor(_storageService) {
1323
- this._storageService = _storageService;
1324
- this.phiN = BigInt('1439652808780798693078119762209596147168096953796219172262910821317967061987350219660913015278464376519592636923598633193936864497263640780784805168728449');
1325
- this.m = BigInt('1439652808780798693078119762209596147168096953796219172262910821317967061987270868696269635759315523684521986922202953647194318017157636815317250179926320');
1326
- this.Genrator = 5;
1327
- this.min = 10000000;
1328
- this.max = 10000000 * 10000000;
1329
- }
1330
- generate() {
1331
- this.randomPrime = this.generateRandomPrime(this.min, this.max);
1332
- let code = bigintCryptoUtils.modPow(this.Genrator, BigInt(this.randomPrime), this.phiN);
1333
- return code;
1334
- }
1335
- process(key) {
1336
- let secretcode = bigintCryptoUtils.modPow(BigInt(key), BigInt(this.randomPrime), this.phiN);
1337
- this._storageService.saveData(COOKIECONSTANT.ERRORCODE, secretcode.toString());
1338
- }
1339
- encryptViaCrypto(normalText) {
1340
- const code = this.getSecretCode();
1341
- const encryptedMessagedata = this.encryptMessage(normalText, code);
1342
- return encryptedMessagedata;
1343
- }
1344
- decryptViaCrypto(cipherText) {
1345
- const decryptedData = this.base64ToUint8Array(cipherText);
1346
- const code = this.getSecretCode();
1347
- let decryptdata = this.decrypt(decryptedData, code);
1348
- let decryptdatastr = this.bytesToString(decryptdata);
1349
- return decryptdatastr;
1350
- }
1351
- decryptResponseViaCrypto(cipherText) {
1352
- const code = String(this.getPublicKey());
1353
- const decryptdata = this.decrypt123(cipherText, code);
1354
- return decryptdata;
1355
- }
1356
- //todo amit
1357
- // private decrypt123(messageme: string, key: string): string {
1358
- // let bigKey: bigint = BigInt(key);
1359
- // let bytes: string = atob(messageme);
1360
- // let decryptedBytes: number[] = [];
1361
- // for (let i = 0; i < bytes.length; i++) {
1362
- // let byteValue: bigint = BigInt(bytes.charCodeAt(i));
1363
- // byteValue = (byteValue - bigKey) % 256n;
1364
- // if (byteValue < 0n) {
1365
- // byteValue = 256n + byteValue;
1366
- // }
1367
- // decryptedBytes.push(Number(byteValue));
1368
- // }
1369
- // let decryptedMessage: string = String.fromCharCode.apply(
1370
- // null,
1371
- // decryptedBytes
1372
- // );
1373
- // return decryptedMessage;
1374
- // }
1375
- //new amit
1376
- decrypt123(messageme, key) {
1377
- const bigKey = BigInt(key);
1378
- const bytes = atob(messageme);
1379
- const decryptedBytes = [];
1380
- for (let i = 0; i < bytes.length; i++) {
1381
- let byteValue = BigInt(bytes.charCodeAt(i));
1382
- byteValue = (byteValue - bigKey) % BigInt(256);
1383
- if (byteValue < BigInt(0)) {
1384
- byteValue = BigInt(256) + byteValue;
1385
- }
1386
- decryptedBytes.push(Number(byteValue));
1387
- }
1388
- return String.fromCharCode(...decryptedBytes);
1389
- }
1390
- encryptMessage(message, sharedSecret) {
1391
- const messageBytes = new TextEncoder().encode(message);
1392
- const encryptedMessage = this.encrypt(messageBytes, sharedSecret);
1393
- return this.encryptMessageToBase64(encryptedMessage);
1394
- //return encryptedMessage;
1395
- }
1396
- base64ToUint8Array(base64String) {
1397
- const decodedString = atob(base64String);
1398
- const uint8Array = new Uint8Array(decodedString.length);
1399
- for (let i = 0; i < decodedString.length; i++) {
1400
- uint8Array[i] = decodedString.charCodeAt(i);
1401
- }
1402
- return uint8Array;
1403
- }
1404
- bytesToString(bytes) {
1405
- let str = '';
1406
- for (let i = 0; i < bytes.length; i++) {
1407
- str += String.fromCharCode(bytes[i]);
1408
- }
1409
- return str;
1410
- }
1411
- encryptMessageToBase64(encryptedMessage) {
1412
- const encryptedArray = Array.from(encryptedMessage);
1413
- const messageString = String.fromCharCode.apply(null, encryptedArray);
1414
- const base64String = btoa(messageString);
1415
- return base64String;
1416
- }
1417
- bigintToBytes(key) {
1418
- const hexString = key.toString(16);
1419
- const byteLength = Math.ceil(hexString.length / 2);
1420
- const bytes = new Uint8Array(byteLength);
1421
- let i = hexString.length;
1422
- let j = 0;
1423
- while (i > 0) {
1424
- bytes[j++] = parseInt(hexString.substring(Math.max(i - 2, 0), i), 16);
1425
- i -= 2;
1426
- }
1427
- return bytes;
1428
- }
1429
- encrypt(data, key) {
1430
- const keyBytes = this.bigintToBytes(key);
1431
- const encryptedData = new Uint8Array(data.length);
1432
- for (let i = 0; i < data.length; i++) {
1433
- encryptedData[i] = data[i] ^ keyBytes[i % keyBytes.length];
1434
- }
1435
- return encryptedData;
1436
- }
1437
- decrypt(data, key) {
1438
- return this.encrypt(data, key);
1439
- }
1440
- generateRandomPrime(min, max) {
1441
- const isPrime = (num) => {
1442
- if (num <= 1)
1443
- return false;
1444
- if (num <= 3)
1445
- return true;
1446
- if (num % 2 === 0 || num % 3 === 0)
1447
- return false;
1448
- let i = 5;
1449
- while (i * i <= num) {
1450
- if (num % i === 0 || num % (i + 2) === 0)
1451
- return false;
1452
- i += 6;
1453
- }
1454
- return true;
1455
- };
1456
- let prime;
1457
- do {
1458
- prime = Math.floor(Math.random() * (max - min + 1)) + min;
1459
- } while (!isPrime(prime));
1460
- return prime;
1461
- }
1462
- getSecretCode() {
1463
- //todo Amit -
1464
- // const key = this._storageService.getData(COOKIECONSTANT.ERRORCODE);
1465
- const key = this._storageService.getData(COOKIECONSTANT.ERRORCODE) ?? '0000';
1466
- return this.convertToBigInt(key);
1467
- }
1468
- convertToBigInt(value) {
1469
- try {
1470
- return BigInt(value);
1471
- }
1472
- catch {
1473
- return BigInt('0000');
1474
- }
1475
- }
1476
- getPublicKey() {
1477
- const publicKey = LoggedInUserInfo.privateKey;
1478
- // Check if publicKey is undefined, null, or empty
1479
- if (!publicKey) {
1480
- console.error('Public key is missing.');
1481
- return this.convertToBigInt('0');
1482
- }
1483
- const KeyArr = publicKey.split(',');
1484
- if (KeyArr.length === 0 || !KeyArr[0]) {
1485
- return this.convertToBigInt('0');
1486
- }
1487
- const keySegment = KeyArr[0];
1488
- // const keySegment = KeyArr[0].slice(0, 10);
1489
- // const keySegment = this.getSlicePublicKey(KeyArr[0]);
1490
- if (!keySegment) {
1491
- return this.convertToBigInt('0');
1492
- }
1493
- try {
1494
- return this.convertToBigInt(keySegment);
1495
- }
1496
- catch (error) {
1497
- return this.convertToBigInt('0');
1498
- }
1499
- }
1500
- getSlicePublicKey(key) {
1501
- const subString = key.length >= 20 ? key.substring(0, 20) : key;
1502
- const uniqueKey = this.getUniqueLetter(subString);
1503
- return uniqueKey;
1504
- }
1505
- getUniqueLetter(text) {
1506
- const textSet = new Set(text);
1507
- const uniqueString = [...textSet].join('');
1508
- return uniqueString;
1509
- }
1510
- }
1511
- EncrydecrydataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: EncrydecrydataService, deps: [{ token: StorageService }], target: i0.ɵɵFactoryTarget.Injectable });
1512
- EncrydecrydataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: EncrydecrydataService, providedIn: 'root' });
1513
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: EncrydecrydataService, decorators: [{
1514
- type: Injectable,
1515
- args: [{
1516
- providedIn: 'root',
1517
- }]
1518
- }], ctorParameters: function () { return [{ type: StorageService }]; } });
1519
-
1520
- class RESTLoginFormService {
1521
- constructor(_http, cookieService, _encryptDec) {
1522
- this._http = _http;
1523
- this.cookieService = cookieService;
1524
- this._encryptDec = _encryptDec;
1525
- }
1526
- /*Method : GET
1527
- Action : Fetch Domain List */
1528
- fetchDomainList() {
1529
- return this._http
1530
- .get(GlobalConstants.baseURL + 'meta/api/Metadata/Domains')
1531
- .pipe(map((response) => {
1532
- let result = [];
1533
- if (response['statusCode'] === 200) {
1534
- if (response['result'].length > 0) {
1535
- let result = response['result'];
1536
- return result;
1537
- }
1538
- else {
1539
- return [];
1540
- }
1541
- }
1542
- }), catchError((e) => throwError(this.errorHandler(e))));
1543
- }
1544
- errorHandler(e) {
1545
- throw new Error('Method not implemented.');
1546
- }
1547
- /*Method : POST
1548
- Parameter : subID , id
1549
- Action : Get configuration ID based on to show hide DOMAIN dropdown
1550
- */
1551
- getglobalConfigDetails(subid, id) {
1552
- return this._http
1553
- .post(GlobalConstants.baseURL +
1554
- 'meta/api/Metadata/GetArcosConfigsValues?subId=' +
1555
- subid, id)
1556
- .pipe(map((response) => {
1557
- let result = [];
1558
- if (response['statusCode'] === 200) {
1559
- let result = response['result'];
1560
- return result;
1561
- }
1562
- }), catchError((e) => throwError(this.errorHandler(e))));
1563
- }
1564
- /*Method : POST
1565
- Action : get login to user
1566
- */
1567
- // userAuthentication(userDetails: any) {
1568
- // return this._http
1569
- // .post(
1570
- // GlobalConstants.baseURL + 'xaccess/api/SecureAccess/Authenticate',
1571
- // userDetails
1572
- // )
1573
- // .pipe(
1574
- // map((response: any) => {
1575
- // if (response && response['data']) {
1576
- // return this.getDecryptAPIResponse(response['data']);
1577
- // }
1578
- // }),
1579
- // catchError((e) => throwError(this.errorHandler(e)))
1580
- // );
1581
- // }
1582
- /*Method : POST
1583
- Action : RESET Password for First Time User
1584
- */
1585
- setNewpassword(loggedInUserDetails) {
1586
- return this._http
1587
- .post(GlobalConstants.baseURL +
1588
- 'xaccess/api/SecureAccess/ChangeUserArcXwdManually', loggedInUserDetails)
1589
- .pipe(catchError((e) => throwError(this.errorHandler(e))));
1590
- }
1591
- /*Method : POST
1592
- Action :Will validate User entered PWD as
1593
- per Password Policy Set
1594
- */
1595
- validatePassword(userDetails) {
1596
- return this._http
1597
- .post(GlobalConstants.baseURL + 'xaccess/api/SecureAccess/ValidatePassword', userDetails)
1598
- .pipe(catchError((e) => throwError(this.errorHandler(e))));
1599
- }
1600
- /*Method : POST
1601
- Action : Get Public Key for encryption of Data */
1602
- getPrivateKey(params) {
1603
- return this._http
1604
- .post(GlobalConstants.baseURL + 'xaccess/api/SecureAccess/XKEDSync', params)
1605
- .pipe(catchError((e) => throwError(this.errorHandler(e))));
1606
- }
1607
- /* Method : POST
1608
- Action : Send request for OTP of MFA Authenticator */
1609
- sendMFAOTPRequest(mfaDetails) {
1610
- return this._http
1611
- .post(GlobalConstants.baseURL + 'xmfa/api/Mfa/mfa', mfaDetails)
1612
- .pipe(map((response) => {
1613
- let result = [];
1614
- if (response['success']) {
1615
- let result = response['result'];
1616
- return result;
1617
- }
1618
- }), catchError((e) => throwError(this.errorHandler(e))));
1619
- }
1620
- /* Method : POST
1621
- Action : Submit User Enter OTP of MFA Authenticator */
1622
- submitOtpForMfaVerification(mfaDetails) {
1623
- return this._http
1624
- .post(GlobalConstants.baseURL + 'xmfa/api/Mfa/mfavalidation', mfaDetails)
1625
- .pipe(map((response) => {
1626
- let result = [];
1627
- if (response['success']) {
1628
- let result = response['result'];
1629
- return result;
1630
- }
1631
- }), catchError((e) => throwError(this.errorHandler(e))));
1632
- }
1633
- /*Method : POST
1634
- Action : It will provide Token which used for multiple Application access */
1635
- getAuthToken(userDetails) {
1636
- return this._http
1637
- .post(GlobalConstants.baseURL + 'xauth/api/Token/GenerateJwtTokenApplication', userDetails)
1638
- .pipe(map((response) => {
1639
- if (response) {
1640
- return response;
1641
- }
1642
- else {
1643
- return '';
1644
- }
1645
- }), catchError((e) => throwError(this.errorHandler(e))));
1646
- }
1647
- /* Method : GET
1648
- Action : It will provide Token which used to established MFA Method */
1649
- // getMFAAccessTokenKey() {
1650
- // return this._http
1651
- // .get<any>(GlobalConstants.baseURL + 'xaccess/api/SecureAccess/GetMfaDetails')
1652
- // .pipe(
1653
- // map((response) => {
1654
- // if (response && response['data']) {
1655
- // return this.getDecryptAPIResponse(response['data']);
1656
- // }
1657
- // return {};
1658
- // }),
1659
- // catchError((e) => throwError(this.errorHandler(e)))
1660
- // );
1661
- // }
1662
- /* Method : POST
1663
- Action : It will check Valida User or not */
1664
- // checkUserExists(userDetails: any) {
1665
- // return this._http
1666
- // .post(
1667
- // GlobalConstants.baseURL + 'xaccess/api/SecureAccess/ValidateUser',
1668
- // userDetails
1669
- // )
1670
- // .pipe(
1671
- // map((response: any) => {
1672
- // if (response && response['data']) {
1673
- // return this.getDecryptAPIResponse(response['data']);
1674
- // }
1675
- // return {};
1676
- // }),
1677
- // catchError((e) => throwError(this.errorHandler(e)))
1678
- // );
1679
- // }
1680
- /* Method : POST
1681
- Action : Unlock User to enable login process */
1682
- unlockUserAccount(userDetails) {
1683
- return this._http
1684
- .post(GlobalConstants.baseURL + 'xaccess/api/SecureAccess/ValidateUser', userDetails)
1685
- .pipe(map((result) => {
1686
- return result;
1687
- }), catchError((e) => throwError(this.errorHandler(e))));
1688
- }
1689
- /* Method : GET
1690
- Action : It will provide Third Parth AUth Method etc. Google, Okta, Microsoft */
1691
- // getThirdPartySignInMethods() {
1692
- // return this._http
1693
- // .get(
1694
- // GlobalConstants.baseURL + 'xaccess/api/SecureAccess/GetThirdPartyDetail'
1695
- // )
1696
- // .pipe(
1697
- // map((response: any) => {
1698
- // let result: any = [];
1699
- // if (response['success']) {
1700
- // return response['result'];
1701
- // }
1702
- // return result;
1703
- // }),
1704
- // catchError((error: any) => throwError(this.errorHandler(error)))
1705
- // );
1706
- // }
1707
- /* Method : POST
1708
- Action : It will Verify plugin version is correct or not */
1709
- // public verifyUserInstalledPluginVersion(pluginInfo: any) {
1710
- // return this._http
1711
- // .post(GlobalConstants.baseURL + 'xaccess/api/SecureAccess/CheckAutoUpdatePAMPlugin',
1712
- // pluginInfo).pipe(
1713
- // map((response: any) => {
1714
- // return response['result'];
1715
- // }),
1716
- // catchError((error: any) => throwError(this.errorHandler(error)))
1717
- // );
1718
- // }
1719
- /**
1720
- * Verifies user authentication using Windows credentials.
1721
- */
1722
- // public checkAuthenticateWithWindowsCredentials(pluginInfo: any) {
1723
- // return this._http
1724
- // .post(GlobalConstants.baseURL + 'xdomainauth/api/DomainAuthentication/DomainAuth',
1725
- // // .post(GlobalConstants.baseURL + 'xaccess/api/SecureAccess/DomainAuth',
1726
- // pluginInfo).pipe(
1727
- // map((response: any) => {
1728
- // if (response && response['data']) {
1729
- // return this.getDecryptAPIResponse(response['data']);
1730
- // }
1731
- // return {};
1732
- // }),
1733
- // catchError((error: any) => throwError(this.errorHandler(error)))
1734
- // );
1735
- // }
1736
- /*Method : GET
1737
- Action : Get User Background Image and Logo */
1738
- getUserBackgroundImageAndLogo() {
1739
- return this._http
1740
- .get(GlobalConstants.baseURL + 'xaccess/api/SecureAccess/GetBackgroundImage')
1741
- .pipe(map((response) => {
1742
- return response;
1743
- }), catchError((error) => throwError(this.errorHandler(error))));
1744
- }
1745
- // public getVerifiedUserSessionDetails(authToken: string) {
1746
- // return this._http.post(
1747
- // GlobalConstants.baseURL + 'xaccess/api/SecureAccess/ValidateUserSessionDetail', { state: authToken }).pipe(
1748
- // map((response: any) => {
1749
- // if (response && response['data']) {
1750
- // return this.getDecryptAPIResponse(response['data']);
1751
- // }
1752
- // return {};
1753
- // }),
1754
- // catchError((error: any) => throwError(this.errorHandler(error)))
1755
- // );
1756
- // }
1757
- deleteCookieData(payload) {
1758
- const url = this.cookieService.getCookieValue('baseurl');
1759
- const delCookieEndpoint = `${url}xaccess/api/SecureAccess/cookiesUpdation`;
1760
- return this._http.post(delCookieEndpoint, payload);
1761
- }
1762
- /**
1763
- * Decrypts a base64-encoded, MessagePack-encoded ciphertext into its original tuple form.
1764
- *
1765
- * @param cipherText - The encrypted string received from the API.
1766
- * @returns The decoded tuple [key, value] if decryption is successful; otherwise, an empty object.
1767
- *
1768
- * Steps:
1769
- * 1. Decrypts the cipherText using custom crypto method.
1770
- * 2. Decodes the base64 response into a binary Uint8Array.
1771
- * 3. Deserializes the binary using MessagePack's decode to get the original data.
1772
- */
1773
- // private getDecryptAPIResponse_old(cipherText: string): any {
1774
- // if (cipherText) {
1775
- // const responseString =
1776
- // this._encryptDec.decryptResponseViaCrypto(cipherText);
1777
- // const binary = Uint8Array.from(atob(responseString), c => c.charCodeAt(0));
1778
- // const decodedArray = decode(binary) as [string, string];
1779
- // return decodedArray
1780
- // }
1781
- // return {};
1782
- // }
1783
- async getDecryptAPIResponse(cipherText) {
1784
- if (cipherText) {
1785
- const responseString = await this._encryptDec.decryptResponseViaCrypto(cipherText); // await here
1786
- const binary = Uint8Array.from(atob(responseString), (c) => c.charCodeAt(0));
1787
- const decodedArray = decode(binary);
1788
- return decodedArray;
1789
- }
1790
- return {};
1791
- }
1792
- }
1793
- 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 });
1794
- RESTLoginFormService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: RESTLoginFormService, providedIn: 'root' });
1795
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: RESTLoginFormService, decorators: [{
1796
- type: Injectable,
1797
- args: [{
1798
- providedIn: 'root',
1799
- }]
1800
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: CookieStorageManagerService }, { type: EncrydecrydataService }]; } });
1801
-
1802
- class ASYNCPasswordcheckService {
1803
- constructor(httpCommonService, encryptService) {
1804
- this.httpCommonService = httpCommonService;
1805
- this.encryptService = encryptService;
1806
- this.pwdErrorMsg = '';
1807
- this.pwdValidation = new Subject();
1808
- }
1809
- createValidator() {
1810
- return (control) => {
1811
- //For AES Encrp/Dec
1812
- const userPassword = this.encryptService.encryptViaRSA(control.value);
1813
- let useDetails = {
1814
- userARCXWD: userPassword,
1815
- // userId: LoggedInUserInfo.userId,
1816
- // userName: LoggedInUserInfo.userName,
1817
- };
1818
- return control.valueChanges.pipe(debounceTime(500), take(1), switchMap((_) => this.httpCommonService.validatePassword(useDetails).pipe(map((data) => {
1819
- if (data['success']) {
1820
- this.pwdErrorMsg = data['message'];
1821
- this.emitValidationMsg(this.pwdErrorMsg);
1822
- return null;
1823
- }
1824
- else {
1825
- this.pwdErrorMsg = data['errorMessage'];
1826
- this.emitValidationMsg(this.pwdErrorMsg);
1827
- return { pwdInvalid: true };
1828
- }
1829
- }), catchError(() => of({ pwdInvalid: true })))));
1830
- };
1831
- }
1832
- emitValidationMsg(msg) {
1833
- this.pwdValidation.next(msg);
1834
- }
1835
- listValidationMsg() {
1836
- return this.pwdValidation.asObservable();
1837
- }
1838
- }
1839
- 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 });
1840
- ASYNCPasswordcheckService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ASYNCPasswordcheckService, providedIn: 'root' });
1841
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ASYNCPasswordcheckService, decorators: [{
1842
- type: Injectable,
1843
- args: [{
1844
- providedIn: 'root',
1845
- }]
1846
- }], ctorParameters: function () { return [{ type: HttpCommonService }, { type: EncrydecryRSAdataService }]; } });
1847
- function ConfirmedValidator(controlName, matchingControlName) {
1848
- return (formGroup) => {
1849
- const control = formGroup.controls[controlName];
1850
- const matchingControl = formGroup.controls[matchingControlName];
1851
- if (matchingControl.errors &&
1852
- !matchingControl.errors['confirmedValidator']) {
1853
- return;
1854
- }
1855
- if (control.value !== matchingControl.value) {
1856
- matchingControl.setErrors({ confirmedValidator: true });
1857
- }
1858
- else {
1859
- matchingControl.setErrors(null);
1860
- }
1861
- };
1862
- }
1863
-
1864
- class VaptValidationService {
1865
- constructor() { }
1866
- hasUnsafeInput(formData) {
1867
- const dangerousPattern = /<\s*(script|iframe|object|embed|link|style)\b[^>]*>(.*?)<\s*\/\s*\1\s*>|<\s*(script|iframe|object|embed|link|style)\b[^>]*\/?>|<[^>]+>/gi;
1868
- function checkValue(value) {
1869
- if (typeof value === 'string') {
1870
- return dangerousPattern.test(value);
1871
- }
1872
- if (Array.isArray(value)) {
1873
- return value.some(checkValue);
1874
- }
1875
- if (typeof value === 'object' && value !== null) {
1876
- return Object.values(value).some(checkValue);
1877
- }
1878
- // If it's a number, boolean, null, or undefined, ignore
1879
- return false;
1880
- }
1881
- return checkValue(formData);
1882
- }
1883
- }
1884
- VaptValidationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: VaptValidationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1885
- VaptValidationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: VaptValidationService, providedIn: 'root' });
1886
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: VaptValidationService, decorators: [{
1887
- type: Injectable,
1888
- args: [{
1889
- providedIn: 'root'
1890
- }]
1891
- }], ctorParameters: function () { return []; } });
1892
-
1893
- function noSpaceAllowed() {
1894
- return (control) => {
1895
- const value = control.value;
1896
- if (!value) {
1897
- return null; // No value is not an error here
1898
- }
1899
- // Check if the value starts with a space or contains any space
1900
- const hasLeadingSpace = value.startsWith(' ');
1901
- // const hasAnySpace = value.includes(' ');
1902
- if (hasLeadingSpace) {
1903
- return { noSpace: true };
1904
- }
1905
- return null;
1906
- };
1907
- }
1908
-
1909
- class HttpGeneralConfigurationService {
1910
- constructor(http) {
1911
- this.http = http;
1912
- this.xPageRefAPIUrl = '/xaccess/api/PagePreference/';
1913
- }
1914
- getUserPreferredAssetTypeDetails() {
1915
- return this.http
1916
- .get(`${GlobalConstants.baseURL}${this.xPageRefAPIUrl}GetAssetTypeDetails`)
1917
- .pipe(map$1((response) => {
1918
- if (response && response['success']) {
1919
- return response['result'];
1920
- }
1921
- else {
1922
- return [];
1923
- }
1924
- }), catchError$1((e) => throwError(this.errorHandler(e))));
1925
- }
1926
- getUserPreferredAssetName(payload) {
1927
- return this.http
1928
- .post(`${GlobalConstants.baseURL}${this.xPageRefAPIUrl}GetAssetName`, payload)
1929
- .pipe(map$1((response) => {
1930
- if (response && response['success']) {
1931
- return response['result'];
1932
- }
1933
- else {
1934
- return [];
1935
- }
1936
- }), catchError$1((e) => throwError(this.errorHandler(e))));
1937
- }
1938
- getServiceNameByAssetTypeEvent(payload) {
1939
- return this.http
1940
- .post(`${GlobalConstants.baseURL}${this.xPageRefAPIUrl}GetServiceDetails`, payload)
1941
- .pipe(map$1((response) => {
1942
- if (response && response['success']) {
1943
- return response['result'];
1944
- }
1945
- else {
1946
- return [];
1947
- }
1948
- }), catchError$1((e) => throwError(this.errorHandler(e))));
1949
- }
1950
- getPreferencePathDetails(payload) {
1951
- return this.http
1952
- .post(`${GlobalConstants.baseURL}${this.xPageRefAPIUrl}CurrentPreferencepathDetails`, payload)
1953
- .pipe(map$1((response) => {
1954
- if (response && response['success']) {
1955
- return response['result'];
1956
- }
1957
- else {
1958
- return {};
1959
- }
1960
- }), catchError$1((e) => throwError(this.errorHandler(e))));
1961
- }
1962
- updatePreferencePath(payload) {
1963
- return this.http
1964
- .post(`${GlobalConstants.baseURL}${this.xPageRefAPIUrl}UpdatePreferencePath`, payload)
1965
- .pipe(map$1((response) => {
1966
- if (response && response['success']) {
1967
- return true;
1968
- }
1969
- else {
1970
- return false;
1971
- }
1972
- }), catchError$1((e) => throwError(this.errorHandler(e))));
1973
- }
1974
- errorHandler(e) {
1975
- throw new Error('Method not implemented.');
1976
- }
1977
- }
1978
- HttpGeneralConfigurationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HttpGeneralConfigurationService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1979
- HttpGeneralConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HttpGeneralConfigurationService, providedIn: 'root' });
1980
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HttpGeneralConfigurationService, decorators: [{
1981
- type: Injectable,
1982
- args: [{
1983
- providedIn: 'root',
1984
- }]
1985
- }], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
1986
-
1987
- class TimezoneConfigurationComponent {
1988
- constructor(fb, msgService, _storageService, _eventService, translateService, httpCommonService) {
1989
- this.fb = fb;
1990
- this.msgService = msgService;
1991
- this._storageService = _storageService;
1992
- this._eventService = _eventService;
1993
- this.translateService = translateService;
1994
- this.httpCommonService = httpCommonService;
1995
- this.timeZoneForm = new FormGroup({}); //user Reset Password Form
1996
- this.ListOfTimeZones = [];
1997
- this.isTimezoneLoading = false;
1998
- this.isTimezoneupdate = false;
1999
- this.unsubscribeAPIEventListenerData = new Subject();
2000
- this.tzSuccessMsg = errorMsg.TIMEZONESUCCESS;
2001
- this.tzErrorMsg = errorMsg.TIMEZONERROR;
2002
- this.apiUrl = '';
2003
- this.closepopup = new EventEmitter();
2004
- }
2005
- ngAfterViewInit() {
2006
- this.getTranslateContent();
2007
- }
2008
- ngOnInit() {
2009
- this.getListofTimeZones();
2010
- this.getInitalizeForm();
2011
- }
2012
- getInitalizeForm() {
2013
- this.timeZoneForm = this.fb.group({
2014
- timezone: [null, Validators.required], // Add Validators.required
2015
- });
2016
- }
2017
- //Method: Convert text one Lang. to another
2018
- getTranslateContent() {
2019
- this.translateService
2020
- .get(['Generic_lib.TimeZoneSuccessMsg', 'Generic_lib.TimeZoneErrorMsg'])
2021
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData))
2022
- .subscribe((trans) => {
2023
- this.tzSuccessMsg = trans['Generic_lib.TimeZoneSuccessMsg'];
2024
- this.tzErrorMsg = trans['Generic_lib.TimeZoneErrorMsg'];
2025
- });
2026
- }
2027
- /*Method : GET
2028
- Action : Get List of Time Zone*/
2029
- getListofTimeZones() {
2030
- this.isTimezoneLoading = true;
2031
- this.httpCommonService
2032
- .getGlobalTimeZone()
2033
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData), finalize(() => {
2034
- this.isTimezoneLoading = false;
2035
- }))
2036
- .subscribe((result) => {
2037
- if (result && result['timelist']) {
2038
- this.ListOfTimeZones = result['timelist'];
2039
- }
2040
- if (result && result['userTimeZone']) {
2041
- let userTz = result['userTimeZone'];
2042
- const selectedTZ = this.ListOfTimeZones.find((tz) => tz.id === userTz);
2043
- this.setTimezoneOptionValue(selectedTZ);
2044
- }
2045
- });
2046
- }
2047
- /*Method : POST
2048
- Action : Used to Update User Selected TimeZone*/
2049
- setUserTimeZone() {
2050
- const tz = this.timeZoneForm.get('timezone')?.value;
2051
- let tzName = tz['id'];
2052
- this.showBtnLoadder(true);
2053
- this.httpCommonService
2054
- .updateUserTimeZone(tzName)
2055
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData), finalize(() => {
2056
- this.showBtnLoadder(false);
2057
- }))
2058
- .subscribe((result) => {
2059
- if (result) {
2060
- setTimeout(() => {
2061
- this.setTimezoneOptionValue(tz);
2062
- }, 10);
2063
- this.msgService.success(this.tzSuccessMsg);
2064
- this._storageService.removeData(COOKIECONSTANT.NEWUSER);
2065
- this._eventService.emitTimezone({
2066
- component: 'timezone',
2067
- usertimezoneAbbreviations: result,
2068
- userTimeZoneFullForm: '',
2069
- id: tz['id'],
2070
- timelist: this.ListOfTimeZones,
2071
- });
2072
- this.closepopup.emit(true);
2073
- this.timeZoneForm.reset();
2074
- }
2075
- else {
2076
- this.msgService.error(this.tzErrorMsg);
2077
- }
2078
- });
2079
- }
2080
- setTimezoneOptionValue(selectedTZ) {
2081
- if (selectedTZ) {
2082
- this.selectedTimeZone = selectedTZ;
2083
- this.timeZoneForm.get('timezone')?.setValue(this.selectedTimeZone);
2084
- }
2085
- }
2086
- showBtnLoadder(flag) {
2087
- this.isTimezoneupdate = flag;
2088
- }
2089
- ngOnDestroy() {
2090
- this.unsubscribeAPIEventListenerData.next(true);
2091
- this.unsubscribeAPIEventListenerData.complete();
2092
- }
2093
- }
2094
- TimezoneConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TimezoneConfigurationComponent, deps: [{ token: i2$1.FormBuilder }, { token: ToastMsgService }, { token: StorageService }, { token: EventService }, { token: i4.TranslateService }, { token: HttpCommonService }], target: i0.ɵɵFactoryTarget.Component });
2095
- 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$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$1.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" }] });
2096
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TimezoneConfigurationComponent, decorators: [{
2097
- type: Component,
2098
- 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"] }]
2099
- }], ctorParameters: function () { return [{ type: i2$1.FormBuilder }, { type: ToastMsgService }, { type: StorageService }, { type: EventService }, { type: i4.TranslateService }, { type: HttpCommonService }]; }, propDecorators: { closepopup: [{
2100
- type: Output
2101
- }] } });
2102
-
2103
- class LandingpgConfigComponent {
2104
- constructor(libService, fb, msgService, translateService, _encryptRSAService, httpCommonService) {
2105
- this.libService = libService;
2106
- this.fb = fb;
2107
- this.msgService = msgService;
2108
- this.translateService = translateService;
2109
- this._encryptRSAService = _encryptRSAService;
2110
- this.httpCommonService = httpCommonService;
2111
- this.AppNameForm = new FormGroup({});
2112
- this.ListofApplicationNames = [];
2113
- this.isAppNameLoading = false;
2114
- this.isAppNameUpdate = false;
2115
- this.updateSuccess = errorMsg.LANDINGPGSUCCESS;
2116
- this.updateError = errorMsg.LANDINGPGERROR;
2117
- this.userConfiguredApp = {};
2118
- this.unsubscribeAPIEventListenerData = new Subject();
2119
- this.apiUrl = '';
2120
- }
2121
- ngAfterViewInit() {
2122
- this.getTranslateContent();
2123
- }
2124
- ngOnInit() {
2125
- this.getListofApplications();
2126
- this.getInitalizeForm();
2127
- }
2128
- getInitalizeForm() {
2129
- this.AppNameForm = this.fb.group({
2130
- userApp: [null, Validators.required],
2131
- });
2132
- }
2133
- //Method: Convert text one Lang. to another
2134
- getTranslateContent() {
2135
- this.translateService
2136
- .get([
2137
- 'Generic_lib.LandingPageSuccessMsg',
2138
- 'Generic_lib.LandingPageErrorMsg',
2139
- ])
2140
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData))
2141
- .subscribe((trans) => {
2142
- this.updateSuccess = trans['Generic_lib.LandingPageSuccessMsg'];
2143
- this.updateError = trans['Generic_lib.LandingPageErrorMsg'];
2144
- });
2145
- }
2146
- /*Method : GET
2147
- Action : Get List of User Assign Application*/
2148
- getListofApplications() {
2149
- this.isAppNameLoading = true;
2150
- this.httpCommonService
2151
- .getUserAssignedApps()
2152
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData), finalize(() => {
2153
- this.isAppNameLoading = false;
2154
- }))
2155
- .subscribe((response) => {
2156
- this.ListofApplicationNames = response;
2157
- this.userConfiguredApp = this.ListofApplicationNames.find((app) => app.isAssignedLanding);
2158
- this.setPostLoginModuleOption(this.userConfiguredApp);
2159
- });
2160
- }
2161
- /*Method : POST
2162
- Action : Used to Update User Preferred Landing App Name*/
2163
- getUpdateLandingPgPreference() {
2164
- const userApp = this.AppNameForm.get('userApp')?.value;
2165
- const moduleId = this._encryptRSAService.encryptViaRSA(userApp['appCode']);
2166
- this.showBtnLoadder(true);
2167
- this.httpCommonService
2168
- .setLandingPgPreference(moduleId)
2169
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData), finalize(() => {
2170
- this.showBtnLoadder(false);
2171
- }))
2172
- .subscribe((result) => {
2173
- if (result) {
2174
- setTimeout(() => {
2175
- this.setPostLoginModuleOption(userApp);
2176
- }, 10);
2177
- this.msgService.success(this.updateSuccess);
2178
- this.AppNameForm.reset();
2179
- }
2180
- else {
2181
- this.msgService.error(this.updateError);
2182
- }
2183
- });
2184
- }
2185
- setPostLoginModuleOption(userConfiguredApp) {
2186
- if (userConfiguredApp) {
2187
- this.AppNameForm.get('userApp')?.setValue(userConfiguredApp);
2188
- }
2189
- }
2190
- showBtnLoadder(flag) {
2191
- this.isAppNameUpdate = flag;
2192
- }
2193
- ngOnDestroy() {
2194
- this.unsubscribeAPIEventListenerData.next(true);
2195
- this.unsubscribeAPIEventListenerData.complete();
2196
- }
2197
- }
2198
- LandingpgConfigComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LandingpgConfigComponent, deps: [{ token: CommonHeaderLibService }, { token: i2$1.FormBuilder }, { token: ToastMsgService }, { token: i4.TranslateService }, { token: EncrydecryRSAdataService }, { token: HttpCommonService }], target: i0.ɵɵFactoryTarget.Component });
2199
- 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$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$1.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" }] });
2200
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LandingpgConfigComponent, decorators: [{
2201
- type: Component,
2202
- 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"] }]
2203
- }], ctorParameters: function () { return [{ type: CommonHeaderLibService }, { type: i2$1.FormBuilder }, { type: ToastMsgService }, { type: i4.TranslateService }, { type: EncrydecryRSAdataService }, { type: HttpCommonService }]; } });
2204
-
2205
- class GeneralConfigurationComponent {
2206
- constructor(libService, fb, msgService, encryptService, loginService, _validatePwdService, translateService, _vaptService, config, httpCommonService, httpGeneralConfigService) {
2207
- this.libService = libService;
2208
- this.fb = fb;
2209
- this.msgService = msgService;
2210
- this.encryptService = encryptService;
2211
- this.loginService = loginService;
2212
- this._validatePwdService = _validatePwdService;
2213
- this.translateService = translateService;
2214
- this._vaptService = _vaptService;
2215
- this.config = config;
2216
- this.httpCommonService = httpCommonService;
2217
- this.httpGeneralConfigService = httpGeneralConfigService;
2218
- // export class GeneralConfigurationComponent {
2219
- this.ShowPreferencePathScreen = true;
2220
- this.ShowUserProfileScreen = false;
2221
- this.ShowChangePasswordScreen = false;
2222
- this.ShowTimeZoneScreen = false;
2223
- this.ShowLandinPgScreen = false;
2224
- this.ShowTimeZoneBtn = false;
2225
- this.showStatus = false;
2226
- this.userAssetTypeList = [];
2227
- this.userAssetNameList = [];
2228
- this.userServiceList = [];
2229
- this.userSelectedTimezone = '';
2230
- // private domainName: string = '';
2231
- // private domainID: number;
2232
- // private LoggedInUserID: number;
2233
- // private username: string;
2234
- this.filePathName = '';
2235
- this.lastUpdatedFileStatus = '';
2236
- this.appSettingForm = new FormGroup({}); // Define form group
2237
- this.userResetPasswordForm = new FormGroup({}); //user Reset Password Form
2238
- this.timeZoneForm = new FormGroup({}); //user Reset Password Form
2239
- this.unsubscribeAPIEventListenerData = new Subject();
2240
- this.makeNewPwdVisible = true;
2241
- this.makeOldPwdVisible = true;
2242
- this.makeCnfrmPwdVisible = true;
2243
- this.isAssetTypeLoading = false;
2244
- this.isAssetNameLoading = false;
2245
- this.isConnectionMethodLoading = false;
2246
- this.isPathUpdated = false;
2247
- this.pwderrorMsg = '';
2248
- this.AssetTypeEvent = 'AssetType';
2249
- this.AssetNameEvent = 'AssetName';
2250
- this.ConnectionMethodEvent = 'ConnectionMethod';
2251
- this.pathSuccessMsg = errorMsg.PATHSUCCESS;
2252
- this.pathErrorMsg = errorMsg.PATHERROR;
2253
- this.apiURL = '';
2254
- }
2255
- ngOnInit() {
2256
- //Get Initalize Form
2257
- this.getInitalizeForm();
2258
- this.OpenPreferencePathScreen();
2259
- }
2260
- ngAfterViewInit() {
2261
- this.getTranslateContent();
2262
- // Get PWD Validation MSg From Validation Service
2263
- this._validatePwdService.listValidationMsg().subscribe((msg) => {
2264
- this.pwderrorMsg = msg;
2265
- });
2266
- }
2267
- getInitalizeForm() {
2268
- this.appSettingForm = this.fb.group({
2269
- AssetType: ['', Validators.required],
2270
- AssetName: ['', Validators.required],
2271
- ServiceName: ['', Validators.required],
2272
- filePathName: ['', [Validators.required, noSpaceAllowed()]],
2273
- });
2274
- this.timeZoneForm = this.fb.group({
2275
- timezone: ['', Validators.required],
2276
- });
2277
- // Password Reset Form
2278
- this.userResetPasswordForm = this.fb.group({
2279
- oldUserARCXWD: ['', [Validators.required]],
2280
- newUserARCXWD: [
2281
- '',
2282
- [Validators.required],
2283
- [this._validatePwdService.createValidator()],
2284
- ],
2285
- crnmNewUserARCXWD: ['', [Validators.required]],
2286
- }, {
2287
- validator: ConfirmedValidator('newUserARCXWD', 'crnmNewUserARCXWD'),
2288
- });
2289
- }
2290
- // //Method: Convert text one Lang. to another
2291
- getTranslateContent() {
2292
- this.translateService
2293
- .get([
2294
- 'Generic_lib.PreferencePathSuccessMsg',
2295
- 'Generic_lib.PreferencePathErrorMsg',
2296
- ])
2297
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData))
2298
- .subscribe((trans) => {
2299
- this.pathSuccessMsg = trans['Generic_lib.PreferencePathSuccessMsg'];
2300
- this.pathErrorMsg = trans['Generic_lib.PreferencePathErrorMsg'];
2301
- });
2302
- }
2303
- OpenPreferencePathScreen() {
2304
- this.closeAllScreen();
2305
- setTimeout(() => {
2306
- this.ShowPreferencePathScreen = true;
2307
- this.appSettingForm.reset();
2308
- this.userAssetTypeList = [];
2309
- this.userAssetNameList = [];
2310
- this.userServiceList = [];
2311
- this.getServiceAssetDetails();
2312
- }, 10);
2313
- }
2314
- OpenUserProfileScreen() {
2315
- this.closeAllScreen();
2316
- this.ShowUserProfileScreen = true;
2317
- }
2318
- OpenChangePasswordScreen() {
2319
- this.closeAllScreen();
2320
- this.ShowChangePasswordScreen = true;
2321
- this.userResetPasswordForm.reset();
2322
- // this.getEncryptKey();
2323
- }
2324
- OpenTimezoneScreen() {
2325
- this.closeAllScreen();
2326
- this.ShowTimeZoneScreen = true;
2327
- }
2328
- OpenLandingPgConfig() {
2329
- this.closeAllScreen();
2330
- this.ShowLandinPgScreen = true;
2331
- }
2332
- closeAllScreen() {
2333
- this.ShowPreferencePathScreen = false;
2334
- this.ShowUserProfileScreen = false;
2335
- this.ShowChangePasswordScreen = false;
2336
- this.ShowTimeZoneScreen = false;
2337
- this.ShowLandinPgScreen = false;
2338
- }
2339
- preferencePathValueChange(eventName) {
2340
- if (eventName === this.AssetTypeEvent) {
2341
- const assetType = this.appSettingForm.get('AssetType')?.value;
2342
- this.showStatus = false;
2343
- this.resetFormfields(['AssetName', 'ServiceName', 'filePathName']);
2344
- this.userAssetNameList = [];
2345
- this.userServiceList = [];
2346
- this.getServiceAssetName(assetType['assetTypeID']);
2347
- }
2348
- else if (eventName === this.AssetNameEvent) {
2349
- const assetName = this.appSettingForm.get('AssetName')?.value;
2350
- this.showStatus = false;
2351
- this.resetFormfields(['ServiceName', 'filePathName']);
2352
- this.userServiceList = [];
2353
- this.fetchServiceNameByAssetTypeEvent(assetName['assetName']);
2354
- }
2355
- else if (eventName === this.ConnectionMethodEvent) {
2356
- const ServiceDetails = this.appSettingForm.get('ServiceName')?.value;
2357
- this.showStatus = false;
2358
- this.resetFormfields(['filePathName']);
2359
- this.getFilePathDetails(ServiceDetails['serviceTypeId']);
2360
- }
2361
- }
2362
- // /*Action : Used to Get Asset Type to update Prefrence Path of Connectors */
2363
- getServiceAssetDetails() {
2364
- this.isAssetTypeLoading = true;
2365
- this.httpGeneralConfigService
2366
- .getUserPreferredAssetTypeDetails()
2367
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData), finalize(() => {
2368
- this.isAssetTypeLoading = false;
2369
- }))
2370
- .subscribe((data) => {
2371
- this.userAssetTypeList = data;
2372
- });
2373
- }
2374
- // /*Action : Used to Get Asset Name to update Prefrence Path of that Asset's Connectors */
2375
- getServiceAssetName(assetTypeID) {
2376
- this.isAssetNameLoading = true;
2377
- let payload = {
2378
- assetTypeId: assetTypeID,
2379
- };
2380
- this.httpGeneralConfigService
2381
- .getUserPreferredAssetName(payload)
2382
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData), finalize(() => {
2383
- this.isAssetNameLoading = false;
2384
- }))
2385
- .subscribe((data) => {
2386
- this.userAssetNameList = data;
2387
- });
2388
- }
2389
- // /*Method : GET
2390
- // Action : get User Assigned ServiceName By AssetTypeEvent */
2391
- fetchServiceNameByAssetTypeEvent(assetName) {
2392
- this.isConnectionMethodLoading = true;
2393
- let payload = {
2394
- assetName: assetName,
2395
- };
2396
- this.httpGeneralConfigService
2397
- .getServiceNameByAssetTypeEvent(payload)
2398
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData), finalize(() => {
2399
- this.isConnectionMethodLoading = false;
2400
- }))
2401
- .subscribe((data) => {
2402
- this.userServiceList = data;
2403
- });
2404
- }
2405
- // /*Method : GET
2406
- // Action : Fetch User's File Path Details and Status already set or not */
2407
- getFilePathDetails(serviceID) {
2408
- let payload = {
2409
- // userId: this.LoggedInUserID,
2410
- serviceTypeId: serviceID,
2411
- };
2412
- this.httpGeneralConfigService
2413
- .getPreferencePathDetails(payload)
2414
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData))
2415
- .subscribe((res) => {
2416
- this.preferencePathID = res['spmId'];
2417
- if (res && res['currentSetting'] && res['lastUpdate']) {
2418
- this.showStatus = true;
2419
- this.filePathName = res['currentSetting'];
2420
- this.lastUpdatedFileStatus = res['lastUpdate'];
2421
- }
2422
- else {
2423
- this.filePathName = '';
2424
- this.showStatus = false;
2425
- this.lastUpdatedFileStatus = '';
2426
- }
2427
- });
2428
- }
2429
- // /*Action : It saves or updates a preference path of user */
2430
- setUserPreferencePath(appSettingForm) {
2431
- this.toggleBtnLoadder(true);
2432
- const userpath = String(appSettingForm.value['filePathName']).trim();
2433
- let payload = {
2434
- // userId: this.LoggedInUserID,
2435
- // userLogTime: this._cookieService.getCookieValue(COOKIECONSTANT.SESSIONID),
2436
- serviceTypeId: appSettingForm.value['ServiceName']['serviceTypeId'],
2437
- supDescription: userpath,
2438
- spmId: this.preferencePathID,
2439
- };
2440
- this.httpGeneralConfigService
2441
- .updatePreferencePath(payload)
2442
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData), finalize(() => {
2443
- this.toggleBtnLoadder(false);
2444
- }))
2445
- .subscribe((res) => {
2446
- if (res) {
2447
- this.resetForm();
2448
- this.showStatus = false;
2449
- this.msgService.success(this.pathSuccessMsg);
2450
- }
2451
- else {
2452
- this.msgService.error(this.pathErrorMsg);
2453
- }
2454
- });
2455
- }
2456
- // //Method : Used to perform password reset of User
2457
- resetLoggedInPwd() {
2458
- if (this._vaptService.hasUnsafeInput(this.userResetPasswordForm.value)) {
2459
- this.msgService.error(errorMsg.SCRIPTERROR);
2460
- return;
2461
- }
2462
- this.userResetPasswordForm.markAllAsTouched();
2463
- if (this.userResetPasswordForm.valid) {
2464
- this.changeLoggedInPwd();
2465
- }
2466
- }
2467
- // /*Method: will User New Password to API */
2468
- changeLoggedInPwd() {
2469
- //For Encrp/Dec
2470
- let oldUserARCXWD = this.encryptService.encryptViaRSA(this.userResetPasswordForm.value['oldUserARCXWD']);
2471
- //For Encrp/Dec
2472
- let newUserARCXWD = this.encryptService.encryptViaRSA(this.userResetPasswordForm.value['newUserARCXWD']);
2473
- let userPwdDetails = {
2474
- ipAddress: '',
2475
- oldUserARCXWD: oldUserARCXWD,
2476
- newUserARCXWD: newUserARCXWD,
2477
- authenticationType: 0,
2478
- };
2479
- this.toggleBtnLoadder(true);
2480
- this.httpCommonService
2481
- .setNewpassword(userPwdDetails)
2482
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData), finalize(() => {
2483
- this.toggleBtnLoadder(false);
2484
- }))
2485
- .subscribe((data) => {
2486
- if (data['success']) {
2487
- this.msgService.success(data['message']);
2488
- this.userResetPasswordForm.reset();
2489
- }
2490
- else if (!data['success']) {
2491
- this.msgService.error(data['errorMessage']);
2492
- }
2493
- });
2494
- }
2495
- // /*Method:
2496
- // Action : Get Public Key for encryption of User Details */
2497
- getEncryptKey() {
2498
- let params = {
2499
- type: 0,
2500
- };
2501
- this.loginService
2502
- .getPrivateKey(params)
2503
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData))
2504
- .subscribe((data) => {
2505
- if (data['success'] === true) {
2506
- LoggedInUserInfo.privateKey = data['result'];
2507
- }
2508
- else if (data['success'] === false) {
2509
- this.msgService.error('Session Token Error !');
2510
- }
2511
- });
2512
- }
2513
- // /*Method : POST
2514
- // Action : Get configuration ID based on to show hide Time Zone*/
2515
- getglobalConfigDetails() {
2516
- this.loginService
2517
- .getglobalConfigDetails('1', [336])
2518
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData))
2519
- .subscribe((data) => {
2520
- if (data && data.length > 0) {
2521
- data.forEach((element) => {
2522
- if (element && element['id'] === 336 && element['value'] === '0') {
2523
- this.ShowTimeZoneBtn = true;
2524
- }
2525
- else {
2526
- this.ShowTimeZoneBtn = false;
2527
- }
2528
- });
2529
- }
2530
- });
2531
- }
2532
- // // Show/Hide Password Fileds of Change Pwd form
2533
- togglePasswordVisibility(flag) {
2534
- if (flag === 1) {
2535
- this.makeOldPwdVisible = !this.makeOldPwdVisible;
2536
- }
2537
- else if (flag === 2) {
2538
- this.makeNewPwdVisible = !this.makeNewPwdVisible;
2539
- }
2540
- else if (flag === 3) {
2541
- this.makeCnfrmPwdVisible = !this.makeCnfrmPwdVisible;
2542
- }
2543
- }
2544
- resetForm() {
2545
- this.appSettingForm.reset();
2546
- }
2547
- resetFormfields(fields) {
2548
- fields.forEach((fieldsName) => {
2549
- this.appSettingForm.get(fieldsName)?.reset();
2550
- });
2551
- }
2552
- toggleBtnLoadder(flag) {
2553
- this.isPathUpdated = flag;
2554
- }
2555
- ngOnDestroy() {
2556
- this.unsubscribeAPIEventListenerData.next(true);
2557
- this.unsubscribeAPIEventListenerData.complete();
2558
- }
2559
- }
2560
- GeneralConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: GeneralConfigurationComponent, deps: [{ token: CommonHeaderLibService }, { token: i2$1.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 });
2561
- 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$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$1.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$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$1.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" }] });
2562
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: GeneralConfigurationComponent, decorators: [{
2563
- type: Component,
2564
- 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"] }]
2565
- }], ctorParameters: function () { return [{ type: CommonHeaderLibService }, { type: i2$1.FormBuilder }, { type: ToastMsgService }, { type: EncrydecryRSAdataService }, { type: RESTLoginFormService }, { type: ASYNCPasswordcheckService }, { type: i4.TranslateService }, { type: VaptValidationService }, { type: i1$3.DynamicDialogConfig }, { type: HttpCommonService }, { type: HttpGeneralConfigurationService }]; } });
2566
-
2567
- class NgTranslationComponent {
2568
- constructor(_translate, _localstorage, msgService) {
2569
- this._translate = _translate;
2570
- this._localstorage = _localstorage;
2571
- this.msgService = msgService;
2572
- /* Languages provided by the host app (single source of truth — populated
2573
- from languages.json by the host's APP_INITIALIZER and forwarded down
2574
- through <lib-common-header-lib> → <app-user-sidebar> → here).
2575
- Falls back to GlobalConstants.USERFILTEREDLANGUAGES when not supplied
2576
- so the component remains usable in legacy contexts. */
2577
- this.languages = [];
2578
- this.selectedLang = {};
2579
- }
2580
- ngOnInit() {
2581
- this.loadLanguages();
2582
- }
2583
- ngOnChanges(changes) {
2584
- if (changes['languages'] && !changes['languages'].firstChange) {
2585
- this.loadLanguages();
2586
- }
2587
- }
2588
- loadLanguages() {
2589
- /* 1. Use @Input languages if provided; fall back to GlobalConstants
2590
- for backward compatibility. */
2591
- if (!this.languages || this.languages.length === 0) {
2592
- this.languages = GlobalConstants.USERFILTEREDLANGUAGES || [];
2593
- }
2594
- /* 2. Read saved language */
2595
- const savedLang = this._localstorage.getData(COOKIECONSTANT.USERLANG);
2596
- if (savedLang) {
2597
- try {
2598
- const parsed = JSON.parse(savedLang);
2599
- const validLang = this.languages.find((x) => x.langKey === parsed?.langKey);
2600
- this.selectedLang = validLang || GlobalConstants.DEFAULTLANG;
2601
- }
2602
- catch {
2603
- this.selectedLang = GlobalConstants.DEFAULTLANG;
2604
- }
2605
- }
2606
- else {
2607
- this.selectedLang = GlobalConstants.DEFAULTLANG;
2608
- }
2609
- }
2610
- /* Language Change */
2611
- selectLang(event) {
2612
- this.selectedLang = event?.value;
2613
- this.useTranslate(this.selectedLang);
2614
- }
2615
- useTranslate(selectedLang) {
2616
- this._translate.use(selectedLang.langKey).subscribe({
2617
- next: () => {
2618
- this.saveUserLanguage(selectedLang);
2619
- },
2620
- error: () => {
2621
- this.msgService.error(this._translate.instant('Generic_lib.FailedToLoadLanguageFile'));
2622
- },
2623
- });
2624
- }
2625
- saveUserLanguage(lang) {
2626
- this._localstorage.saveData(COOKIECONSTANT.USERLANG, JSON.stringify(lang));
2627
- }
2628
- }
2629
- 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 });
2630
- 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$1.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$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }] });
2631
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgTranslationComponent, decorators: [{
2632
- type: Component,
2633
- 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" }]
2634
- }], ctorParameters: function () { return [{ type: i4.TranslateService }, { type: StorageService }, { type: ToastMsgService }]; }, propDecorators: { languages: [{
2635
- type: Input
2636
- }] } });
2637
-
2638
- class SliceToTwoPipe {
2639
- transform(textName) {
2640
- if (!textName || typeof textName !== 'string') {
2641
- return 'NA';
2642
- }
2643
- textName = textName.trim();
2644
- let separator = textName.includes(' ') ? ' ' : '_';
2645
- let splitStringArr = textName
2646
- .split(separator)
2647
- .filter((part) => part.length > 0);
2648
- if (splitStringArr.length === 0) {
2649
- return 'NA';
2650
- }
2651
- let result = '';
2652
- if (splitStringArr.length >= 2) {
2653
- result =
2654
- splitStringArr[0][0] + splitStringArr[splitStringArr.length - 1][0];
2655
- }
2656
- else {
2657
- result = splitStringArr[0].slice(0, 2);
2658
- }
2659
- return result.toLocaleUpperCase();
2660
- }
2661
- }
2662
- SliceToTwoPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SliceToTwoPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
2663
- SliceToTwoPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: SliceToTwoPipe, name: "sliceToTwo" });
2664
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SliceToTwoPipe, decorators: [{
2665
- type: Pipe,
2666
- args: [{
2667
- name: 'sliceToTwo',
2668
- }]
2669
- }] });
2670
-
2671
- class UserSidebarComponent {
2672
- constructor(dialogService, _cookieService, route, msgService, _localStorage, translateService, httpCommonService) {
2673
- this.dialogService = dialogService;
2674
- this._cookieService = _cookieService;
2675
- this.route = route;
2676
- this.msgService = msgService;
2677
- this._localStorage = _localStorage;
2678
- this.translateService = translateService;
2679
- this.httpCommonService = httpCommonService;
2680
- this.userDetails = {};
2681
- this.showProfile = false;
2682
- this.userdisplayName = '';
2683
- this.userFirstName = '';
2684
- this.userLastName = '';
2685
- this.userLastLoggedIn = '';
2686
- // private LoggedInUserID: string = '';
2687
- this.unsubscribeAPIEventListenerData = new Subject();
2688
- /* Forwarded down to <ng-translation> so the language list is sourced
2689
- from the host app instead of a separate library API call. */
2690
- this.languages = [];
2691
- this.closeDialogBox = new EventEmitter();
2692
- // public userSessionID: string = '';
2693
- this.sec = 1;
2694
- this.min = 2;
2695
- this.Hr = 30;
2696
- this.isOpenSidePopup = false;
2697
- this.showUserDetails = false;
2698
- this.isNameCopied = false;
2699
- // private themeService: ThemeService,
2700
- // private fontService: FontService,
2701
- // private cookieService: CookieService,
2702
- // this.fetchedSavedData();
2703
- }
2704
- ngOnInit() {
2705
- this.getLoggedInuserDteils();
2706
- }
2707
- //Method: Open User Setting Panel
2708
- openUserSettingPanel() {
2709
- this.ref = this.dialogService.open(GeneralConfigurationComponent, {
2710
- header: this.translateService.instant('Generic_lib.GeneralConfiguration'),
2711
- styleClass: 'general-configuration',
2712
- // data: {
2713
- // apiURL: this.apiURL,
2714
- // },
2715
- });
2716
- }
2717
- getLoggedInuserDteils() {
2718
- this.httpCommonService
2719
- .getLoggedInUserDetails()
2720
- .pipe(takeUntil$1(this.unsubscribeAPIEventListenerData))
2721
- .subscribe((result) => {
2722
- if (result && result['success'] && result['result']) {
2723
- this.userDetails = result['result'];
2724
- this.userdisplayName = this.userDetails['userDisplayName'];
2725
- this.showProfile = true;
2726
- this.getTotalSessionTime();
2727
- this.setLoggedInUserName(this.userdisplayName);
2728
- }
2729
- else {
2730
- this.showProfile = false;
2731
- this.userDetails = {};
2732
- }
2733
- });
2734
- }
2735
- setLoggedInUserName(userdisplayName) {
2736
- if (userdisplayName && userdisplayName.includes(' ')) {
2737
- let splitStringArr = userdisplayName.split(' ');
2738
- this.userFirstName = splitStringArr[0];
2739
- this.userLastName = splitStringArr[1];
2740
- }
2741
- else {
2742
- this.userdisplayName = userdisplayName;
2743
- }
2744
- }
2745
- /*Method : Copies the full user display name, as it is truncated in the panel */
2746
- copyUserDisplayName() {
2747
- const displayName = this.userDetails['userDisplayName'];
2748
- if (!displayName) {
2749
- return;
2750
- }
2751
- navigator.clipboard
2752
- .writeText(displayName)
2753
- .then(() => {
2754
- this.isNameCopied = true;
2755
- setTimeout(() => {
2756
- this.isNameCopied = false;
2757
- }, 2000);
2758
- })
2759
- .catch((error) => {
2760
- console.error('Error copying user name to clipboard: ', error);
2761
- });
2762
- }
2763
- getcloseDialogBox() {
2764
- this.closeDialogBox.emit(true);
2765
- }
2766
- getUserLoggedInTime() {
2767
- let LastLoggedIn = this.convertUTCToLocal(this.userDetails['lastLogIn']);
2768
- let LastLoggedInDate = new Date(LastLoggedIn);
2769
- this.userLastLoggedIn = LastLoggedInDate.toLocaleString();
2770
- }
2771
- logoutCurrentUser() {
2772
- this.httpCommonService
2773
- .getInitiateUserLogout()
2774
- .pipe()
2775
- .subscribe((res) => {
2776
- if (res) {
2777
- this._cookieService.clearAllCookies();
2778
- this._localStorage.clearData();
2779
- if (res && res['spLogoutUrls'] && res['spLogoutUrls'].length > 0) {
2780
- this.destoryAllSessions(res['spLogoutUrls']);
2781
- }
2782
- if (res?.['identity']) {
2783
- this.userWithWindowAuthentication();
2784
- }
2785
- else {
2786
- const path = '/' + RoutePaths.LOGINPG_PATH;
2787
- const urlnew = new URL(window.location.href).origin + '/#' + path;
2788
- window.location.href = urlnew;
2789
- }
2790
- }
2791
- else {
2792
- this.msgService.error(errorMsg.LOGOUTERROR);
2793
- // window.location.href = new URL(window.location.href).origin + '/#/login';
2794
- }
2795
- });
2796
- }
2797
- /**
2798
- * This function destroys all user sessions by opening multiple SAML logout URLs in new browser tabs.
2799
- */
2800
- destoryAllSessions(samlUrls) {
2801
- samlUrls.forEach((url) => {
2802
- window.open(url, '_blank');
2803
- });
2804
- }
2805
- userWithWindowAuthentication() {
2806
- const path = '/' + RoutePaths.LOGOUT_PATH;
2807
- this.route.navigateByUrl(path);
2808
- }
2809
- getTotalSessionTime() {
2810
- let loginTime = this.convertUTCToLocal(this.userDetails['currentLogIn']);
2811
- let loginTimeDate = new Date(loginTime);
2812
- let currentTime = new Date();
2813
- let milliseconds = currentTime.valueOf() - loginTimeDate.valueOf();
2814
- let seconds = Math.floor(milliseconds / 1000);
2815
- let minutes = Math.floor(seconds / 60);
2816
- let hours = Math.floor(minutes / 60);
2817
- seconds = seconds % 60;
2818
- minutes = minutes % 60;
2819
- this.Hr = hours;
2820
- this.min = minutes;
2821
- this.sec = seconds;
2822
- setInterval(() => {
2823
- this.updateTimer();
2824
- }, 1000);
2825
- }
2826
- updateTimer() {
2827
- if (this.sec < 59) {
2828
- this.sec += 1;
2829
- }
2830
- else {
2831
- this.sec = 0;
2832
- if (this.min < 59) {
2833
- this.min += 1;
2834
- }
2835
- else {
2836
- this.min = 0;
2837
- this.Hr += 1;
2838
- }
2839
- }
2840
- }
2841
- convertUTCToLocal(newdate) {
2842
- let localDate = newdate + 'Z';
2843
- localDate = localDate.toLocaleString();
2844
- return localDate;
2845
- }
2846
- OpenArconLearningCenter() {
2847
- const url = GlobalConstants.PlugInDownloadURL;
2848
- window.open(url, '_blank');
2849
- }
2850
- //close Popup
2851
- closeUserSettingPanel() {
2852
- if (this.ref) {
2853
- this.ref.close();
2854
- }
2855
- }
2856
- // languageChange(event: any) {
2857
- // if (!event) return;
2858
- // // this.langChange.emit(event);
2859
- // }
2860
- //*Global Font and Theme
2861
- getRedTheme() {
2862
- // const active = this.themeService.getActiveTheme();
2863
- // if (
2864
- // active.name === "blue" ||
2865
- // active.name === "black" ||
2866
- // active.name === "red"
2867
- // ) {
2868
- // this.themeService.setTheme("red");
2869
- // this.cookieService.set("themeColor", "red");
2870
- // }
2871
- }
2872
- getBlackTheme() {
2873
- // const active = this.themeService.getActiveTheme();
2874
- // if (
2875
- // active.name === "blue" ||
2876
- // active.name === "black" ||
2877
- // active.name === "red"
2878
- // ) {
2879
- // this.themeService.setTheme("blue");
2880
- // this.cookieService.set("themeColor", "blue");
2881
- // }
2882
- }
2883
- getBlueTheme() {
2884
- // const active = this.themeService.getActiveTheme();
2885
- // if (
2886
- // active.name === "blue" ||
2887
- // active.name === "black" ||
2888
- // active.name === "red"
2889
- // ) {
2890
- // this.themeService.setTheme("black");
2891
- // this.cookieService.set("themeColor", "black");
2892
- // }
2893
- }
2894
- // Accessibility Fonts sizes
2895
- getSmallFont() {
2896
- // this.fontService.setFont("smFont");
2897
- }
2898
- getMediumFont() {
2899
- // this.fontService.setFont("mdFont");
2900
- }
2901
- getLargeFont() {
2902
- // this.fontService.setFont("lgFont");
2903
- }
2904
- ngOnDestroy() {
2905
- this.closeUserSettingPanel();
2906
- this.unsubscribeAPIEventListenerData.next(true);
2907
- this.unsubscribeAPIEventListenerData.complete();
2908
- }
2909
- }
2910
- 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 });
2911
- 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" }] });
2912
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: UserSidebarComponent, decorators: [{
2913
- type: Component,
2914
- 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"] }]
2915
- }], ctorParameters: function () { return [{ type: i1$3.DialogService }, { type: CookieStorageManagerService }, { type: i3.Router }, { type: ToastMsgService }, { type: StorageService }, { type: i4.TranslateService }, { type: HttpCommonService }]; }, propDecorators: { languages: [{
2916
- type: Input
2917
- }], closeDialogBox: [{
2918
- type: Output
2919
- }] } });
2920
-
2921
- class SidePopupComponent {
2922
- constructor() {
2923
- this.closeDialogBox = new EventEmitter();
2924
- this.visible = false;
2925
- this.position = 'right';
2926
- this.header = 'Details';
2927
- }
2928
- //Method: Close the Side Panel
2929
- getcloseDialogBox() {
2930
- this.visible = false;
2931
- this.closeDialogBox.emit(true);
2932
- }
2933
- ngOnDestroy() {
2934
- this.visible = false;
2935
- }
2936
- }
2937
- SidePopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SidePopupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2938
- 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"] }] });
2939
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SidePopupComponent, decorators: [{
2940
- type: Component,
2941
- 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" }]
2942
- }], ctorParameters: function () { return []; }, propDecorators: { closeDialogBox: [{
2943
- type: Output
2944
- }], visible: [{
2945
- type: Input
2946
- }], position: [{
2947
- type: Input
2948
- }], header: [{
2949
- type: Input
2950
- }] } });
2951
-
2952
- class DateDiffPipe {
2953
- constructor() { } // Inject service
2954
- transform(date) {
2955
- if (date != null) {
2956
- const localDate = this.convertUTCToLocal(date);
2957
- let date2 = new Date(localDate);
2958
- let date1 = new Date();
2959
- if (date2 > date1) {
2960
- // Calculate the absolute difference in milliseconds between the two dates
2961
- const diffTime = Math.abs(date2.getTime() - date1.getTime());
2962
- // Calculate the number of days
2963
- const diffDays = Math.floor(diffTime / (1000 * 60 * 60 * 24));
2964
- // Calculate the remaining time after removing the days
2965
- const remainingTime = diffTime % (1000 * 60 * 60 * 24);
2966
- // Calculate the number of hours
2967
- const diffHours = Math.floor(remainingTime / (1000 * 60 * 60));
2968
- // Calculate the remaining time after removing the hours
2969
- const remainingMinutes = remainingTime % (1000 * 60 * 60);
2970
- // Calculate the number of minutes
2971
- const diffMinutes = Math.floor(remainingMinutes / (1000 * 60));
2972
- let result = '';
2973
- if (diffDays > 0) {
2974
- result += `${diffDays} days `;
2975
- }
2976
- if (diffHours > 0) {
2977
- result += `${diffHours} hours `;
2978
- }
2979
- if (diffMinutes > 0) {
2980
- result += `${diffMinutes} minutes`;
2981
- }
2982
- return result.trim();
2983
- }
2984
- else {
2985
- return '00:00:00';
2986
- }
2987
- }
2988
- return '';
2989
- }
2990
- convertUTCToLocal(newdate) {
2991
- let localDate = newdate + 'Z';
2992
- localDate = localDate.toLocaleString();
2993
- return localDate;
2994
- }
2995
- }
2996
- DateDiffPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateDiffPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
2997
- DateDiffPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: DateDiffPipe, name: "dateDiff" });
2998
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateDiffPipe, decorators: [{
2999
- type: Pipe,
3000
- args: [{
3001
- name: 'dateDiff',
3002
- }]
3003
- }], ctorParameters: function () { return []; } });
3004
-
3005
- class ViewpasswordPopupComponent {
3006
- constructor(dialogService,
3007
- // private readonly _RESTService: RESTMyaccessService,
3008
- msgService, _eventService, translateService, httpCommonService) {
3009
- this.dialogService = dialogService;
3010
- this.msgService = msgService;
3011
- this._eventService = _eventService;
3012
- this.translateService = translateService;
3013
- this.httpCommonService = httpCommonService;
3014
- this.servicePassword = 'Password';
3015
- this.showVaultBtn = false;
3016
- this.isContentLoaded = false;
3017
- this.isValueUpdated = false;
3018
- this.OpenTillDate = '';
3019
- this.unsubscribeAPIEventListenerData = new Subject();
3020
- this.totalEmails = '';
3021
- this.SSHFileType = '';
3022
- this.SSHFileName = '';
3023
- this.isSSHKey = false;
3024
- this.isPasswordVisible = true;
3025
- this.PasswordViewSuccessMsg = '';
3026
- this.SSHPasswordViewSuccessMsg = '';
3027
- this.SSHPasswordViewErrorMsg = '';
3028
- this.sshKeyForDownload = '';
3029
- this.getSelectedGridData(dialogService.data); //Getting Data from popup
3030
- }
3031
- ngAfterViewInit() {
3032
- this.getTranslateContent();
3033
- }
3034
- ngOnInit() {
3035
- this.getAccessServicePassword();
3036
- // this.getCurrentEmailsCount()
3037
- }
3038
- getSelectedGridData(gridData) {
3039
- if (gridData && gridData['payload']) {
3040
- this.mailDetails = gridData['payload'];
3041
- this.SSHFileType = gridData['SSHfileType'];
3042
- this.showVaultBtn = gridData['btnStatus'];
3043
- this.OpenTillDate = this.mailDetails['spv_Opentildate'];
3044
- this.isSSHKey = this.mailDetails['sshkey_isenabled'];
3045
- }
3046
- }
3047
- //Method: Convert text one Lang. to another
3048
- getTranslateContent() {
3049
- this.translateService
3050
- .get([
3051
- 'Generic_lib.PasswordViewSuccessMsg',
3052
- 'Generic_lib.SSHPasswordViewSuccessMsg',
3053
- 'Generic_lib.SSHPasswordViewErrorMsg',
3054
- ])
3055
- .pipe(takeUntil$1(this.unsubscribeAPIEventListenerData))
3056
- .subscribe((trans) => {
3057
- this.PasswordViewSuccessMsg =
3058
- trans['Generic_lib.PasswordViewSuccessMsg'];
3059
- this.SSHPasswordViewSuccessMsg =
3060
- trans['Generic_lib.SSHPasswordViewSuccessMsg'];
3061
- this.SSHPasswordViewErrorMsg =
3062
- trans['Generic_lib.SSHPasswordViewErrorMsg'];
3063
- });
3064
- }
3065
- //Method: Grants access to the View password for a service
3066
- getAccessServicePassword() {
3067
- this.isContentLoaded = false;
3068
- let mailDetails = {
3069
- mailid: String(this.mailDetails['smi_SpvId']),
3070
- // userid: this.userId,
3071
- // userSessionID: this.userSessionId,
3072
- };
3073
- this.httpCommonService
3074
- .getAccessToViewServicePassword(mailDetails)
3075
- .pipe(takeUntil$1(this.unsubscribeAPIEventListenerData), finalize$1(() => {
3076
- this.isContentLoaded = true;
3077
- }))
3078
- .subscribe((result) => {
3079
- this.servicePassword = result?.sshKeyPassPhrase;
3080
- this.SSHFileName = result?.sshFileName;
3081
- this.sshKeyForDownload = result?.sshKey;
3082
- this.getCurrentEmailsCount();
3083
- });
3084
- }
3085
- //Method: Hide password of a service
3086
- getHideServicePassword() {
3087
- this.isValueUpdated = true;
3088
- let mailDetails = {
3089
- spvId: String(this.mailDetails['smi_SpvId']),
3090
- // userId: this.userId,
3091
- };
3092
- this.httpCommonService
3093
- .getProtectedServiceCredentials(mailDetails)
3094
- .pipe(takeUntil$1(this.unsubscribeAPIEventListenerData), finalize$1(() => {
3095
- this.isValueUpdated = false;
3096
- }))
3097
- .subscribe((result) => {
3098
- if (result) {
3099
- this._eventService.emitUserEmail({
3100
- component: 'view-pwd',
3101
- refreshGrid: true,
3102
- });
3103
- }
3104
- });
3105
- }
3106
- /*Method : GET
3107
- Action : Fetch User Mails Count */
3108
- getCurrentEmailsCount() {
3109
- this.httpCommonService
3110
- .getUnreadUserEmailsCount()
3111
- .pipe(takeUntil$1(this.unsubscribeAPIEventListenerData))
3112
- .subscribe((count) => {
3113
- if (count <= 0) {
3114
- this.totalEmails = '';
3115
- }
3116
- else if (count > 99) {
3117
- this.totalEmails = '99+';
3118
- }
3119
- else {
3120
- this.totalEmails = String(count);
3121
- }
3122
- this.updateMailCount();
3123
- });
3124
- }
3125
- getGenerateFile() {
3126
- this.generateSSHKeyFile();
3127
- this.getHideServicePassword();
3128
- }
3129
- generateSSHKeyFile() {
3130
- try {
3131
- const blob = new Blob([this.sshKeyForDownload], { type: '' });
3132
- const url = window.URL.createObjectURL(blob);
3133
- const a = document.createElement('a');
3134
- a.href = url;
3135
- a.download = `${this.SSHFileName}.${this.SSHFileType}`;
3136
- document.body.appendChild(a);
3137
- a.click();
3138
- document.body.removeChild(a);
3139
- window.URL.revokeObjectURL(url);
3140
- this.msgService.success(this.SSHPasswordViewSuccessMsg);
3141
- }
3142
- catch (error) {
3143
- console.error('Error generating SSH key file:', error);
3144
- this.msgService.error(this.SSHPasswordViewErrorMsg);
3145
- }
3146
- }
3147
- updateMailCount() {
3148
- this._eventService.emitUserEmail({
3149
- component: 'email-count',
3150
- mailCount: this.totalEmails,
3151
- });
3152
- }
3153
- copyToClipboard(text) {
3154
- navigator.clipboard
3155
- .writeText(text)
3156
- .then(() => {
3157
- this.msgService.success(this.PasswordViewSuccessMsg);
3158
- })
3159
- .catch((error) => {
3160
- console.error('Error copying text to clipboard: ', error);
3161
- });
3162
- }
3163
- togglePasswordVisibility() {
3164
- this.isPasswordVisible = !this.isPasswordVisible;
3165
- }
3166
- showPassword() {
3167
- if (this.isSSHKey && !this.servicePassword) {
3168
- return false;
3169
- }
3170
- return true;
3171
- }
3172
- ngOnDestroy() {
3173
- // Unsubscribing All the Observer
3174
- this.unsubscribeAPIEventListenerData.next(true);
3175
- this.unsubscribeAPIEventListenerData.complete();
3176
- }
3177
- }
3178
- 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 });
3179
- 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" }] });
3180
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ViewpasswordPopupComponent, decorators: [{
3181
- type: Component,
3182
- 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"] }]
3183
- }], ctorParameters: function () { return [{ type: i1$3.DynamicDialogConfig }, { type: ToastMsgService }, { type: EventService }, { type: i4.TranslateService }, { type: HttpCommonService }]; } });
3184
-
3185
- class NoServiceMyAccessPgComponent {
3186
- constructor() {
3187
- 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';
3188
- this.subHeading = '';
3189
- }
3190
- }
3191
- NoServiceMyAccessPgComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NoServiceMyAccessPgComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3192
- 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"] });
3193
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NoServiceMyAccessPgComponent, decorators: [{
3194
- type: Component,
3195
- 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"] }]
3196
- }], ctorParameters: function () { return []; }, propDecorators: { heading: [{
3197
- type: Input
3198
- }], subHeading: [{
3199
- type: Input
3200
- }] } });
3201
-
3202
- class GridPaginationComponent {
3203
- constructor() {
3204
- this.first = 0;
3205
- this.currentPgNo = 0;
3206
- this.rows = GlobalConstants.PAGEROW;
3207
- this.totalRecords = 0;
3208
- this.onPgChange = new EventEmitter();
3209
- }
3210
- onPageChange(event) {
3211
- event['page'] = event['page'] + 1; // By default pg index 0 so add +1
3212
- this.currentPgNo = event.page;
3213
- this.rows = event.rows;
3214
- //Emit Page No and PageRow Size
3215
- this.onPgChange.emit({
3216
- currentPgNo: this.currentPgNo,
3217
- perPgRows: this.rows,
3218
- });
3219
- }
3220
- }
3221
- GridPaginationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: GridPaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3222
- 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"] }] });
3223
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: GridPaginationComponent, decorators: [{
3224
- type: Component,
3225
- 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" }]
3226
- }], ctorParameters: function () { return []; }, propDecorators: { currentPgNo: [{
3227
- type: Input
3228
- }], rows: [{
3229
- type: Input
3230
- }], totalRecords: [{
3231
- type: Input
3232
- }], onPgChange: [{
3233
- type: Output
3234
- }] } });
3235
-
3236
- class customDateFormatPipe {
3237
- constructor() {
3238
- this.datePipe = new DatePipe('en-US');
3239
- }
3240
- transform(value) {
3241
- if (!value) {
3242
- return 'Not Applicable';
3243
- }
3244
- const parsedDate = new Date(value);
3245
- if (isNaN(parsedDate.getTime())) {
3246
- return 'Invalid Date';
3247
- }
3248
- return this.datePipe.transform(parsedDate, 'dd-MMM-yyyy HH:mm:ss');
3249
- }
3250
- }
3251
- customDateFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: customDateFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
3252
- customDateFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: customDateFormatPipe, name: "customDateFormat" });
3253
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: customDateFormatPipe, decorators: [{
3254
- type: Pipe,
3255
- args: [{
3256
- name: 'customDateFormat',
3257
- }]
3258
- }] });
3259
-
3260
- class UserMailboxComponent {
3261
- constructor(dialogService,
3262
- // private readonly _restMyaccessService: RESTMyaccessService,
3263
- // private readonly loginService: RESTLoginFormService,
3264
- _eventService, translate, libService, httpCommonService) {
3265
- this.dialogService = dialogService;
3266
- this._eventService = _eventService;
3267
- this.translate = translate;
3268
- this.libService = libService;
3269
- this.httpCommonService = httpCommonService;
3270
- this.closeMailDialogBox = new EventEmitter();
3271
- this.ListOfUserAssingedMails = [];
3272
- // private userId: string;
3273
- this.unsubscribeAPIEventListenerData = new Subject();
3274
- this.showVaultBtn = false;
3275
- this.SSHFileName = 'ppk';
3276
- this.hasUserAssignedMails = true;
3277
- //Pagintion
3278
- this.currentPgNo = 1;
3279
- this.perPgRows = 10;
3280
- this.totalCount = 0;
3281
- this.NoServiceMsgText = '';
3282
- this.isContentLoaded = false;
3283
- this.repeatLoader = Array.from({ length: this.perPgRows }).map((_, i) => `Item #${i}`);
3284
- this.apiURL = '';
3285
- }
3286
- ngOnInit() {
3287
- this.onLoadMethods();
3288
- }
3289
- /* Require Methods on PageLoad */
3290
- onLoadMethods() {
3291
- this.getUserEmails();
3292
- this.getglobalConfigDetails();
3293
- this._eventService.listenerUserEmail().subscribe((data) => {
3294
- if (data && data['component'] === 'view-pwd') {
3295
- if (data['refreshGrid']) {
3296
- this.ref?.close();
3297
- // this.getUserEmails();
3298
- }
3299
- }
3300
- });
3301
- }
3302
- openViewPasswordPanel(mailDetails) {
3303
- this.ref = this.dialogService.open(ViewpasswordPopupComponent, {
3304
- header: mailDetails.sshkey_isenabled
3305
- ? this.translate.instant('Generic_lib.SSHKey')
3306
- : this.translate.instant('Generic_lib.Password'),
3307
- styleClass: 'view-pass-details',
3308
- data: {
3309
- payload: mailDetails,
3310
- btnStatus: this.showVaultBtn,
3311
- SSHfileType: this.SSHFileName,
3312
- },
3313
- });
3314
- // Handle the close event here
3315
- this.ref.onClose.subscribe((result) => {
3316
- this.getUserEmails();
3317
- });
3318
- }
3319
- /*Action : Fetching user Emails from a API */
3320
- getUserEmails() {
3321
- this.isContentLoaded = false;
3322
- let payload = {
3323
- pageSize: this.perPgRows,
3324
- pageNumber: this.currentPgNo,
3325
- };
3326
- this.httpCommonService
3327
- .getUserAssignedMails(payload)
3328
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData), finalize(() => {
3329
- this.isContentLoaded = true;
3330
- }))
3331
- .subscribe((response) => {
3332
- this.ListOfUserAssingedMails = response;
3333
- if (this.ListOfUserAssingedMails.length > 0) {
3334
- this.hasUserAssignedMails = true;
3335
- this.getTotalNoOfRecords();
3336
- }
3337
- else {
3338
- this.hasUserAssignedMails = false;
3339
- this.NoServiceMsgText = errorMsg.NOMAILFOUND;
3340
- }
3341
- });
3342
- }
3343
- //Note: Get Total No of Records for Pagination
3344
- getTotalNoOfRecords() {
3345
- if (this.ListOfUserAssingedMails.length > 0 &&
3346
- this.ListOfUserAssingedMails[0]['totalRecords'] != null) {
3347
- this.totalCount = this.ListOfUserAssingedMails[0]['totalRecords'];
3348
- }
3349
- }
3350
- /*Method : POST
3351
- Action : Get configuration ID based on to show hide Vault Btn*/
3352
- getglobalConfigDetails() {
3353
- this.httpCommonService
3354
- .getglobalConfigDetails('1', [247, 338])
3355
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData))
3356
- .subscribe((data) => {
3357
- if (data && data.length > 0) {
3358
- data.forEach((element) => {
3359
- //For Vault Btn
3360
- if (element && element['id'] === 247 && element['value'] === '0') {
3361
- this.showVaultBtn = false;
3362
- }
3363
- else {
3364
- this.showVaultBtn = true;
3365
- }
3366
- //For Vault Btn
3367
- if (element && element['id'] === 338 && element['value'] === '1') {
3368
- this.SSHFileName = 'pem';
3369
- }
3370
- else {
3371
- this.SSHFileName = 'ppk';
3372
- }
3373
- });
3374
- }
3375
- });
3376
- }
3377
- //Method: Fetch User Assigned Email based on PageNo
3378
- updateDataOnPageChange(pageDetails) {
3379
- this.currentPgNo = pageDetails['currentPgNo'];
3380
- this.perPgRows = pageDetails['perPgRows'];
3381
- this.getUserEmails();
3382
- }
3383
- closeMailBox() {
3384
- this.closeMailDialogBox.emit();
3385
- }
3386
- ngOnDestroy() {
3387
- this.unsubscribeAPIEventListenerData.next(true);
3388
- this.unsubscribeAPIEventListenerData.complete();
3389
- }
3390
- }
3391
- 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 });
3392
- 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" }] });
3393
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: UserMailboxComponent, decorators: [{
3394
- type: Component,
3395
- 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"] }]
3396
- }], ctorParameters: function () { return [{ type: i1$3.DialogService }, { type: EventService }, { type: i4.TranslateService }, { type: CommonHeaderLibService }, { type: HttpCommonService }]; }, propDecorators: { closeMailDialogBox: [{
3397
- type: Output
3398
- }], apiURL: [{
3399
- type: Input
3400
- }] } });
3401
-
3402
- class CommonHeaderLibComponent {
3403
- constructor(cdRef, _signalRService, _eventService, translate, httpCommonService, msgService) {
3404
- this.cdRef = cdRef;
3405
- this._signalRService = _signalRService;
3406
- this._eventService = _eventService;
3407
- this.translate = translate;
3408
- this.httpCommonService = httpCommonService;
3409
- this.msgService = msgService;
3410
- // @Input() apiURL: string = '';
3411
- this.EnableLogo = true;
3412
- this.moduleName = '';
3413
- this.EnableTimeZone = true;
3414
- this.EnableLOB = true;
3415
- this.showAllLOB = false;
3416
- this.EnableMail = true;
3417
- this.EnableNotifications = true;
3418
- this.EnableMoreApps = true;
3419
- this.EnableProfile = true;
3420
- /* Supported languages forwarded down to <ng-translation>. The host app
3421
- loads languages.json once (via its APP_INITIALIZER) and binds the
3422
- resulting list here, eliminating a duplicate fetch from the library. */
3423
- this.languages = [];
3424
- this.timezoneDetails = new EventEmitter();
3425
- this.lobSelected = new EventEmitter();
3426
- this.getBgImage = new EventEmitter();
3427
- this.langChange = new EventEmitter();
3428
- this.overlayStateChange = new EventEmitter();
3429
- this.userTimeZoneAbbreviations = '';
3430
- this.userTimeZoneFullForm = '';
3431
- this.userLOBList = [];
3432
- this.showLobLoader = true;
3433
- this.totalEmails = '';
3434
- this.userNotificationCount = '';
3435
- this.ListOfUserPrivillegedApp = [];
3436
- this.userdisplayName = '';
3437
- this.userDetailsInfo = [];
3438
- this.isOpenSidePopup = false;
3439
- this.showUserDetails = false;
3440
- this.userAppLoaderLoadder = true;
3441
- this.repeatLoader = new Array(12).fill(0);
3442
- this.showMailboxScreenflag = false;
3443
- this.isErrorFound = false;
3444
- this.userNotificationCountObj = {};
3445
- this.eventwiseNotificationCount = [];
3446
- this.notificationLoadder = true;
3447
- this.unsubscribeAPIEventListenerData = new Subject();
3448
- this.unsubscribeSidebarListenerData = new Subject();
3449
- this.userId = '';
3450
- this.assetCategoryMenuList = [];
3451
- this.showbusinessFileds = false;
3452
- this.showInfraFileds = false;
3453
- this.showfiltersearch = true;
3454
- this.clickInside = false;
3455
- this.isLobContentLoaded = false;
3456
- this.isHeaderContentLoaded = false;
3457
- this.requestTypeId = 1;
3458
- this.accessTypes = [
3459
- { id: 1, name: 'Permanent' },
3460
- { id: 2, name: 'OneTime' },
3461
- { id: 3, name: 'TimeBased' },
3462
- ];
3463
- this.selectedAssetName = {
3464
- assetId: -100,
3465
- assetName: 'All',
3466
- };
3467
- this.assetName = '';
3468
- this.assetId = 0;
3469
- this.allCategory = {
3470
- assetTypeId: -100,
3471
- assetTypeValue: 'All Section',
3472
- assetList: [
3473
- {
3474
- assetId: -100,
3475
- assetName: 'All',
3476
- },
3477
- ],
3478
- };
3479
- this.translateName = [
3480
- 'Generic_lib.Permanent',
3481
- 'Generic_lib.OneTime',
3482
- 'Generic_lib.TimeBased',
3483
- ];
3484
- this.appPanel = OverlayPanel;
3485
- this.isErrorOccured = false;
3486
- // @Output() public refreshNotification = new EventEmitter<boolean>();
3487
- this.repeatLoader1 = new Array(9).fill(0);
3488
- // Mapping of app codes to their pre-connection validation checks.
3489
- // Apps not listed here open the connection directly without a config check.
3490
- this.APP_CONNECTION_CHECKS = {
3491
- APP032: {
3492
- check: () => this.httpCommonService.checkMFAConfiguration(),
3493
- },
3494
- APP033: {
3495
- // Backend expects the lowercase app code (mirrors Workflow_UI MR !287)
3496
- check: () => this.httpCommonService.getInternalAppConfig('app033'),
3497
- },
3498
- };
3499
- this.setWebAPIURL();
3500
- }
3501
- ngOnChanges(changes) {
3502
- if (changes['EnableLOB']) {
3503
- if (changes['EnableLOB'].currentValue === true) {
3504
- this.getListofLOB();
3505
- }
3506
- }
3507
- }
3508
- ngOnInit() {
3509
- this.headerLogo = '';
3510
- this.overlayStateChange.emit(false);
3511
- this.setWebAPIURL();
3512
- if (this.EnableLogo)
3513
- this.loadHeaderLogo();
3514
- this.onLoadMethod();
3515
- }
3516
- onLoadMethod() {
3517
- this.onDemandActions();
3518
- if (this.EnableNotifications)
3519
- this.getEventwiseNotificationCount();
3520
- this.getUserActivityDetails();
3521
- }
3522
- //* on click of Mail icon
3523
- showMailBoxScreen() {
3524
- this.showMailboxScreenflag = true;
3525
- this.overlayStateChange.emit(true);
3526
- }
3527
- hideMailBoxScreen() {
3528
- this.showMailboxScreenflag = false;
3529
- this.overlayStateChange.emit(false);
3530
- }
3531
- //* Main language change emitter
3532
- languageChange(event) {
3533
- if (!event)
3534
- return;
3535
- this.langChange.emit(event);
3536
- }
3537
- showUserAppsPanel(event) {
3538
- this.appPanel.toggle(event);
3539
- if (this.ListOfUserPrivillegedApp.length === 0) {
3540
- this.getUserAssignedApp();
3541
- }
3542
- }
3543
- showUserDetailsPanel() {
3544
- this.openSidePopup();
3545
- this.showUserDetails = true;
3546
- }
3547
- closeSidePopup() {
3548
- this.showUserDetails = false;
3549
- this.isOpenSidePopup = false;
3550
- }
3551
- openSidePopup() {
3552
- this.isOpenSidePopup = true;
3553
- }
3554
- //Method: Take Connection of Application
3555
- getConnectionofApplication(appCode) {
3556
- // Close the apps (9-dots) overlay panel immediately on selection.
3557
- this.appPanel?.hide();
3558
- const appCheck = this.APP_CONNECTION_CHECKS[appCode];
3559
- const commonError = 'Unable to verify the application configuration.';
3560
- // Apps without a configured check connect directly.
3561
- if (!appCheck) {
3562
- this.httpCommonService.openAppConnection(appCode);
3563
- return;
3564
- }
3565
- appCheck
3566
- .check()
3567
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData))
3568
- .subscribe({
3569
- next: (response) => {
3570
- if (response?.isValid) {
3571
- this.httpCommonService.openAppConnection(appCode);
3572
- }
3573
- else {
3574
- this.msgService.error(response?.errorMessage || commonError);
3575
- }
3576
- },
3577
- error: () => {
3578
- this.msgService.error(commonError);
3579
- },
3580
- });
3581
- }
3582
- async getConnectToSingalRhub() {
3583
- try {
3584
- await this._signalRService.initializeSignalRConnection();
3585
- }
3586
- catch (error) {
3587
- console.error('All SignalR hub connections failed.', error);
3588
- }
3589
- }
3590
- ngAfterViewInit() {
3591
- this.ListenToTranslateEvent();
3592
- // Initialize modal instance when DOM is ready
3593
- this.bsModalInstance = new bootstrap.Modal(this.notifyModal.nativeElement);
3594
- }
3595
- /*Method : Listen to the Other component event
3596
- Action : It used to listen diff. component command on basis of perform some actions */
3597
- onDemandActions() {
3598
- //Listen the Event Emit by SignalR Hub
3599
- this._signalRService
3600
- .listenerEventMsg()
3601
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData))
3602
- .subscribe((data) => {
3603
- if (data && data['application'] && data['events']) {
3604
- this.isErrorFound = false;
3605
- this.userNotificationCountObj = data['application'];
3606
- //Note: If Notification count > 99
3607
- if (this.userNotificationCountObj &&
3608
- this.userNotificationCountObj['PendingCount']) {
3609
- if (Number(this.userNotificationCountObj['PendingCount']) > 99) {
3610
- this.userNotificationCount = '99+';
3611
- }
3612
- else {
3613
- this.userNotificationCount = String(this.userNotificationCountObj['PendingCount']);
3614
- }
3615
- }
3616
- else {
3617
- this.userNotificationCount = '';
3618
- }
3619
- this.eventwiseNotificationCount = data['events'];
3620
- }
3621
- });
3622
- this.listenToTimeZoneConfig();
3623
- this.listenToEmailCountEvent();
3624
- }
3625
- //Listen to TimeZone Config
3626
- listenToTimeZoneConfig() {
3627
- this._eventService
3628
- .listenerTimezone()
3629
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData))
3630
- .subscribe((response) => {
3631
- if (response && response['component'] == 'timezone') {
3632
- this.userTimeZoneAbbreviations =
3633
- response['usertimezoneAbbreviations'];
3634
- this.timezoneDetails.emit({
3635
- abbreviations: response['usertimezoneAbbreviations'],
3636
- userTimeZone: response['id'],
3637
- timelist: response['timelist'],
3638
- });
3639
- this.userTimeZoneFullForm = response['userTimeZoneFullForm'];
3640
- }
3641
- });
3642
- }
3643
- //Listen to Email Count when user Read
3644
- listenToEmailCountEvent() {
3645
- this._eventService
3646
- .listenerUserEmail()
3647
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData))
3648
- .subscribe((data) => {
3649
- if (data && data['component'] === 'email-count') {
3650
- this.totalEmails = data['mailCount'];
3651
- }
3652
- });
3653
- }
3654
- //Method: Convert text one Lang. to another
3655
- ListenToTranslateEvent() {
3656
- this.translate.onLangChange.subscribe((val) => {
3657
- this.getTranslateContent();
3658
- });
3659
- }
3660
- //Method: Convert text one Lang. to another Event Listener
3661
- getTranslateContent() {
3662
- this.translate.get(this.translateName).subscribe((trans) => {
3663
- this.accessTypes.forEach((item, index) => {
3664
- const key = this.translateName[index];
3665
- item['name'] = trans[key];
3666
- });
3667
- });
3668
- }
3669
- OpenNotificationModal() {
3670
- // const modalRef = this.modalService.open(NotificationSidebarComponent);
3671
- // modalRef.componentInstance.lesson = lesson;
3672
- this.bsModalInstance?.show();
3673
- }
3674
- closeModal() {
3675
- this.bsModalInstance?.hide();
3676
- }
3677
- //Method: Call APi to Fetch New Notification Count
3678
- getEventwiseNotification() {
3679
- // this.refreshNotification.emit(true);
3680
- this.getEventwiseNotificationCount();
3681
- }
3682
- setWebAPIURL() {
3683
- if (GlobalConstants.baseURL == undefined) {
3684
- if (localStorage.getItem('_WAU')) {
3685
- GlobalConstants.baseURL = localStorage.getItem('_WAU') || '';
3686
- }
3687
- else {
3688
- let parsedURL = new URL(window.location.href);
3689
- let WebApiUrl = parsedURL.origin;
3690
- GlobalConstants.baseURL = WebApiUrl;
3691
- localStorage.setItem('_WAU', GlobalConstants.baseURL);
3692
- }
3693
- }
3694
- }
3695
- getUserActivityDetails() {
3696
- // Reset error state before API calls
3697
- this.isErrorFound = false;
3698
- // Initialize response container for forkJoin
3699
- const responseSet = {};
3700
- // Build payload once for notification API
3701
- const notificationPayload = {
3702
- ApplicationName: GlobalConstants.applicationName,
3703
- UserId: String(this.userId),
3704
- };
3705
- // Add notification API if enabled
3706
- if (this.EnableNotifications) {
3707
- responseSet.notifications = this.httpCommonService
3708
- .getWorkFlowTicketCount(notificationPayload)
3709
- .pipe(
3710
- // Extract valid notification data
3711
- map((response) => response),
3712
- // Handle API error without breaking forkJoin
3713
- catchError(() => {
3714
- this.isErrorFound = true;
3715
- return of(null);
3716
- }));
3717
- }
3718
- // Add user profile API if enabled
3719
- if (this.EnableProfile) {
3720
- responseSet.userinfo = this.httpCommonService.getLoggedInUserDetails();
3721
- }
3722
- // Add timezone API if enabled
3723
- if (this.EnableTimeZone) {
3724
- responseSet.timeZone = this.httpCommonService.getGlobalTimeZone();
3725
- }
3726
- // Add unread email count API if enabled
3727
- if (this.EnableMail) {
3728
- responseSet.emailCount =
3729
- this.httpCommonService.getUnreadUserEmailsCount();
3730
- }
3731
- // Execute all enabled APIs together
3732
- forkJoin(responseSet)
3733
- .pipe(
3734
- // Mark header loading as completed
3735
- finalize(() => {
3736
- this.isHeaderContentLoaded = true;
3737
- }))
3738
- .subscribe((response) => {
3739
- // Process notification data
3740
- if (response.notifications) {
3741
- this.getTotalNotificationCounts(response.notifications);
3742
- }
3743
- // Process user profile data
3744
- if (response.userinfo) {
3745
- this.getLoggedInUserDetails(response.userinfo);
3746
- }
3747
- // Process timezone list
3748
- if (response.timeZone) {
3749
- this.getListOfTimeZones(response.timeZone);
3750
- }
3751
- // Process unread email count
3752
- if (response.emailCount) {
3753
- this.getUserEmailCount(response.emailCount);
3754
- }
3755
- });
3756
- }
3757
- getTotalNotificationCounts(data) {
3758
- // this.isErrorFound = false;
3759
- this.userNotificationCountObj = data || {};
3760
- if (this.userNotificationCountObj &&
3761
- this.userNotificationCountObj['PendingCount']) {
3762
- if (Number(this.userNotificationCountObj['PendingCount']) > 99) {
3763
- this.userNotificationCount = '99+';
3764
- }
3765
- else {
3766
- this.userNotificationCount = String(this.userNotificationCountObj['PendingCount']);
3767
- }
3768
- }
3769
- else {
3770
- this.userNotificationCount = '';
3771
- }
3772
- }
3773
- /*Method : Retrieves details of the currently logged-in user*/
3774
- getLoggedInUserDetails(response) {
3775
- if (response && response['success'] && response['result']) {
3776
- this.userDetails = response['result'];
3777
- this.userdisplayName = this.userDetails['userDisplayName'];
3778
- }
3779
- }
3780
- /*Method : GET
3781
- Action : Get List of Time Zone*/
3782
- getListOfTimeZones(result) {
3783
- if (result && result['abbreviations']) {
3784
- this.timezoneDetails.emit(result);
3785
- this.userTimeZoneAbbreviations = result['abbreviations'];
3786
- this.userTimeZoneFullForm = result['userTimeZone'];
3787
- }
3788
- }
3789
- /*Method : GET
3790
- Action : Transformation fo Count */
3791
- getUserEmailCount(count) {
3792
- if (count <= 0) {
3793
- this.totalEmails = '';
3794
- }
3795
- else if (count > 99) {
3796
- this.totalEmails = '99+';
3797
- }
3798
- else {
3799
- this.totalEmails = String(count);
3800
- }
3801
- }
3802
- /** API to get the header LOGO */
3803
- loadHeaderLogo() {
3804
- this.httpCommonService.getLogo().subscribe((img) => {
3805
- this.getBgImage.emit(img);
3806
- this.headerLogo = 'data:image/png;base64,' + img['logoImg'];
3807
- });
3808
- }
3809
- /** API to get the timezone */
3810
- // getUserPreferredTimezone() {
3811
- // this.httpCommonService.getGlobalTimeZone().subscribe((res: any) => {
3812
- // if (res?.abbreviations) {
3813
- // this.userTimeZoneAbbreviations = res.abbreviations;
3814
- // this.userTimeZoneFullForm = res?.userTimeZone;
3815
- // }
3816
- // });
3817
- // }
3818
- //* get Lob AI call and initial LOB emitter
3819
- getListofLOB() {
3820
- this.showLobLoader = true;
3821
- this.httpCommonService.getLOBList().subscribe((res) => {
3822
- this.showLobLoader = false;
3823
- this.userLOBList = res.result;
3824
- //* As per parent input, here we add All LOB option in DDL
3825
- if (this.showAllLOB)
3826
- this.userLOBList.unshift({
3827
- lobId: -1,
3828
- lobName: 'All LOB',
3829
- });
3830
- let initialLobSelected = this.getLobById(this.userLOBList, this.userLOBList[0]?.lobId);
3831
- const preSelectedLob = JSON.parse(localStorage.getItem('XOB') || 'null');
3832
- let isPreSelectedLobExistsInList = this.userLOBList.some((lob) => Number(lob.lobId) == Number(preSelectedLob?.LOBId));
3833
- if (preSelectedLob &&
3834
- Number(preSelectedLob.LOBId) &&
3835
- isPreSelectedLobExistsInList) {
3836
- //* Emitting 1st LOB for LOB List as LOb details available in localstorega
3837
- this.selectedLOBId = preSelectedLob?.LOBId;
3838
- this.tempSelectedLOBId = preSelectedLob?.LOBId;
3839
- initialLobSelected = this.getLobById(this.userLOBList, this.selectedLOBId);
3840
- }
3841
- else {
3842
- //* Emitting 1st LOB for LOB List if localstorage have null LOB details
3843
- this.selectedLOBId = this.userLOBList[0]?.lobId;
3844
- this.tempSelectedLOBId = this.userLOBList[0]?.lobId;
3845
- localStorage.setItem('XOB', JSON.stringify(initialLobSelected));
3846
- }
3847
- this.lobSelected.emit(initialLobSelected);
3848
- this.cdRef.detectChanges();
3849
- });
3850
- }
3851
- //* Selected LOB emitter
3852
- onLobChangeEvent(event) {
3853
- this.selectedLOBId = event.value;
3854
- this.openConfirm(event);
3855
- }
3856
- openConfirm(event) {
3857
- this.confirmDialog.openConfirmModal(event);
3858
- }
3859
- lobChangeConfirmation(event) {
3860
- if (event) {
3861
- this.tempSelectedLOBId = this.selectedLOBId;
3862
- let selectedLob = this.getLobById(this.userLOBList, this.tempSelectedLOBId);
3863
- localStorage.setItem('XOB', JSON.stringify(selectedLob));
3864
- this.lobSelected.emit(selectedLob);
3865
- }
3866
- else {
3867
- this.selectedLOBId = this.tempSelectedLOBId;
3868
- }
3869
- }
3870
- setCustomLobId(lobId) {
3871
- if (this.userLOBList) {
3872
- let filteredLobs = this.getLobById(this.userLOBList, lobId);
3873
- if (Object.keys(filteredLobs).length > 0) {
3874
- this.selectedLOBId = lobId;
3875
- //* If the LOB is forcefully set from the parent module, CustomLOBSetByParent is set to true; otherwise, it is set to false.
3876
- filteredLobs['CustomLOBSetByParent'] = true;
3877
- this.lobSelected.emit(filteredLobs);
3878
- localStorage.setItem('XOB', JSON.stringify(filteredLobs));
3879
- }
3880
- else {
3881
- //todo need to do translation
3882
- this.msgService.error('The LOB you are trying to set is not available.');
3883
- }
3884
- }
3885
- }
3886
- //* Helper function to get selected LOB Object by LobId
3887
- getLobById(list, id) {
3888
- const item = list.find((x) => x.lobId === id);
3889
- if (!item)
3890
- return {};
3891
- return {
3892
- LOBId: item.lobId,
3893
- LOBName: item.lobName,
3894
- CustomLOBSetByParent: false,
3895
- };
3896
- }
3897
- //* get the Mail count
3898
- // getMailCount() {
3899
- // this.httpCommonService
3900
- // .getUnreadUserEmailsCount()
3901
- // .pipe(takeUntil(this.unsubscribeAPIEventListenerData))
3902
- // .subscribe((result) => {
3903
- // this.totalEmails = result;
3904
- // });
3905
- // }
3906
- //Action: Used to Get Total Eventwise User Notification Count */
3907
- getEventwiseNotificationCount() {
3908
- let payload = {
3909
- ApplicationName: GlobalConstants.applicationName,
3910
- UserId: String(this.userId),
3911
- };
3912
- this.notificationLoadder = true;
3913
- this.httpCommonService
3914
- .getWorkFlowTicketEventwiseCount(payload)
3915
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData), finalize(() => (this.notificationLoadder = false)))
3916
- .subscribe({
3917
- next: (data) => {
3918
- this.isErrorFound = data.length == 0;
3919
- this.eventwiseNotificationCount = data;
3920
- },
3921
- error: () => {
3922
- this.isErrorFound = true;
3923
- },
3924
- });
3925
- }
3926
- //* Get Module privilege list
3927
- getUserAssignedApp() {
3928
- this.ListOfUserPrivillegedApp = [];
3929
- this.userAppLoaderLoadder = true;
3930
- this.httpCommonService
3931
- .getUserAssignedApps()
3932
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData))
3933
- .subscribe((result) => {
3934
- this.userAppLoaderLoadder = false;
3935
- this.ListOfUserPrivillegedApp = result;
3936
- });
3937
- }
3938
- //* Get User details
3939
- getLoggedInuserDetails() {
3940
- this.httpCommonService.getLoggedInUserDetails().subscribe((result) => {
3941
- this.userDetailsInfo = result.result;
3942
- this.userdisplayName = this.userDetailsInfo['userDisplayName'];
3943
- });
3944
- }
3945
- ngOnDestroy() {
3946
- this.unsubscribeAPIEventListenerData.next(true);
3947
- this.unsubscribeAPIEventListenerData.complete();
3948
- this.unsubscribeSidebarListenerData.next(true);
3949
- this.unsubscribeSidebarListenerData.complete();
3950
- }
3951
- }
3952
- 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 });
3953
- 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$1.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$1.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 });
3954
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CommonHeaderLibComponent, decorators: [{
3955
- type: Component,
3956
- 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"] }]
3957
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: RestSignalRService }, { type: EventService }, { type: i4.TranslateService }, { type: HttpCommonService }, { type: ToastMsgService }]; }, propDecorators: { EnableLogo: [{
3958
- type: Input
3959
- }], moduleName: [{
3960
- type: Input
3961
- }], EnableTimeZone: [{
3962
- type: Input
3963
- }], EnableLOB: [{
3964
- type: Input
3965
- }], showAllLOB: [{
3966
- type: Input
3967
- }], EnableMail: [{
3968
- type: Input
3969
- }], EnableNotifications: [{
3970
- type: Input
3971
- }], EnableMoreApps: [{
3972
- type: Input
3973
- }], EnableProfile: [{
3974
- type: Input
3975
- }], languages: [{
3976
- type: Input
3977
- }], timezoneDetails: [{
3978
- type: Output
3979
- }], lobSelected: [{
3980
- type: Output
3981
- }], getBgImage: [{
3982
- type: Output
3983
- }], langChange: [{
3984
- type: Output
3985
- }], overlayStateChange: [{
3986
- type: Output
3987
- }], confirmDialog: [{
3988
- type: ViewChild,
3989
- args: ['confirmDialog']
3990
- }], appPanel: [{
3991
- type: ViewChild,
3992
- args: ['App']
3993
- }], notifyModalRef: [{
3994
- type: ViewChild,
3995
- args: ['notifyModal']
3996
- }], notifyModal: [{
3997
- type: ViewChild,
3998
- args: ['notifyModal']
3999
- }] } });
4000
-
4001
- class NotificationSidebarComponent {
4002
- constructor() {
4003
- this.userNotificationCount = '';
4004
- this.userNotificationCountObj = {};
4005
- this.eventwiseNotificationCount = [];
4006
- this.refreshNotification = new EventEmitter();
4007
- this.isErrorOccured = false;
4008
- this.notificationLoadder = true;
4009
- this.NoServiceMsgText = 'Generic_lib.CommonError';
4010
- this.repeatLoader = Array(9).fill(0);
4011
- }
4012
- //Method: Call APi to Fetch New Notification Count
4013
- getEventwiseNotification() {
4014
- this.refreshNotification.emit(true);
4015
- }
4016
- }
4017
- NotificationSidebarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NotificationSidebarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4018
- 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"] }] });
4019
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NotificationSidebarComponent, decorators: [{
4020
- type: Component,
4021
- 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"] }]
4022
- }], ctorParameters: function () { return []; }, propDecorators: { userNotificationCount: [{
4023
- type: Input
4024
- }], userNotificationCountObj: [{
4025
- type: Input
4026
- }], eventwiseNotificationCount: [{
4027
- type: Input
4028
- }], refreshNotification: [{
4029
- type: Output
4030
- }], isErrorOccured: [{
4031
- type: Input
4032
- }], notificationLoadder: [{
4033
- type: Input
4034
- }] } });
4035
-
4036
- /**
4037
- * Common header library module.
4038
- *
4039
- * Translation initialization (APP_INITIALIZER, languages.json validation,
4040
- * fallback chain, language-file loading) is OWNED BY THE CONSUMING APP —
4041
- * see `initTranslateService` and `HttpLoaderFactory` in src/app/app.module.ts
4042
- * (test/dev host) and the equivalent code in your main project's MainModule.
4043
- *
4044
- * The library only imports/exports `TranslateModule` (no `forChild({ isolate })`)
4045
- * so its components share the host app's TranslateService singleton. This
4046
- * guarantees that when the host changes language, library labels translate
4047
- * accordingly.
4048
- *
4049
- * The supported-language list (USERFILTEREDLANGUAGES) is provided by the
4050
- * host app via the `[languages]` @Input on `<lib-common-header-lib>`, which
4051
- * forwards it down to `<ng-translation>`. The library no longer fetches
4052
- * languages.json itself.
4053
- */
4054
- class CommonHeaderLibModule {
4055
- }
4056
- CommonHeaderLibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CommonHeaderLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4057
- CommonHeaderLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: CommonHeaderLibModule, declarations: [CommonHeaderLibComponent,
4058
- SliceToTwoPipe,
4059
- customDateFormatPipe,
4060
- DateDiffPipe,
4061
- UserSidebarComponent,
4062
- SidePopupComponent,
4063
- NgTranslationComponent,
4064
- UserMailboxComponent,
4065
- NotificationSidebarComponent,
4066
- GeneralConfigurationComponent,
4067
- TimezoneConfigurationComponent,
4068
- LandingpgConfigComponent,
4069
- NoServiceMyAccessPgComponent,
4070
- GridPaginationComponent,
4071
- ConfirmDialogComponent,
4072
- ViewpasswordPopupComponent], imports: [CommonModule,
4073
- HttpClientModule,
4074
- ReactiveFormsModule,
4075
- /* UI Modules */
4076
- InputTextModule,
4077
- DropdownModule,
4078
- OverlayPanelModule,
4079
- TooltipModule,
4080
- BadgeModule,
4081
- DialogModule,
4082
- SkeletonModule,
4083
- PaginatorModule,
4084
- TableModule,
4085
- ButtonModule,
4086
- ConfirmDialogModule,
4087
- NgbModule,
4088
- /* Share the host app's TranslateService instance — DO NOT use
4089
- forChild({ isolate: true }) here, otherwise library components would
4090
- receive a separate TranslateService and host language changes would
4091
- not propagate to library labels. */
4092
- TranslateModule], exports: [CommonHeaderLibComponent,
4093
- SliceToTwoPipe,
4094
- DateDiffPipe,
4095
- customDateFormatPipe,
4096
- ConfirmDialogComponent,
4097
- ViewpasswordPopupComponent,
4098
- TranslateModule] });
4099
- CommonHeaderLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CommonHeaderLibModule, imports: [CommonModule,
4100
- HttpClientModule,
4101
- ReactiveFormsModule,
4102
- /* UI Modules */
4103
- InputTextModule,
4104
- DropdownModule,
4105
- OverlayPanelModule,
4106
- TooltipModule,
4107
- BadgeModule,
4108
- DialogModule,
4109
- SkeletonModule,
4110
- PaginatorModule,
4111
- TableModule,
4112
- ButtonModule,
4113
- ConfirmDialogModule,
4114
- NgbModule,
4115
- /* Share the host app's TranslateService instance — DO NOT use
4116
- forChild({ isolate: true }) here, otherwise library components would
4117
- receive a separate TranslateService and host language changes would
4118
- not propagate to library labels. */
4119
- TranslateModule, TranslateModule] });
4120
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CommonHeaderLibModule, decorators: [{
4121
- type: NgModule,
4122
- args: [{
4123
- declarations: [
4124
- CommonHeaderLibComponent,
4125
- SliceToTwoPipe,
4126
- customDateFormatPipe,
4127
- DateDiffPipe,
4128
- UserSidebarComponent,
4129
- SidePopupComponent,
4130
- NgTranslationComponent,
4131
- UserMailboxComponent,
4132
- NotificationSidebarComponent,
4133
- GeneralConfigurationComponent,
4134
- TimezoneConfigurationComponent,
4135
- LandingpgConfigComponent,
4136
- NoServiceMyAccessPgComponent,
4137
- GridPaginationComponent,
4138
- ConfirmDialogComponent,
4139
- ViewpasswordPopupComponent,
4140
- ],
4141
- imports: [
4142
- CommonModule,
4143
- HttpClientModule,
4144
- ReactiveFormsModule,
4145
- /* UI Modules */
4146
- InputTextModule,
4147
- DropdownModule,
4148
- OverlayPanelModule,
4149
- TooltipModule,
4150
- BadgeModule,
4151
- DialogModule,
4152
- SkeletonModule,
4153
- PaginatorModule,
4154
- TableModule,
4155
- ButtonModule,
4156
- ConfirmDialogModule,
4157
- NgbModule,
4158
- /* Share the host app's TranslateService instance — DO NOT use
4159
- forChild({ isolate: true }) here, otherwise library components would
4160
- receive a separate TranslateService and host language changes would
4161
- not propagate to library labels. */
4162
- TranslateModule,
4163
- ],
4164
- exports: [
4165
- CommonHeaderLibComponent,
4166
- SliceToTwoPipe,
4167
- DateDiffPipe,
4168
- customDateFormatPipe,
4169
- ConfirmDialogComponent,
4170
- ViewpasswordPopupComponent,
4171
- TranslateModule,
4172
- ],
4173
- providers: [],
4174
- }]
4175
- }] });
4176
-
4177
- /*
4178
- * Public API Surface of common-header-lib
4179
- */
4180
- // export * from './assets/js/bigint-decrypt.helper';
4181
-
4182
- /**
4183
- * Generated bundle index. Do not edit.
4184
- */
4185
-
4186
- export { CommonHeaderLibComponent, CommonHeaderLibModule, CommonHeaderLibService, ConfirmDialogComponent, DateDiffPipe, SliceToTwoPipe, ViewpasswordPopupComponent, customDateFormatPipe };
4187
- //# sourceMappingURL=common-header-lib.mjs.map