common-header-lib 0.0.21 → 0.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/README.md +330 -12
  2. package/assets/i18n/ar.json +25 -2
  3. package/assets/i18n/de.json +25 -2
  4. package/assets/i18n/en.json +26 -3
  5. package/assets/i18n/es.json +25 -2
  6. package/assets/i18n/fr.json +25 -2
  7. package/assets/i18n/hi.json +25 -2
  8. package/assets/i18n/ja.json +25 -2
  9. package/assets/i18n/ko.json +25 -2
  10. package/assets/images/APP035.svg +20 -0
  11. package/assets/images/APP036.svg +14 -0
  12. package/assets/images/check.svg +3 -3
  13. package/assets/images/copy-success.svg +4 -0
  14. package/assets/images/copy.svg +3 -3
  15. package/assets/images/download-blue.svg +3 -0
  16. package/assets/images/generate.svg +3 -0
  17. package/assets/images/regenerate.svg +3 -0
  18. package/fesm2022/common-header-lib.mjs +4370 -0
  19. package/fesm2022/common-header-lib.mjs.map +1 -0
  20. package/index.d.ts +664 -5
  21. package/package.json +20 -31
  22. package/src/assets/i18n/ar.json +25 -2
  23. package/src/assets/i18n/de.json +25 -2
  24. package/src/assets/i18n/en.json +26 -3
  25. package/src/assets/i18n/es.json +25 -2
  26. package/src/assets/i18n/fr.json +25 -2
  27. package/src/assets/i18n/hi.json +25 -2
  28. package/src/assets/i18n/ja.json +25 -2
  29. package/src/assets/i18n/ko.json +25 -2
  30. package/src/assets/images/APP035.svg +20 -0
  31. package/src/assets/images/APP036.svg +14 -0
  32. package/src/assets/images/check.svg +3 -3
  33. package/src/assets/images/copy-success.svg +4 -0
  34. package/src/assets/images/copy.svg +3 -3
  35. package/src/assets/images/download-blue.svg +3 -0
  36. package/src/assets/images/generate.svg +3 -0
  37. package/src/assets/images/regenerate.svg +3 -0
  38. package/assets/scss/_sidebar.scss +0 -257
  39. package/assets/scss/styles.scss +0 -577
  40. package/esm2020/common-header-lib.mjs +0 -5
  41. package/esm2020/lib/Validators/noSpaceAllowed.mjs +0 -16
  42. package/esm2020/lib/common-header-lib.component.mjs +0 -629
  43. package/esm2020/lib/common-header-lib.module.mjs +0 -178
  44. package/esm2020/lib/common-header-lib.service.mjs +0 -200
  45. package/esm2020/lib/components/confirm-dialog/confirm-dialog.component.mjs +0 -49
  46. package/esm2020/lib/components/general-configuration/general-configuration.component.mjs +0 -399
  47. package/esm2020/lib/components/general-configuration/landingpg-config/landingpg-config.component.mjs +0 -124
  48. package/esm2020/lib/components/general-configuration/timezone-configuration/timezone-configuration.component.mjs +0 -137
  49. package/esm2020/lib/components/grid-pagination/grid-pagination.component.mjs +0 -38
  50. package/esm2020/lib/components/ng-translation/ng-translation.component.mjs +0 -82
  51. package/esm2020/lib/components/no-service-my-access-pg/no-service-my-access-pg.component.mjs +0 -19
  52. package/esm2020/lib/components/notification-sidebar/notification-sidebar.component.mjs +0 -40
  53. package/esm2020/lib/components/side-popup/side-popup.component.mjs +0 -34
  54. package/esm2020/lib/components/user-mailbox/user-mailbox.component.mjs +0 -168
  55. package/esm2020/lib/components/user-sidebar/user-sidebar.component.mjs +0 -274
  56. package/esm2020/lib/components/viewpassword-popup/viewpassword-popup.component.mjs +0 -197
  57. package/esm2020/lib/model/data_model.mjs +0 -229
  58. package/esm2020/lib/pipes/custome-dateformat.pipe.mjs +0 -27
  59. package/esm2020/lib/pipes/date-diff.pipe.mjs +0 -55
  60. package/esm2020/lib/pipes/slice-to-two.pipe.mjs +0 -34
  61. package/esm2020/lib/services/EncrypDecryp_RSA.service.mjs +0 -100
  62. package/esm2020/lib/services/async-passwordcheck.service.mjs +0 -70
  63. package/esm2020/lib/services/cookie-storage-manager.service.mjs +0 -78
  64. package/esm2020/lib/services/encrpdata.service.mjs +0 -55
  65. package/esm2020/lib/services/encrydecrydata.service.mjs +0 -205
  66. package/esm2020/lib/services/event.service.mjs +0 -132
  67. package/esm2020/lib/services/http/http-common.service.mjs +0 -245
  68. package/esm2020/lib/services/http/http-general-config.service.mjs +0 -84
  69. package/esm2020/lib/services/rest-login-form.service.mjs +0 -294
  70. package/esm2020/lib/services/rest-signalr.service.mjs +0 -104
  71. package/esm2020/lib/services/storage.service.mjs +0 -33
  72. package/esm2020/lib/services/toast-msg.service.mjs +0 -101
  73. package/esm2020/lib/services/vapt-validation.service.mjs +0 -31
  74. package/esm2020/public-api.mjs +0 -13
  75. package/fesm2015/common-header-lib.mjs +0 -4206
  76. package/fesm2015/common-header-lib.mjs.map +0 -1
  77. package/fesm2020/common-header-lib.mjs +0 -4186
  78. package/fesm2020/common-header-lib.mjs.map +0 -1
  79. package/lib/Validators/noSpaceAllowed.d.ts +0 -2
  80. package/lib/common-header-lib.component.d.ts +0 -149
  81. package/lib/common-header-lib.module.d.ts +0 -56
  82. package/lib/common-header-lib.service.d.ts +0 -25
  83. package/lib/components/confirm-dialog/confirm-dialog.component.d.ts +0 -13
  84. package/lib/components/general-configuration/general-configuration.component.d.ts +0 -86
  85. package/lib/components/general-configuration/landingpg-config/landingpg-config.component.d.ts +0 -37
  86. package/lib/components/general-configuration/timezone-configuration/timezone-configuration.component.d.ts +0 -38
  87. package/lib/components/grid-pagination/grid-pagination.component.d.ts +0 -20
  88. package/lib/components/ng-translation/ng-translation.component.d.ts +0 -21
  89. package/lib/components/no-service-my-access-pg/no-service-my-access-pg.component.d.ts +0 -8
  90. package/lib/components/notification-sidebar/notification-sidebar.component.d.ts +0 -16
  91. package/lib/components/side-popup/side-popup.component.d.ts +0 -14
  92. package/lib/components/user-mailbox/user-mailbox.component.d.ts +0 -40
  93. package/lib/components/user-sidebar/user-sidebar.component.d.ts +0 -62
  94. package/lib/components/viewpassword-popup/viewpassword-popup.component.d.ts +0 -47
  95. package/lib/model/data_model.d.ts +0 -185
  96. package/lib/pipes/custome-dateformat.pipe.d.ts +0 -8
  97. package/lib/pipes/date-diff.pipe.d.ts +0 -9
  98. package/lib/pipes/slice-to-two.pipe.d.ts +0 -7
  99. package/lib/services/EncrypDecryp_RSA.service.d.ts +0 -15
  100. package/lib/services/async-passwordcheck.service.d.ts +0 -18
  101. package/lib/services/cookie-storage-manager.service.d.ts +0 -16
  102. package/lib/services/encrpdata.service.d.ts +0 -12
  103. package/lib/services/encrydecrydata.service.d.ts +0 -33
  104. package/lib/services/event.service.d.ts +0 -30
  105. package/lib/services/http/http-common.service.d.ts +0 -40
  106. package/lib/services/http/http-general-config.service.d.ts +0 -15
  107. package/lib/services/rest-login-form.service.d.ts +0 -39
  108. package/lib/services/rest-signalr.service.d.ts +0 -23
  109. package/lib/services/storage.service.d.ts +0 -11
  110. package/lib/services/toast-msg.service.d.ts +0 -23
  111. package/lib/services/vapt-validation.service.d.ts +0 -7
  112. package/public-api.d.ts +0 -8
  113. package/src/assets/scss/_sidebar.scss +0 -257
  114. package/src/assets/scss/styles.scss +0 -577
@@ -1,4186 +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 === null || textName === '') {
2641
- return 'NA';
2642
- }
2643
- textName = textName?.trim();
2644
- let result = '';
2645
- if (textName && textName.includes(' ')) {
2646
- let splitStringArr = textName.split(' ');
2647
- result =
2648
- splitStringArr[0][0] + splitStringArr[splitStringArr.length - 1][0];
2649
- }
2650
- else if (textName && textName.includes('_')) {
2651
- let splitStringArr = textName.split('_');
2652
- result =
2653
- splitStringArr[0][0] + splitStringArr[splitStringArr.length - 1][0];
2654
- }
2655
- else {
2656
- result = textName[0] + textName[1];
2657
- }
2658
- return result.toLocaleUpperCase();
2659
- }
2660
- }
2661
- SliceToTwoPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SliceToTwoPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
2662
- SliceToTwoPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: SliceToTwoPipe, name: "sliceToTwo" });
2663
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SliceToTwoPipe, decorators: [{
2664
- type: Pipe,
2665
- args: [{
2666
- name: 'sliceToTwo',
2667
- }]
2668
- }] });
2669
-
2670
- class UserSidebarComponent {
2671
- constructor(dialogService, _cookieService, route, msgService, _localStorage, translateService, httpCommonService) {
2672
- this.dialogService = dialogService;
2673
- this._cookieService = _cookieService;
2674
- this.route = route;
2675
- this.msgService = msgService;
2676
- this._localStorage = _localStorage;
2677
- this.translateService = translateService;
2678
- this.httpCommonService = httpCommonService;
2679
- this.userDetails = {};
2680
- this.showProfile = false;
2681
- this.userdisplayName = '';
2682
- this.userFirstName = '';
2683
- this.userLastName = '';
2684
- this.userLastLoggedIn = '';
2685
- // private LoggedInUserID: string = '';
2686
- this.unsubscribeAPIEventListenerData = new Subject();
2687
- /* Forwarded down to <ng-translation> so the language list is sourced
2688
- from the host app instead of a separate library API call. */
2689
- this.languages = [];
2690
- this.closeDialogBox = new EventEmitter();
2691
- // public userSessionID: string = '';
2692
- this.sec = 1;
2693
- this.min = 2;
2694
- this.Hr = 30;
2695
- this.isOpenSidePopup = false;
2696
- this.showUserDetails = false;
2697
- this.isNameCopied = false;
2698
- // private themeService: ThemeService,
2699
- // private fontService: FontService,
2700
- // private cookieService: CookieService,
2701
- // this.fetchedSavedData();
2702
- }
2703
- ngOnInit() {
2704
- this.getLoggedInuserDteils();
2705
- }
2706
- //Method: Open User Setting Panel
2707
- openUserSettingPanel() {
2708
- this.ref = this.dialogService.open(GeneralConfigurationComponent, {
2709
- header: this.translateService.instant('Generic_lib.GeneralConfiguration'),
2710
- styleClass: 'general-configuration',
2711
- // data: {
2712
- // apiURL: this.apiURL,
2713
- // },
2714
- });
2715
- }
2716
- getLoggedInuserDteils() {
2717
- this.httpCommonService
2718
- .getLoggedInUserDetails()
2719
- .pipe(takeUntil$1(this.unsubscribeAPIEventListenerData))
2720
- .subscribe((result) => {
2721
- if (result && result['success'] && result['result']) {
2722
- this.userDetails = result['result'];
2723
- this.userdisplayName = this.userDetails['userDisplayName'];
2724
- this.showProfile = true;
2725
- this.getTotalSessionTime();
2726
- this.setLoggedInUserName(this.userdisplayName);
2727
- }
2728
- else {
2729
- this.showProfile = false;
2730
- this.userDetails = {};
2731
- }
2732
- });
2733
- }
2734
- setLoggedInUserName(userdisplayName) {
2735
- if (userdisplayName && userdisplayName.includes(' ')) {
2736
- let splitStringArr = userdisplayName.split(' ');
2737
- this.userFirstName = splitStringArr[0];
2738
- this.userLastName = splitStringArr[1];
2739
- }
2740
- else {
2741
- this.userdisplayName = userdisplayName;
2742
- }
2743
- }
2744
- /*Method : Copies the full user display name, as it is truncated in the panel */
2745
- copyUserDisplayName() {
2746
- const displayName = this.userDetails['userDisplayName'];
2747
- if (!displayName) {
2748
- return;
2749
- }
2750
- navigator.clipboard
2751
- .writeText(displayName)
2752
- .then(() => {
2753
- this.isNameCopied = true;
2754
- setTimeout(() => {
2755
- this.isNameCopied = false;
2756
- }, 2000);
2757
- })
2758
- .catch((error) => {
2759
- console.error('Error copying user name to clipboard: ', error);
2760
- });
2761
- }
2762
- getcloseDialogBox() {
2763
- this.closeDialogBox.emit(true);
2764
- }
2765
- getUserLoggedInTime() {
2766
- let LastLoggedIn = this.convertUTCToLocal(this.userDetails['lastLogIn']);
2767
- let LastLoggedInDate = new Date(LastLoggedIn);
2768
- this.userLastLoggedIn = LastLoggedInDate.toLocaleString();
2769
- }
2770
- logoutCurrentUser() {
2771
- this.httpCommonService
2772
- .getInitiateUserLogout()
2773
- .pipe()
2774
- .subscribe((res) => {
2775
- if (res) {
2776
- this._cookieService.clearAllCookies();
2777
- this._localStorage.clearData();
2778
- if (res && res['spLogoutUrls'] && res['spLogoutUrls'].length > 0) {
2779
- this.destoryAllSessions(res['spLogoutUrls']);
2780
- }
2781
- if (res?.['identity']) {
2782
- this.userWithWindowAuthentication();
2783
- }
2784
- else {
2785
- const path = '/' + RoutePaths.LOGINPG_PATH;
2786
- const urlnew = new URL(window.location.href).origin + '/#' + path;
2787
- window.location.href = urlnew;
2788
- }
2789
- }
2790
- else {
2791
- this.msgService.error(errorMsg.LOGOUTERROR);
2792
- // window.location.href = new URL(window.location.href).origin + '/#/login';
2793
- }
2794
- });
2795
- }
2796
- /**
2797
- * This function destroys all user sessions by opening multiple SAML logout URLs in new browser tabs.
2798
- */
2799
- destoryAllSessions(samlUrls) {
2800
- samlUrls.forEach((url) => {
2801
- window.open(url, '_blank');
2802
- });
2803
- }
2804
- userWithWindowAuthentication() {
2805
- const path = '/' + RoutePaths.LOGOUT_PATH;
2806
- this.route.navigateByUrl(path);
2807
- }
2808
- getTotalSessionTime() {
2809
- let loginTime = this.convertUTCToLocal(this.userDetails['currentLogIn']);
2810
- let loginTimeDate = new Date(loginTime);
2811
- let currentTime = new Date();
2812
- let milliseconds = currentTime.valueOf() - loginTimeDate.valueOf();
2813
- let seconds = Math.floor(milliseconds / 1000);
2814
- let minutes = Math.floor(seconds / 60);
2815
- let hours = Math.floor(minutes / 60);
2816
- seconds = seconds % 60;
2817
- minutes = minutes % 60;
2818
- this.Hr = hours;
2819
- this.min = minutes;
2820
- this.sec = seconds;
2821
- setInterval(() => {
2822
- this.updateTimer();
2823
- }, 1000);
2824
- }
2825
- updateTimer() {
2826
- if (this.sec < 59) {
2827
- this.sec += 1;
2828
- }
2829
- else {
2830
- this.sec = 0;
2831
- if (this.min < 59) {
2832
- this.min += 1;
2833
- }
2834
- else {
2835
- this.min = 0;
2836
- this.Hr += 1;
2837
- }
2838
- }
2839
- }
2840
- convertUTCToLocal(newdate) {
2841
- let localDate = newdate + 'Z';
2842
- localDate = localDate.toLocaleString();
2843
- return localDate;
2844
- }
2845
- OpenArconLearningCenter() {
2846
- const url = GlobalConstants.PlugInDownloadURL;
2847
- window.open(url, '_blank');
2848
- }
2849
- //close Popup
2850
- closeUserSettingPanel() {
2851
- if (this.ref) {
2852
- this.ref.close();
2853
- }
2854
- }
2855
- // languageChange(event: any) {
2856
- // if (!event) return;
2857
- // // this.langChange.emit(event);
2858
- // }
2859
- //*Global Font and Theme
2860
- getRedTheme() {
2861
- // const active = this.themeService.getActiveTheme();
2862
- // if (
2863
- // active.name === "blue" ||
2864
- // active.name === "black" ||
2865
- // active.name === "red"
2866
- // ) {
2867
- // this.themeService.setTheme("red");
2868
- // this.cookieService.set("themeColor", "red");
2869
- // }
2870
- }
2871
- getBlackTheme() {
2872
- // const active = this.themeService.getActiveTheme();
2873
- // if (
2874
- // active.name === "blue" ||
2875
- // active.name === "black" ||
2876
- // active.name === "red"
2877
- // ) {
2878
- // this.themeService.setTheme("blue");
2879
- // this.cookieService.set("themeColor", "blue");
2880
- // }
2881
- }
2882
- getBlueTheme() {
2883
- // const active = this.themeService.getActiveTheme();
2884
- // if (
2885
- // active.name === "blue" ||
2886
- // active.name === "black" ||
2887
- // active.name === "red"
2888
- // ) {
2889
- // this.themeService.setTheme("black");
2890
- // this.cookieService.set("themeColor", "black");
2891
- // }
2892
- }
2893
- // Accessibility Fonts sizes
2894
- getSmallFont() {
2895
- // this.fontService.setFont("smFont");
2896
- }
2897
- getMediumFont() {
2898
- // this.fontService.setFont("mdFont");
2899
- }
2900
- getLargeFont() {
2901
- // this.fontService.setFont("lgFont");
2902
- }
2903
- ngOnDestroy() {
2904
- this.closeUserSettingPanel();
2905
- this.unsubscribeAPIEventListenerData.next(true);
2906
- this.unsubscribeAPIEventListenerData.complete();
2907
- }
2908
- }
2909
- 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 });
2910
- 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" }] });
2911
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: UserSidebarComponent, decorators: [{
2912
- type: Component,
2913
- 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"] }]
2914
- }], ctorParameters: function () { return [{ type: i1$3.DialogService }, { type: CookieStorageManagerService }, { type: i3.Router }, { type: ToastMsgService }, { type: StorageService }, { type: i4.TranslateService }, { type: HttpCommonService }]; }, propDecorators: { languages: [{
2915
- type: Input
2916
- }], closeDialogBox: [{
2917
- type: Output
2918
- }] } });
2919
-
2920
- class SidePopupComponent {
2921
- constructor() {
2922
- this.closeDialogBox = new EventEmitter();
2923
- this.visible = false;
2924
- this.position = 'right';
2925
- this.header = 'Details';
2926
- }
2927
- //Method: Close the Side Panel
2928
- getcloseDialogBox() {
2929
- this.visible = false;
2930
- this.closeDialogBox.emit(true);
2931
- }
2932
- ngOnDestroy() {
2933
- this.visible = false;
2934
- }
2935
- }
2936
- SidePopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SidePopupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2937
- 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"] }] });
2938
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SidePopupComponent, decorators: [{
2939
- type: Component,
2940
- 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" }]
2941
- }], ctorParameters: function () { return []; }, propDecorators: { closeDialogBox: [{
2942
- type: Output
2943
- }], visible: [{
2944
- type: Input
2945
- }], position: [{
2946
- type: Input
2947
- }], header: [{
2948
- type: Input
2949
- }] } });
2950
-
2951
- class DateDiffPipe {
2952
- constructor() { } // Inject service
2953
- transform(date) {
2954
- if (date != null) {
2955
- const localDate = this.convertUTCToLocal(date);
2956
- let date2 = new Date(localDate);
2957
- let date1 = new Date();
2958
- if (date2 > date1) {
2959
- // Calculate the absolute difference in milliseconds between the two dates
2960
- const diffTime = Math.abs(date2.getTime() - date1.getTime());
2961
- // Calculate the number of days
2962
- const diffDays = Math.floor(diffTime / (1000 * 60 * 60 * 24));
2963
- // Calculate the remaining time after removing the days
2964
- const remainingTime = diffTime % (1000 * 60 * 60 * 24);
2965
- // Calculate the number of hours
2966
- const diffHours = Math.floor(remainingTime / (1000 * 60 * 60));
2967
- // Calculate the remaining time after removing the hours
2968
- const remainingMinutes = remainingTime % (1000 * 60 * 60);
2969
- // Calculate the number of minutes
2970
- const diffMinutes = Math.floor(remainingMinutes / (1000 * 60));
2971
- let result = '';
2972
- if (diffDays > 0) {
2973
- result += `${diffDays} days `;
2974
- }
2975
- if (diffHours > 0) {
2976
- result += `${diffHours} hours `;
2977
- }
2978
- if (diffMinutes > 0) {
2979
- result += `${diffMinutes} minutes`;
2980
- }
2981
- return result.trim();
2982
- }
2983
- else {
2984
- return '00:00:00';
2985
- }
2986
- }
2987
- return '';
2988
- }
2989
- convertUTCToLocal(newdate) {
2990
- let localDate = newdate + 'Z';
2991
- localDate = localDate.toLocaleString();
2992
- return localDate;
2993
- }
2994
- }
2995
- DateDiffPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateDiffPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
2996
- DateDiffPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: DateDiffPipe, name: "dateDiff" });
2997
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateDiffPipe, decorators: [{
2998
- type: Pipe,
2999
- args: [{
3000
- name: 'dateDiff',
3001
- }]
3002
- }], ctorParameters: function () { return []; } });
3003
-
3004
- class ViewpasswordPopupComponent {
3005
- constructor(dialogService,
3006
- // private readonly _RESTService: RESTMyaccessService,
3007
- msgService, _eventService, translateService, httpCommonService) {
3008
- this.dialogService = dialogService;
3009
- this.msgService = msgService;
3010
- this._eventService = _eventService;
3011
- this.translateService = translateService;
3012
- this.httpCommonService = httpCommonService;
3013
- this.servicePassword = 'Password';
3014
- this.showVaultBtn = false;
3015
- this.isContentLoaded = false;
3016
- this.isValueUpdated = false;
3017
- this.OpenTillDate = '';
3018
- this.unsubscribeAPIEventListenerData = new Subject();
3019
- this.totalEmails = '';
3020
- this.SSHFileType = '';
3021
- this.SSHFileName = '';
3022
- this.isSSHKey = false;
3023
- this.isPasswordVisible = true;
3024
- this.PasswordViewSuccessMsg = '';
3025
- this.SSHPasswordViewSuccessMsg = '';
3026
- this.SSHPasswordViewErrorMsg = '';
3027
- this.sshKeyForDownload = '';
3028
- this.getSelectedGridData(dialogService.data); //Getting Data from popup
3029
- }
3030
- ngAfterViewInit() {
3031
- this.getTranslateContent();
3032
- }
3033
- ngOnInit() {
3034
- this.getAccessServicePassword();
3035
- // this.getCurrentEmailsCount()
3036
- }
3037
- getSelectedGridData(gridData) {
3038
- if (gridData && gridData['payload']) {
3039
- this.mailDetails = gridData['payload'];
3040
- this.SSHFileType = gridData['SSHfileType'];
3041
- this.showVaultBtn = gridData['btnStatus'];
3042
- this.OpenTillDate = this.mailDetails['spv_Opentildate'];
3043
- this.isSSHKey = this.mailDetails['sshkey_isenabled'];
3044
- }
3045
- }
3046
- //Method: Convert text one Lang. to another
3047
- getTranslateContent() {
3048
- this.translateService
3049
- .get([
3050
- 'Generic_lib.PasswordViewSuccessMsg',
3051
- 'Generic_lib.SSHPasswordViewSuccessMsg',
3052
- 'Generic_lib.SSHPasswordViewErrorMsg',
3053
- ])
3054
- .pipe(takeUntil$1(this.unsubscribeAPIEventListenerData))
3055
- .subscribe((trans) => {
3056
- this.PasswordViewSuccessMsg =
3057
- trans['Generic_lib.PasswordViewSuccessMsg'];
3058
- this.SSHPasswordViewSuccessMsg =
3059
- trans['Generic_lib.SSHPasswordViewSuccessMsg'];
3060
- this.SSHPasswordViewErrorMsg =
3061
- trans['Generic_lib.SSHPasswordViewErrorMsg'];
3062
- });
3063
- }
3064
- //Method: Grants access to the View password for a service
3065
- getAccessServicePassword() {
3066
- this.isContentLoaded = false;
3067
- let mailDetails = {
3068
- mailid: String(this.mailDetails['smi_SpvId']),
3069
- // userid: this.userId,
3070
- // userSessionID: this.userSessionId,
3071
- };
3072
- this.httpCommonService
3073
- .getAccessToViewServicePassword(mailDetails)
3074
- .pipe(takeUntil$1(this.unsubscribeAPIEventListenerData), finalize$1(() => {
3075
- this.isContentLoaded = true;
3076
- }))
3077
- .subscribe((result) => {
3078
- this.servicePassword = result?.sshKeyPassPhrase;
3079
- this.SSHFileName = result?.sshFileName;
3080
- this.sshKeyForDownload = result?.sshKey;
3081
- this.getCurrentEmailsCount();
3082
- });
3083
- }
3084
- //Method: Hide password of a service
3085
- getHideServicePassword() {
3086
- this.isValueUpdated = true;
3087
- let mailDetails = {
3088
- spvId: String(this.mailDetails['smi_SpvId']),
3089
- // userId: this.userId,
3090
- };
3091
- this.httpCommonService
3092
- .getProtectedServiceCredentials(mailDetails)
3093
- .pipe(takeUntil$1(this.unsubscribeAPIEventListenerData), finalize$1(() => {
3094
- this.isValueUpdated = false;
3095
- }))
3096
- .subscribe((result) => {
3097
- if (result) {
3098
- this._eventService.emitUserEmail({
3099
- component: 'view-pwd',
3100
- refreshGrid: true,
3101
- });
3102
- }
3103
- });
3104
- }
3105
- /*Method : GET
3106
- Action : Fetch User Mails Count */
3107
- getCurrentEmailsCount() {
3108
- this.httpCommonService
3109
- .getUnreadUserEmailsCount()
3110
- .pipe(takeUntil$1(this.unsubscribeAPIEventListenerData))
3111
- .subscribe((count) => {
3112
- if (count <= 0) {
3113
- this.totalEmails = '';
3114
- }
3115
- else if (count > 99) {
3116
- this.totalEmails = '99+';
3117
- }
3118
- else {
3119
- this.totalEmails = String(count);
3120
- }
3121
- this.updateMailCount();
3122
- });
3123
- }
3124
- getGenerateFile() {
3125
- this.generateSSHKeyFile();
3126
- this.getHideServicePassword();
3127
- }
3128
- generateSSHKeyFile() {
3129
- try {
3130
- const blob = new Blob([this.sshKeyForDownload], { type: '' });
3131
- const url = window.URL.createObjectURL(blob);
3132
- const a = document.createElement('a');
3133
- a.href = url;
3134
- a.download = `${this.SSHFileName}.${this.SSHFileType}`;
3135
- document.body.appendChild(a);
3136
- a.click();
3137
- document.body.removeChild(a);
3138
- window.URL.revokeObjectURL(url);
3139
- this.msgService.success(this.SSHPasswordViewSuccessMsg);
3140
- }
3141
- catch (error) {
3142
- console.error('Error generating SSH key file:', error);
3143
- this.msgService.error(this.SSHPasswordViewErrorMsg);
3144
- }
3145
- }
3146
- updateMailCount() {
3147
- this._eventService.emitUserEmail({
3148
- component: 'email-count',
3149
- mailCount: this.totalEmails,
3150
- });
3151
- }
3152
- copyToClipboard(text) {
3153
- navigator.clipboard
3154
- .writeText(text)
3155
- .then(() => {
3156
- this.msgService.success(this.PasswordViewSuccessMsg);
3157
- })
3158
- .catch((error) => {
3159
- console.error('Error copying text to clipboard: ', error);
3160
- });
3161
- }
3162
- togglePasswordVisibility() {
3163
- this.isPasswordVisible = !this.isPasswordVisible;
3164
- }
3165
- showPassword() {
3166
- if (this.isSSHKey && !this.servicePassword) {
3167
- return false;
3168
- }
3169
- return true;
3170
- }
3171
- ngOnDestroy() {
3172
- // Unsubscribing All the Observer
3173
- this.unsubscribeAPIEventListenerData.next(true);
3174
- this.unsubscribeAPIEventListenerData.complete();
3175
- }
3176
- }
3177
- 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 });
3178
- 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" }] });
3179
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ViewpasswordPopupComponent, decorators: [{
3180
- type: Component,
3181
- 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"] }]
3182
- }], ctorParameters: function () { return [{ type: i1$3.DynamicDialogConfig }, { type: ToastMsgService }, { type: EventService }, { type: i4.TranslateService }, { type: HttpCommonService }]; } });
3183
-
3184
- class NoServiceMyAccessPgComponent {
3185
- constructor() {
3186
- 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';
3187
- this.subHeading = '';
3188
- }
3189
- }
3190
- NoServiceMyAccessPgComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NoServiceMyAccessPgComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3191
- 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"] });
3192
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NoServiceMyAccessPgComponent, decorators: [{
3193
- type: Component,
3194
- 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"] }]
3195
- }], ctorParameters: function () { return []; }, propDecorators: { heading: [{
3196
- type: Input
3197
- }], subHeading: [{
3198
- type: Input
3199
- }] } });
3200
-
3201
- class GridPaginationComponent {
3202
- constructor() {
3203
- this.first = 0;
3204
- this.currentPgNo = 0;
3205
- this.rows = GlobalConstants.PAGEROW;
3206
- this.totalRecords = 0;
3207
- this.onPgChange = new EventEmitter();
3208
- }
3209
- onPageChange(event) {
3210
- event['page'] = event['page'] + 1; // By default pg index 0 so add +1
3211
- this.currentPgNo = event.page;
3212
- this.rows = event.rows;
3213
- //Emit Page No and PageRow Size
3214
- this.onPgChange.emit({
3215
- currentPgNo: this.currentPgNo,
3216
- perPgRows: this.rows,
3217
- });
3218
- }
3219
- }
3220
- GridPaginationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: GridPaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3221
- 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"] }] });
3222
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: GridPaginationComponent, decorators: [{
3223
- type: Component,
3224
- 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" }]
3225
- }], ctorParameters: function () { return []; }, propDecorators: { currentPgNo: [{
3226
- type: Input
3227
- }], rows: [{
3228
- type: Input
3229
- }], totalRecords: [{
3230
- type: Input
3231
- }], onPgChange: [{
3232
- type: Output
3233
- }] } });
3234
-
3235
- class customDateFormatPipe {
3236
- constructor() {
3237
- this.datePipe = new DatePipe('en-US');
3238
- }
3239
- transform(value) {
3240
- if (!value) {
3241
- return 'Not Applicable';
3242
- }
3243
- const parsedDate = new Date(value);
3244
- if (isNaN(parsedDate.getTime())) {
3245
- return 'Invalid Date';
3246
- }
3247
- return this.datePipe.transform(parsedDate, 'dd-MMM-yyyy HH:mm:ss');
3248
- }
3249
- }
3250
- customDateFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: customDateFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
3251
- customDateFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: customDateFormatPipe, name: "customDateFormat" });
3252
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: customDateFormatPipe, decorators: [{
3253
- type: Pipe,
3254
- args: [{
3255
- name: 'customDateFormat',
3256
- }]
3257
- }] });
3258
-
3259
- class UserMailboxComponent {
3260
- constructor(dialogService,
3261
- // private readonly _restMyaccessService: RESTMyaccessService,
3262
- // private readonly loginService: RESTLoginFormService,
3263
- _eventService, translate, libService, httpCommonService) {
3264
- this.dialogService = dialogService;
3265
- this._eventService = _eventService;
3266
- this.translate = translate;
3267
- this.libService = libService;
3268
- this.httpCommonService = httpCommonService;
3269
- this.closeMailDialogBox = new EventEmitter();
3270
- this.ListOfUserAssingedMails = [];
3271
- // private userId: string;
3272
- this.unsubscribeAPIEventListenerData = new Subject();
3273
- this.showVaultBtn = false;
3274
- this.SSHFileName = 'ppk';
3275
- this.hasUserAssignedMails = true;
3276
- //Pagintion
3277
- this.currentPgNo = 1;
3278
- this.perPgRows = 10;
3279
- this.totalCount = 0;
3280
- this.NoServiceMsgText = '';
3281
- this.isContentLoaded = false;
3282
- this.repeatLoader = Array.from({ length: this.perPgRows }).map((_, i) => `Item #${i}`);
3283
- this.apiURL = '';
3284
- }
3285
- ngOnInit() {
3286
- this.onLoadMethods();
3287
- }
3288
- /* Require Methods on PageLoad */
3289
- onLoadMethods() {
3290
- this.getUserEmails();
3291
- this.getglobalConfigDetails();
3292
- this._eventService.listenerUserEmail().subscribe((data) => {
3293
- if (data && data['component'] === 'view-pwd') {
3294
- if (data['refreshGrid']) {
3295
- this.ref?.close();
3296
- // this.getUserEmails();
3297
- }
3298
- }
3299
- });
3300
- }
3301
- openViewPasswordPanel(mailDetails) {
3302
- this.ref = this.dialogService.open(ViewpasswordPopupComponent, {
3303
- header: mailDetails.sshkey_isenabled
3304
- ? this.translate.instant('Generic_lib.SSHKey')
3305
- : this.translate.instant('Generic_lib.Password'),
3306
- styleClass: 'view-pass-details',
3307
- data: {
3308
- payload: mailDetails,
3309
- btnStatus: this.showVaultBtn,
3310
- SSHfileType: this.SSHFileName,
3311
- },
3312
- });
3313
- // Handle the close event here
3314
- this.ref.onClose.subscribe((result) => {
3315
- this.getUserEmails();
3316
- });
3317
- }
3318
- /*Action : Fetching user Emails from a API */
3319
- getUserEmails() {
3320
- this.isContentLoaded = false;
3321
- let payload = {
3322
- pageSize: this.perPgRows,
3323
- pageNumber: this.currentPgNo,
3324
- };
3325
- this.httpCommonService
3326
- .getUserAssignedMails(payload)
3327
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData), finalize(() => {
3328
- this.isContentLoaded = true;
3329
- }))
3330
- .subscribe((response) => {
3331
- this.ListOfUserAssingedMails = response;
3332
- if (this.ListOfUserAssingedMails.length > 0) {
3333
- this.hasUserAssignedMails = true;
3334
- this.getTotalNoOfRecords();
3335
- }
3336
- else {
3337
- this.hasUserAssignedMails = false;
3338
- this.NoServiceMsgText = errorMsg.NOMAILFOUND;
3339
- }
3340
- });
3341
- }
3342
- //Note: Get Total No of Records for Pagination
3343
- getTotalNoOfRecords() {
3344
- if (this.ListOfUserAssingedMails.length > 0 &&
3345
- this.ListOfUserAssingedMails[0]['totalRecords'] != null) {
3346
- this.totalCount = this.ListOfUserAssingedMails[0]['totalRecords'];
3347
- }
3348
- }
3349
- /*Method : POST
3350
- Action : Get configuration ID based on to show hide Vault Btn*/
3351
- getglobalConfigDetails() {
3352
- this.httpCommonService
3353
- .getglobalConfigDetails('1', [247, 338])
3354
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData))
3355
- .subscribe((data) => {
3356
- if (data && data.length > 0) {
3357
- data.forEach((element) => {
3358
- //For Vault Btn
3359
- if (element && element['id'] === 247 && element['value'] === '0') {
3360
- this.showVaultBtn = false;
3361
- }
3362
- else {
3363
- this.showVaultBtn = true;
3364
- }
3365
- //For Vault Btn
3366
- if (element && element['id'] === 338 && element['value'] === '1') {
3367
- this.SSHFileName = 'pem';
3368
- }
3369
- else {
3370
- this.SSHFileName = 'ppk';
3371
- }
3372
- });
3373
- }
3374
- });
3375
- }
3376
- //Method: Fetch User Assigned Email based on PageNo
3377
- updateDataOnPageChange(pageDetails) {
3378
- this.currentPgNo = pageDetails['currentPgNo'];
3379
- this.perPgRows = pageDetails['perPgRows'];
3380
- this.getUserEmails();
3381
- }
3382
- closeMailBox() {
3383
- this.closeMailDialogBox.emit();
3384
- }
3385
- ngOnDestroy() {
3386
- this.unsubscribeAPIEventListenerData.next(true);
3387
- this.unsubscribeAPIEventListenerData.complete();
3388
- }
3389
- }
3390
- 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 });
3391
- 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" }] });
3392
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: UserMailboxComponent, decorators: [{
3393
- type: Component,
3394
- 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"] }]
3395
- }], ctorParameters: function () { return [{ type: i1$3.DialogService }, { type: EventService }, { type: i4.TranslateService }, { type: CommonHeaderLibService }, { type: HttpCommonService }]; }, propDecorators: { closeMailDialogBox: [{
3396
- type: Output
3397
- }], apiURL: [{
3398
- type: Input
3399
- }] } });
3400
-
3401
- class CommonHeaderLibComponent {
3402
- constructor(cdRef, _signalRService, _eventService, translate, httpCommonService, msgService) {
3403
- this.cdRef = cdRef;
3404
- this._signalRService = _signalRService;
3405
- this._eventService = _eventService;
3406
- this.translate = translate;
3407
- this.httpCommonService = httpCommonService;
3408
- this.msgService = msgService;
3409
- // @Input() apiURL: string = '';
3410
- this.EnableLogo = true;
3411
- this.moduleName = '';
3412
- this.EnableTimeZone = true;
3413
- this.EnableLOB = true;
3414
- this.showAllLOB = false;
3415
- this.EnableMail = true;
3416
- this.EnableNotifications = true;
3417
- this.EnableMoreApps = true;
3418
- this.EnableProfile = true;
3419
- /* Supported languages forwarded down to <ng-translation>. The host app
3420
- loads languages.json once (via its APP_INITIALIZER) and binds the
3421
- resulting list here, eliminating a duplicate fetch from the library. */
3422
- this.languages = [];
3423
- this.timezoneDetails = new EventEmitter();
3424
- this.lobSelected = new EventEmitter();
3425
- this.getBgImage = new EventEmitter();
3426
- this.langChange = new EventEmitter();
3427
- this.overlayStateChange = new EventEmitter();
3428
- this.userTimeZoneAbbreviations = '';
3429
- this.userTimeZoneFullForm = '';
3430
- this.userLOBList = [];
3431
- this.showLobLoader = true;
3432
- this.totalEmails = '';
3433
- this.userNotificationCount = '';
3434
- this.ListOfUserPrivillegedApp = [];
3435
- this.userdisplayName = '';
3436
- this.userDetailsInfo = [];
3437
- this.isOpenSidePopup = false;
3438
- this.showUserDetails = false;
3439
- this.userAppLoaderLoadder = true;
3440
- this.repeatLoader = new Array(12).fill(0);
3441
- this.showMailboxScreenflag = false;
3442
- this.isErrorFound = false;
3443
- this.userNotificationCountObj = {};
3444
- this.eventwiseNotificationCount = [];
3445
- this.notificationLoadder = true;
3446
- this.unsubscribeAPIEventListenerData = new Subject();
3447
- this.unsubscribeSidebarListenerData = new Subject();
3448
- this.userId = '';
3449
- this.assetCategoryMenuList = [];
3450
- this.showbusinessFileds = false;
3451
- this.showInfraFileds = false;
3452
- this.showfiltersearch = true;
3453
- this.clickInside = false;
3454
- this.isLobContentLoaded = false;
3455
- this.isHeaderContentLoaded = false;
3456
- this.requestTypeId = 1;
3457
- this.accessTypes = [
3458
- { id: 1, name: 'Permanent' },
3459
- { id: 2, name: 'OneTime' },
3460
- { id: 3, name: 'TimeBased' },
3461
- ];
3462
- this.selectedAssetName = {
3463
- assetId: -100,
3464
- assetName: 'All',
3465
- };
3466
- this.assetName = '';
3467
- this.assetId = 0;
3468
- this.allCategory = {
3469
- assetTypeId: -100,
3470
- assetTypeValue: 'All Section',
3471
- assetList: [
3472
- {
3473
- assetId: -100,
3474
- assetName: 'All',
3475
- },
3476
- ],
3477
- };
3478
- this.translateName = [
3479
- 'Generic_lib.Permanent',
3480
- 'Generic_lib.OneTime',
3481
- 'Generic_lib.TimeBased',
3482
- ];
3483
- this.appPanel = OverlayPanel;
3484
- this.isErrorOccured = false;
3485
- // @Output() public refreshNotification = new EventEmitter<boolean>();
3486
- this.repeatLoader1 = new Array(9).fill(0);
3487
- // Mapping of app codes to their pre-connection validation checks.
3488
- // Apps not listed here open the connection directly without a config check.
3489
- this.APP_CONNECTION_CHECKS = {
3490
- APP032: {
3491
- check: () => this.httpCommonService.checkMFAConfiguration(),
3492
- },
3493
- APP033: {
3494
- // Backend expects the lowercase app code (mirrors Workflow_UI MR !287)
3495
- check: () => this.httpCommonService.getInternalAppConfig('app033'),
3496
- },
3497
- };
3498
- this.setWebAPIURL();
3499
- }
3500
- ngOnChanges(changes) {
3501
- if (changes['EnableLOB']) {
3502
- if (changes['EnableLOB'].currentValue === true) {
3503
- this.getListofLOB();
3504
- }
3505
- }
3506
- }
3507
- ngOnInit() {
3508
- this.headerLogo = '';
3509
- this.overlayStateChange.emit(false);
3510
- this.setWebAPIURL();
3511
- if (this.EnableLogo)
3512
- this.loadHeaderLogo();
3513
- this.onLoadMethod();
3514
- }
3515
- onLoadMethod() {
3516
- this.onDemandActions();
3517
- if (this.EnableNotifications)
3518
- this.getEventwiseNotificationCount();
3519
- this.getUserActivityDetails();
3520
- }
3521
- //* on click of Mail icon
3522
- showMailBoxScreen() {
3523
- this.showMailboxScreenflag = true;
3524
- this.overlayStateChange.emit(true);
3525
- }
3526
- hideMailBoxScreen() {
3527
- this.showMailboxScreenflag = false;
3528
- this.overlayStateChange.emit(false);
3529
- }
3530
- //* Main language change emitter
3531
- languageChange(event) {
3532
- if (!event)
3533
- return;
3534
- this.langChange.emit(event);
3535
- }
3536
- showUserAppsPanel(event) {
3537
- this.appPanel.toggle(event);
3538
- if (this.ListOfUserPrivillegedApp.length === 0) {
3539
- this.getUserAssignedApp();
3540
- }
3541
- }
3542
- showUserDetailsPanel() {
3543
- this.openSidePopup();
3544
- this.showUserDetails = true;
3545
- }
3546
- closeSidePopup() {
3547
- this.showUserDetails = false;
3548
- this.isOpenSidePopup = false;
3549
- }
3550
- openSidePopup() {
3551
- this.isOpenSidePopup = true;
3552
- }
3553
- //Method: Take Connection of Application
3554
- getConnectionofApplication(appCode) {
3555
- // Close the apps (9-dots) overlay panel immediately on selection.
3556
- this.appPanel?.hide();
3557
- const appCheck = this.APP_CONNECTION_CHECKS[appCode];
3558
- const commonError = 'Unable to verify the application configuration.';
3559
- // Apps without a configured check connect directly.
3560
- if (!appCheck) {
3561
- this.httpCommonService.openAppConnection(appCode);
3562
- return;
3563
- }
3564
- appCheck
3565
- .check()
3566
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData))
3567
- .subscribe({
3568
- next: (response) => {
3569
- if (response?.isValid) {
3570
- this.httpCommonService.openAppConnection(appCode);
3571
- }
3572
- else {
3573
- this.msgService.error(response?.errorMessage || commonError);
3574
- }
3575
- },
3576
- error: () => {
3577
- this.msgService.error(commonError);
3578
- },
3579
- });
3580
- }
3581
- async getConnectToSingalRhub() {
3582
- try {
3583
- await this._signalRService.initializeSignalRConnection();
3584
- }
3585
- catch (error) {
3586
- console.error('All SignalR hub connections failed.', error);
3587
- }
3588
- }
3589
- ngAfterViewInit() {
3590
- this.ListenToTranslateEvent();
3591
- // Initialize modal instance when DOM is ready
3592
- this.bsModalInstance = new bootstrap.Modal(this.notifyModal.nativeElement);
3593
- }
3594
- /*Method : Listen to the Other component event
3595
- Action : It used to listen diff. component command on basis of perform some actions */
3596
- onDemandActions() {
3597
- //Listen the Event Emit by SignalR Hub
3598
- this._signalRService
3599
- .listenerEventMsg()
3600
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData))
3601
- .subscribe((data) => {
3602
- if (data && data['application'] && data['events']) {
3603
- this.isErrorFound = false;
3604
- this.userNotificationCountObj = data['application'];
3605
- //Note: If Notification count > 99
3606
- if (this.userNotificationCountObj &&
3607
- this.userNotificationCountObj['PendingCount']) {
3608
- if (Number(this.userNotificationCountObj['PendingCount']) > 99) {
3609
- this.userNotificationCount = '99+';
3610
- }
3611
- else {
3612
- this.userNotificationCount = String(this.userNotificationCountObj['PendingCount']);
3613
- }
3614
- }
3615
- else {
3616
- this.userNotificationCount = '';
3617
- }
3618
- this.eventwiseNotificationCount = data['events'];
3619
- }
3620
- });
3621
- this.listenToTimeZoneConfig();
3622
- this.listenToEmailCountEvent();
3623
- }
3624
- //Listen to TimeZone Config
3625
- listenToTimeZoneConfig() {
3626
- this._eventService
3627
- .listenerTimezone()
3628
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData))
3629
- .subscribe((response) => {
3630
- if (response && response['component'] == 'timezone') {
3631
- this.userTimeZoneAbbreviations =
3632
- response['usertimezoneAbbreviations'];
3633
- this.timezoneDetails.emit({
3634
- abbreviations: response['usertimezoneAbbreviations'],
3635
- userTimeZone: response['id'],
3636
- timelist: response['timelist'],
3637
- });
3638
- this.userTimeZoneFullForm = response['userTimeZoneFullForm'];
3639
- }
3640
- });
3641
- }
3642
- //Listen to Email Count when user Read
3643
- listenToEmailCountEvent() {
3644
- this._eventService
3645
- .listenerUserEmail()
3646
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData))
3647
- .subscribe((data) => {
3648
- if (data && data['component'] === 'email-count') {
3649
- this.totalEmails = data['mailCount'];
3650
- }
3651
- });
3652
- }
3653
- //Method: Convert text one Lang. to another
3654
- ListenToTranslateEvent() {
3655
- this.translate.onLangChange.subscribe((val) => {
3656
- this.getTranslateContent();
3657
- });
3658
- }
3659
- //Method: Convert text one Lang. to another Event Listener
3660
- getTranslateContent() {
3661
- this.translate.get(this.translateName).subscribe((trans) => {
3662
- this.accessTypes.forEach((item, index) => {
3663
- const key = this.translateName[index];
3664
- item['name'] = trans[key];
3665
- });
3666
- });
3667
- }
3668
- OpenNotificationModal() {
3669
- // const modalRef = this.modalService.open(NotificationSidebarComponent);
3670
- // modalRef.componentInstance.lesson = lesson;
3671
- this.bsModalInstance?.show();
3672
- }
3673
- closeModal() {
3674
- this.bsModalInstance?.hide();
3675
- }
3676
- //Method: Call APi to Fetch New Notification Count
3677
- getEventwiseNotification() {
3678
- // this.refreshNotification.emit(true);
3679
- this.getEventwiseNotificationCount();
3680
- }
3681
- setWebAPIURL() {
3682
- if (GlobalConstants.baseURL == undefined) {
3683
- if (localStorage.getItem('_WAU')) {
3684
- GlobalConstants.baseURL = localStorage.getItem('_WAU') || '';
3685
- }
3686
- else {
3687
- let parsedURL = new URL(window.location.href);
3688
- let WebApiUrl = parsedURL.origin;
3689
- GlobalConstants.baseURL = WebApiUrl;
3690
- localStorage.setItem('_WAU', GlobalConstants.baseURL);
3691
- }
3692
- }
3693
- }
3694
- getUserActivityDetails() {
3695
- // Reset error state before API calls
3696
- this.isErrorFound = false;
3697
- // Initialize response container for forkJoin
3698
- const responseSet = {};
3699
- // Build payload once for notification API
3700
- const notificationPayload = {
3701
- ApplicationName: GlobalConstants.applicationName,
3702
- UserId: String(this.userId),
3703
- };
3704
- // Add notification API if enabled
3705
- if (this.EnableNotifications) {
3706
- responseSet.notifications = this.httpCommonService
3707
- .getWorkFlowTicketCount(notificationPayload)
3708
- .pipe(
3709
- // Extract valid notification data
3710
- map((response) => response),
3711
- // Handle API error without breaking forkJoin
3712
- catchError(() => {
3713
- this.isErrorFound = true;
3714
- return of(null);
3715
- }));
3716
- }
3717
- // Add user profile API if enabled
3718
- if (this.EnableProfile) {
3719
- responseSet.userinfo = this.httpCommonService.getLoggedInUserDetails();
3720
- }
3721
- // Add timezone API if enabled
3722
- if (this.EnableTimeZone) {
3723
- responseSet.timeZone = this.httpCommonService.getGlobalTimeZone();
3724
- }
3725
- // Add unread email count API if enabled
3726
- if (this.EnableMail) {
3727
- responseSet.emailCount =
3728
- this.httpCommonService.getUnreadUserEmailsCount();
3729
- }
3730
- // Execute all enabled APIs together
3731
- forkJoin(responseSet)
3732
- .pipe(
3733
- // Mark header loading as completed
3734
- finalize(() => {
3735
- this.isHeaderContentLoaded = true;
3736
- }))
3737
- .subscribe((response) => {
3738
- // Process notification data
3739
- if (response.notifications) {
3740
- this.getTotalNotificationCounts(response.notifications);
3741
- }
3742
- // Process user profile data
3743
- if (response.userinfo) {
3744
- this.getLoggedInUserDetails(response.userinfo);
3745
- }
3746
- // Process timezone list
3747
- if (response.timeZone) {
3748
- this.getListOfTimeZones(response.timeZone);
3749
- }
3750
- // Process unread email count
3751
- if (response.emailCount) {
3752
- this.getUserEmailCount(response.emailCount);
3753
- }
3754
- });
3755
- }
3756
- getTotalNotificationCounts(data) {
3757
- // this.isErrorFound = false;
3758
- this.userNotificationCountObj = data || {};
3759
- if (this.userNotificationCountObj &&
3760
- this.userNotificationCountObj['PendingCount']) {
3761
- if (Number(this.userNotificationCountObj['PendingCount']) > 99) {
3762
- this.userNotificationCount = '99+';
3763
- }
3764
- else {
3765
- this.userNotificationCount = String(this.userNotificationCountObj['PendingCount']);
3766
- }
3767
- }
3768
- else {
3769
- this.userNotificationCount = '';
3770
- }
3771
- }
3772
- /*Method : Retrieves details of the currently logged-in user*/
3773
- getLoggedInUserDetails(response) {
3774
- if (response && response['success'] && response['result']) {
3775
- this.userDetails = response['result'];
3776
- this.userdisplayName = this.userDetails['userDisplayName'];
3777
- }
3778
- }
3779
- /*Method : GET
3780
- Action : Get List of Time Zone*/
3781
- getListOfTimeZones(result) {
3782
- if (result && result['abbreviations']) {
3783
- this.timezoneDetails.emit(result);
3784
- this.userTimeZoneAbbreviations = result['abbreviations'];
3785
- this.userTimeZoneFullForm = result['userTimeZone'];
3786
- }
3787
- }
3788
- /*Method : GET
3789
- Action : Transformation fo Count */
3790
- getUserEmailCount(count) {
3791
- if (count <= 0) {
3792
- this.totalEmails = '';
3793
- }
3794
- else if (count > 99) {
3795
- this.totalEmails = '99+';
3796
- }
3797
- else {
3798
- this.totalEmails = String(count);
3799
- }
3800
- }
3801
- /** API to get the header LOGO */
3802
- loadHeaderLogo() {
3803
- this.httpCommonService.getLogo().subscribe((img) => {
3804
- this.getBgImage.emit(img);
3805
- this.headerLogo = 'data:image/png;base64,' + img['logoImg'];
3806
- });
3807
- }
3808
- /** API to get the timezone */
3809
- // getUserPreferredTimezone() {
3810
- // this.httpCommonService.getGlobalTimeZone().subscribe((res: any) => {
3811
- // if (res?.abbreviations) {
3812
- // this.userTimeZoneAbbreviations = res.abbreviations;
3813
- // this.userTimeZoneFullForm = res?.userTimeZone;
3814
- // }
3815
- // });
3816
- // }
3817
- //* get Lob AI call and initial LOB emitter
3818
- getListofLOB() {
3819
- this.showLobLoader = true;
3820
- this.httpCommonService.getLOBList().subscribe((res) => {
3821
- this.showLobLoader = false;
3822
- this.userLOBList = res.result;
3823
- //* As per parent input, here we add All LOB option in DDL
3824
- if (this.showAllLOB)
3825
- this.userLOBList.unshift({
3826
- lobId: -1,
3827
- lobName: 'All LOB',
3828
- });
3829
- let initialLobSelected = this.getLobById(this.userLOBList, this.userLOBList[0]?.lobId);
3830
- const preSelectedLob = JSON.parse(localStorage.getItem('XOB') || 'null');
3831
- let isPreSelectedLobExistsInList = this.userLOBList.some((lob) => Number(lob.lobId) == Number(preSelectedLob?.LOBId));
3832
- if (preSelectedLob &&
3833
- Number(preSelectedLob.LOBId) &&
3834
- isPreSelectedLobExistsInList) {
3835
- //* Emitting 1st LOB for LOB List as LOb details available in localstorega
3836
- this.selectedLOBId = preSelectedLob?.LOBId;
3837
- this.tempSelectedLOBId = preSelectedLob?.LOBId;
3838
- initialLobSelected = this.getLobById(this.userLOBList, this.selectedLOBId);
3839
- }
3840
- else {
3841
- //* Emitting 1st LOB for LOB List if localstorage have null LOB details
3842
- this.selectedLOBId = this.userLOBList[0]?.lobId;
3843
- this.tempSelectedLOBId = this.userLOBList[0]?.lobId;
3844
- localStorage.setItem('XOB', JSON.stringify(initialLobSelected));
3845
- }
3846
- this.lobSelected.emit(initialLobSelected);
3847
- this.cdRef.detectChanges();
3848
- });
3849
- }
3850
- //* Selected LOB emitter
3851
- onLobChangeEvent(event) {
3852
- this.selectedLOBId = event.value;
3853
- this.openConfirm(event);
3854
- }
3855
- openConfirm(event) {
3856
- this.confirmDialog.openConfirmModal(event);
3857
- }
3858
- lobChangeConfirmation(event) {
3859
- if (event) {
3860
- this.tempSelectedLOBId = this.selectedLOBId;
3861
- let selectedLob = this.getLobById(this.userLOBList, this.tempSelectedLOBId);
3862
- localStorage.setItem('XOB', JSON.stringify(selectedLob));
3863
- this.lobSelected.emit(selectedLob);
3864
- }
3865
- else {
3866
- this.selectedLOBId = this.tempSelectedLOBId;
3867
- }
3868
- }
3869
- setCustomLobId(lobId) {
3870
- if (this.userLOBList) {
3871
- let filteredLobs = this.getLobById(this.userLOBList, lobId);
3872
- if (Object.keys(filteredLobs).length > 0) {
3873
- this.selectedLOBId = lobId;
3874
- //* If the LOB is forcefully set from the parent module, CustomLOBSetByParent is set to true; otherwise, it is set to false.
3875
- filteredLobs['CustomLOBSetByParent'] = true;
3876
- this.lobSelected.emit(filteredLobs);
3877
- localStorage.setItem('XOB', JSON.stringify(filteredLobs));
3878
- }
3879
- else {
3880
- //todo need to do translation
3881
- this.msgService.error('The LOB you are trying to set is not available.');
3882
- }
3883
- }
3884
- }
3885
- //* Helper function to get selected LOB Object by LobId
3886
- getLobById(list, id) {
3887
- const item = list.find((x) => x.lobId === id);
3888
- if (!item)
3889
- return {};
3890
- return {
3891
- LOBId: item.lobId,
3892
- LOBName: item.lobName,
3893
- CustomLOBSetByParent: false,
3894
- };
3895
- }
3896
- //* get the Mail count
3897
- // getMailCount() {
3898
- // this.httpCommonService
3899
- // .getUnreadUserEmailsCount()
3900
- // .pipe(takeUntil(this.unsubscribeAPIEventListenerData))
3901
- // .subscribe((result) => {
3902
- // this.totalEmails = result;
3903
- // });
3904
- // }
3905
- //Action: Used to Get Total Eventwise User Notification Count */
3906
- getEventwiseNotificationCount() {
3907
- let payload = {
3908
- ApplicationName: GlobalConstants.applicationName,
3909
- UserId: String(this.userId),
3910
- };
3911
- this.notificationLoadder = true;
3912
- this.httpCommonService
3913
- .getWorkFlowTicketEventwiseCount(payload)
3914
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData), finalize(() => (this.notificationLoadder = false)))
3915
- .subscribe({
3916
- next: (data) => {
3917
- this.isErrorFound = data.length == 0;
3918
- this.eventwiseNotificationCount = data;
3919
- },
3920
- error: () => {
3921
- this.isErrorFound = true;
3922
- },
3923
- });
3924
- }
3925
- //* Get Module privilege list
3926
- getUserAssignedApp() {
3927
- this.ListOfUserPrivillegedApp = [];
3928
- this.userAppLoaderLoadder = true;
3929
- this.httpCommonService
3930
- .getUserAssignedApps()
3931
- .pipe(takeUntil(this.unsubscribeAPIEventListenerData))
3932
- .subscribe((result) => {
3933
- this.userAppLoaderLoadder = false;
3934
- this.ListOfUserPrivillegedApp = result;
3935
- });
3936
- }
3937
- //* Get User details
3938
- getLoggedInuserDetails() {
3939
- this.httpCommonService.getLoggedInUserDetails().subscribe((result) => {
3940
- this.userDetailsInfo = result.result;
3941
- this.userdisplayName = this.userDetailsInfo['userDisplayName'];
3942
- });
3943
- }
3944
- ngOnDestroy() {
3945
- this.unsubscribeAPIEventListenerData.next(true);
3946
- this.unsubscribeAPIEventListenerData.complete();
3947
- this.unsubscribeSidebarListenerData.next(true);
3948
- this.unsubscribeSidebarListenerData.complete();
3949
- }
3950
- }
3951
- 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 });
3952
- 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 });
3953
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CommonHeaderLibComponent, decorators: [{
3954
- type: Component,
3955
- 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"] }]
3956
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: RestSignalRService }, { type: EventService }, { type: i4.TranslateService }, { type: HttpCommonService }, { type: ToastMsgService }]; }, propDecorators: { EnableLogo: [{
3957
- type: Input
3958
- }], moduleName: [{
3959
- type: Input
3960
- }], EnableTimeZone: [{
3961
- type: Input
3962
- }], EnableLOB: [{
3963
- type: Input
3964
- }], showAllLOB: [{
3965
- type: Input
3966
- }], EnableMail: [{
3967
- type: Input
3968
- }], EnableNotifications: [{
3969
- type: Input
3970
- }], EnableMoreApps: [{
3971
- type: Input
3972
- }], EnableProfile: [{
3973
- type: Input
3974
- }], languages: [{
3975
- type: Input
3976
- }], timezoneDetails: [{
3977
- type: Output
3978
- }], lobSelected: [{
3979
- type: Output
3980
- }], getBgImage: [{
3981
- type: Output
3982
- }], langChange: [{
3983
- type: Output
3984
- }], overlayStateChange: [{
3985
- type: Output
3986
- }], confirmDialog: [{
3987
- type: ViewChild,
3988
- args: ['confirmDialog']
3989
- }], appPanel: [{
3990
- type: ViewChild,
3991
- args: ['App']
3992
- }], notifyModalRef: [{
3993
- type: ViewChild,
3994
- args: ['notifyModal']
3995
- }], notifyModal: [{
3996
- type: ViewChild,
3997
- args: ['notifyModal']
3998
- }] } });
3999
-
4000
- class NotificationSidebarComponent {
4001
- constructor() {
4002
- this.userNotificationCount = '';
4003
- this.userNotificationCountObj = {};
4004
- this.eventwiseNotificationCount = [];
4005
- this.refreshNotification = new EventEmitter();
4006
- this.isErrorOccured = false;
4007
- this.notificationLoadder = true;
4008
- this.NoServiceMsgText = 'Generic_lib.CommonError';
4009
- this.repeatLoader = Array(9).fill(0);
4010
- }
4011
- //Method: Call APi to Fetch New Notification Count
4012
- getEventwiseNotification() {
4013
- this.refreshNotification.emit(true);
4014
- }
4015
- }
4016
- NotificationSidebarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NotificationSidebarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4017
- 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"] }] });
4018
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NotificationSidebarComponent, decorators: [{
4019
- type: Component,
4020
- 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"] }]
4021
- }], ctorParameters: function () { return []; }, propDecorators: { userNotificationCount: [{
4022
- type: Input
4023
- }], userNotificationCountObj: [{
4024
- type: Input
4025
- }], eventwiseNotificationCount: [{
4026
- type: Input
4027
- }], refreshNotification: [{
4028
- type: Output
4029
- }], isErrorOccured: [{
4030
- type: Input
4031
- }], notificationLoadder: [{
4032
- type: Input
4033
- }] } });
4034
-
4035
- /**
4036
- * Common header library module.
4037
- *
4038
- * Translation initialization (APP_INITIALIZER, languages.json validation,
4039
- * fallback chain, language-file loading) is OWNED BY THE CONSUMING APP —
4040
- * see `initTranslateService` and `HttpLoaderFactory` in src/app/app.module.ts
4041
- * (test/dev host) and the equivalent code in your main project's MainModule.
4042
- *
4043
- * The library only imports/exports `TranslateModule` (no `forChild({ isolate })`)
4044
- * so its components share the host app's TranslateService singleton. This
4045
- * guarantees that when the host changes language, library labels translate
4046
- * accordingly.
4047
- *
4048
- * The supported-language list (USERFILTEREDLANGUAGES) is provided by the
4049
- * host app via the `[languages]` @Input on `<lib-common-header-lib>`, which
4050
- * forwards it down to `<ng-translation>`. The library no longer fetches
4051
- * languages.json itself.
4052
- */
4053
- class CommonHeaderLibModule {
4054
- }
4055
- CommonHeaderLibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CommonHeaderLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4056
- CommonHeaderLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: CommonHeaderLibModule, declarations: [CommonHeaderLibComponent,
4057
- SliceToTwoPipe,
4058
- customDateFormatPipe,
4059
- DateDiffPipe,
4060
- UserSidebarComponent,
4061
- SidePopupComponent,
4062
- NgTranslationComponent,
4063
- UserMailboxComponent,
4064
- NotificationSidebarComponent,
4065
- GeneralConfigurationComponent,
4066
- TimezoneConfigurationComponent,
4067
- LandingpgConfigComponent,
4068
- NoServiceMyAccessPgComponent,
4069
- GridPaginationComponent,
4070
- ConfirmDialogComponent,
4071
- ViewpasswordPopupComponent], imports: [CommonModule,
4072
- HttpClientModule,
4073
- ReactiveFormsModule,
4074
- /* UI Modules */
4075
- InputTextModule,
4076
- DropdownModule,
4077
- OverlayPanelModule,
4078
- TooltipModule,
4079
- BadgeModule,
4080
- DialogModule,
4081
- SkeletonModule,
4082
- PaginatorModule,
4083
- TableModule,
4084
- ButtonModule,
4085
- ConfirmDialogModule,
4086
- NgbModule,
4087
- /* Share the host app's TranslateService instance — DO NOT use
4088
- forChild({ isolate: true }) here, otherwise library components would
4089
- receive a separate TranslateService and host language changes would
4090
- not propagate to library labels. */
4091
- TranslateModule], exports: [CommonHeaderLibComponent,
4092
- SliceToTwoPipe,
4093
- DateDiffPipe,
4094
- customDateFormatPipe,
4095
- ConfirmDialogComponent,
4096
- ViewpasswordPopupComponent,
4097
- TranslateModule] });
4098
- CommonHeaderLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CommonHeaderLibModule, imports: [CommonModule,
4099
- HttpClientModule,
4100
- ReactiveFormsModule,
4101
- /* UI Modules */
4102
- InputTextModule,
4103
- DropdownModule,
4104
- OverlayPanelModule,
4105
- TooltipModule,
4106
- BadgeModule,
4107
- DialogModule,
4108
- SkeletonModule,
4109
- PaginatorModule,
4110
- TableModule,
4111
- ButtonModule,
4112
- ConfirmDialogModule,
4113
- NgbModule,
4114
- /* Share the host app's TranslateService instance — DO NOT use
4115
- forChild({ isolate: true }) here, otherwise library components would
4116
- receive a separate TranslateService and host language changes would
4117
- not propagate to library labels. */
4118
- TranslateModule, TranslateModule] });
4119
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CommonHeaderLibModule, decorators: [{
4120
- type: NgModule,
4121
- args: [{
4122
- declarations: [
4123
- CommonHeaderLibComponent,
4124
- SliceToTwoPipe,
4125
- customDateFormatPipe,
4126
- DateDiffPipe,
4127
- UserSidebarComponent,
4128
- SidePopupComponent,
4129
- NgTranslationComponent,
4130
- UserMailboxComponent,
4131
- NotificationSidebarComponent,
4132
- GeneralConfigurationComponent,
4133
- TimezoneConfigurationComponent,
4134
- LandingpgConfigComponent,
4135
- NoServiceMyAccessPgComponent,
4136
- GridPaginationComponent,
4137
- ConfirmDialogComponent,
4138
- ViewpasswordPopupComponent,
4139
- ],
4140
- imports: [
4141
- CommonModule,
4142
- HttpClientModule,
4143
- ReactiveFormsModule,
4144
- /* UI Modules */
4145
- InputTextModule,
4146
- DropdownModule,
4147
- OverlayPanelModule,
4148
- TooltipModule,
4149
- BadgeModule,
4150
- DialogModule,
4151
- SkeletonModule,
4152
- PaginatorModule,
4153
- TableModule,
4154
- ButtonModule,
4155
- ConfirmDialogModule,
4156
- NgbModule,
4157
- /* Share the host app's TranslateService instance — DO NOT use
4158
- forChild({ isolate: true }) here, otherwise library components would
4159
- receive a separate TranslateService and host language changes would
4160
- not propagate to library labels. */
4161
- TranslateModule,
4162
- ],
4163
- exports: [
4164
- CommonHeaderLibComponent,
4165
- SliceToTwoPipe,
4166
- DateDiffPipe,
4167
- customDateFormatPipe,
4168
- ConfirmDialogComponent,
4169
- ViewpasswordPopupComponent,
4170
- TranslateModule,
4171
- ],
4172
- providers: [],
4173
- }]
4174
- }] });
4175
-
4176
- /*
4177
- * Public API Surface of common-header-lib
4178
- */
4179
- // export * from './assets/js/bigint-decrypt.helper';
4180
-
4181
- /**
4182
- * Generated bundle index. Do not edit.
4183
- */
4184
-
4185
- export { CommonHeaderLibComponent, CommonHeaderLibModule, CommonHeaderLibService, ConfirmDialogComponent, DateDiffPipe, SliceToTwoPipe, ViewpasswordPopupComponent, customDateFormatPipe };
4186
- //# sourceMappingURL=common-header-lib.mjs.map