@ksremp/ngx-ksremp-app-lib 1.0.44 → 1.0.46

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.
@@ -21,7 +21,7 @@ import * as i5 from '@ngx-loading-bar/core';
21
21
  import { LoadingBarModule } from '@ngx-loading-bar/core';
22
22
  import * as i1$1 from 'ngx-logger';
23
23
  import * as i6 from '@angular/platform-browser';
24
- import { BehaviorSubject, interval, throwError, catchError, of, tap, from, timer, Subject, firstValueFrom, finalize, combineLatest } from 'rxjs';
24
+ import { BehaviorSubject, Subject, interval, throwError, catchError, of, tap, from, timer, firstValueFrom, finalize, combineLatest } from 'rxjs';
25
25
  import * as i2$1 from 'ngx-joyride';
26
26
  import { JoyrideModule } from 'ngx-joyride';
27
27
  import { LoadingBarHttpClientModule } from '@ngx-loading-bar/http-client';
@@ -1531,6 +1531,8 @@ class LoginService {
1531
1531
  this.userBs = new BehaviorSubject(null);
1532
1532
  this.userIdInUnitBs = new BehaviorSubject(null);
1533
1533
  this.menuBs = new BehaviorSubject(null);
1534
+ this.sessionClearedBs = new Subject();
1535
+ this.sessionCleared$ = this.sessionClearedBs.asObservable();
1534
1536
  }
1535
1537
  getUserPersonalDetails() {
1536
1538
  return this.util.get('user/details/' + this.user.username);
@@ -1619,6 +1621,7 @@ class LoginService {
1619
1621
  this.storage.remove('username');
1620
1622
  this.claimantContextService.clearContext();
1621
1623
  this.removeCookies();
1624
+ this.sessionClearedBs.next();
1622
1625
  }
1623
1626
  removeCookies() {
1624
1627
  this.deleteCookie('at');
@@ -10402,9 +10405,15 @@ class LexChatService {
10402
10405
  this.sessionAttributes = {};
10403
10406
  this.authenticatedUsername = '';
10404
10407
  this.authenticatedAuthToken = '';
10408
+ this.authenticatedClaimantId = null;
10405
10409
  /** Emit true to open the chatbot popup from anywhere */
10406
10410
  this.chatOpen$ = new BehaviorSubject(false);
10407
10411
  this.sessionId = this.generateSessionId();
10412
+ this.loginService.sessionCleared$.subscribe(() => {
10413
+ this.clearAuthenticatedUser();
10414
+ this.resetSession({ regenerateSessionId: true });
10415
+ this.chatOpen$.next(false);
10416
+ });
10408
10417
  }
10409
10418
  generateSessionId() {
10410
10419
  if (typeof crypto !== 'undefined' && 'randomUUID' in crypto) {
@@ -10412,13 +10421,14 @@ class LexChatService {
10412
10421
  }
10413
10422
  return 'web-' + Math.random().toString(36).substring(2);
10414
10423
  }
10415
- setAuthenticatedUser(username, authToken = 'authToken') {
10424
+ setAuthenticatedUser(username, authToken = 'authToken', claimantId) {
10416
10425
  const normalizedUsername = (username ?? '').trim();
10417
10426
  if (!normalizedUsername) {
10418
10427
  return;
10419
10428
  }
10420
10429
  this.authenticatedUsername = normalizedUsername;
10421
10430
  this.authenticatedAuthToken = authToken || 'authToken';
10431
+ this.authenticatedClaimantId = claimantId ?? null;
10422
10432
  this.sessionAttributes = {
10423
10433
  ...this.sessionAttributes,
10424
10434
  userLoggedIn: 'true',
@@ -10428,6 +10438,8 @@ class LexChatService {
10428
10438
  clearAuthenticatedUser() {
10429
10439
  this.authenticatedUsername = '';
10430
10440
  this.authenticatedAuthToken = '';
10441
+ this.authenticatedClaimantId = null;
10442
+ this.sessionAttributes = {};
10431
10443
  }
10432
10444
  async sendMessage(text, clientFilter) {
10433
10445
  const headers = new HttpHeaders({ 'Content-Type': 'application/json' });
@@ -10445,6 +10457,7 @@ class LexChatService {
10445
10457
  if (loggedInUsername) {
10446
10458
  mergedSessionAttrs['userLoggedIn'] = 'true';
10447
10459
  mergedSessionAttrs['authToken'] = this.authenticatedAuthToken || 'authToken';
10460
+ delete mergedSessionAttrs['loginRequired'];
10448
10461
  }
10449
10462
  if (clientFilter && clientFilter.trim()) {
10450
10463
  mergedSessionAttrs['QNAClientFilter'] = clientFilter.trim();
@@ -10454,6 +10467,7 @@ class LexChatService {
10454
10467
  sessionId: effectiveSessionId,
10455
10468
  text,
10456
10469
  username: loggedInUsername || undefined,
10470
+ claimantId: this.authenticatedClaimantId ?? undefined,
10457
10471
  sessionState: Object.keys(mergedSessionAttrs).length
10458
10472
  ? { sessionAttributes: mergedSessionAttrs }
10459
10473
  : undefined,
@@ -10474,7 +10488,8 @@ class LexChatService {
10474
10488
  url: messages[0]?.url ?? [],
10475
10489
  isPwd: this.sessionAttributes['isPwd'] ?? '',
10476
10490
  isAck: this.sessionAttributes['isAck'] ?? '',
10477
- is_end_session: this.sessionAttributes['end_session'] ?? ''
10491
+ is_end_session: this.sessionAttributes['end_session'] ?? '',
10492
+ loginREquired: this.sessionAttributes['loginREquired'] ?? ''
10478
10493
  };
10479
10494
  }
10480
10495
  catch (err) {
@@ -11724,11 +11739,17 @@ class UserLoginComponent {
11724
11739
  }
11725
11740
  this.show2FADialog = false;
11726
11741
  this.lexChat.setAuthenticatedUser(this.username.value, 'authToken');
11742
+ console.log('USER_LOGGED_IN payload', {
11743
+ username: this.username.value,
11744
+ authToken: 'authToken',
11745
+ claimantId: userModel.claimantId
11746
+ });
11727
11747
  window.postMessage({
11728
11748
  type: 'USER_LOGGED_IN',
11729
11749
  payload: {
11730
11750
  username: this.username.value,
11731
- authToken: 'authToken'
11751
+ authToken: 'authToken',
11752
+ claimantId: userModel.claimantId
11732
11753
  }
11733
11754
  }, window.location.origin);
11734
11755
  this.success.emit();
@@ -36585,37 +36606,37 @@ function ChatbotLexComponent_div_2_span_3_Template(rf, ctx) { if (rf & 1) {
36585
36606
  i0.ɵɵelementEnd();
36586
36607
  } }
36587
36608
  function ChatbotLexComponent_div_2_div_26_img_3_Template(rf, ctx) { if (rf & 1) {
36588
- i0.ɵɵelement(0, "img", 46);
36609
+ i0.ɵɵelement(0, "img", 47);
36589
36610
  } }
36590
36611
  function ChatbotLexComponent_div_2_div_26_ng_container_5_button_4_Template(rf, ctx) { if (rf & 1) {
36591
- const _r26 = i0.ɵɵgetCurrentView();
36592
- i0.ɵɵelementStart(0, "button", 50);
36593
- i0.ɵɵlistener("mouseenter", function ChatbotLexComponent_div_2_div_26_ng_container_5_button_4_Template_button_mouseenter_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r26); const s_r23 = restoredCtx.$implicit; const i_r15 = i0.ɵɵnextContext(2).index; const ctx_r24 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r24.onStarEnter(i_r15, s_r23)); })("click", function ChatbotLexComponent_div_2_div_26_ng_container_5_button_4_Template_button_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r26); const s_r23 = restoredCtx.$implicit; const i_r15 = i0.ɵɵnextContext(2).index; const ctx_r27 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r27.onStarClick(s_r23, i_r15)); });
36612
+ const _r27 = i0.ɵɵgetCurrentView();
36613
+ i0.ɵɵelementStart(0, "button", 51);
36614
+ i0.ɵɵlistener("mouseenter", function ChatbotLexComponent_div_2_div_26_ng_container_5_button_4_Template_button_mouseenter_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r27); const s_r24 = restoredCtx.$implicit; const i_r16 = i0.ɵɵnextContext(2).index; const ctx_r25 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r25.onStarEnter(i_r16, s_r24)); })("click", function ChatbotLexComponent_div_2_div_26_ng_container_5_button_4_Template_button_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r27); const s_r24 = restoredCtx.$implicit; const i_r16 = i0.ɵɵnextContext(2).index; const ctx_r28 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r28.onStarClick(s_r24, i_r16)); });
36594
36615
  i0.ɵɵtext(1, " \u2605 ");
36595
36616
  i0.ɵɵelementEnd();
36596
36617
  } if (rf & 2) {
36597
- const s_r23 = ctx.$implicit;
36598
- const i_r15 = i0.ɵɵnextContext(2).index;
36599
- const ctx_r22 = i0.ɵɵnextContext(2);
36600
- i0.ɵɵclassProp("filled", ctx_r22.isStarFilled(i_r15, s_r23));
36601
- i0.ɵɵpropertyInterpolate1("title", "Rate ", s_r23, " star(s)");
36602
- i0.ɵɵattribute("aria-label", "Rate " + s_r23 + " star(s)");
36618
+ const s_r24 = ctx.$implicit;
36619
+ const i_r16 = i0.ɵɵnextContext(2).index;
36620
+ const ctx_r23 = i0.ɵɵnextContext(2);
36621
+ i0.ɵɵclassProp("filled", ctx_r23.isStarFilled(i_r16, s_r24));
36622
+ i0.ɵɵpropertyInterpolate1("title", "Rate ", s_r24, " star(s)");
36623
+ i0.ɵɵattribute("aria-label", "Rate " + s_r24 + " star(s)");
36603
36624
  } }
36604
36625
  function ChatbotLexComponent_div_2_div_26_ng_container_5_Template(rf, ctx) { if (rf & 1) {
36605
- const _r32 = i0.ɵɵgetCurrentView();
36626
+ const _r33 = i0.ɵɵgetCurrentView();
36606
36627
  i0.ɵɵelementContainerStart(0);
36607
- i0.ɵɵelementStart(1, "span", 47);
36628
+ i0.ɵɵelementStart(1, "span", 48);
36608
36629
  i0.ɵɵtext(2, " Your feedback matters to us ");
36609
36630
  i0.ɵɵelementEnd();
36610
- i0.ɵɵelementStart(3, "div", 48);
36611
- i0.ɵɵlistener("mouseleave", function ChatbotLexComponent_div_2_div_26_ng_container_5_Template_div_mouseleave_3_listener() { i0.ɵɵrestoreView(_r32); const i_r15 = i0.ɵɵnextContext().index; const ctx_r30 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r30.onStarLeave(i_r15)); });
36612
- i0.ɵɵtemplate(4, ChatbotLexComponent_div_2_div_26_ng_container_5_button_4_Template, 2, 4, "button", 49);
36631
+ i0.ɵɵelementStart(3, "div", 49);
36632
+ i0.ɵɵlistener("mouseleave", function ChatbotLexComponent_div_2_div_26_ng_container_5_Template_div_mouseleave_3_listener() { i0.ɵɵrestoreView(_r33); const i_r16 = i0.ɵɵnextContext().index; const ctx_r31 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r31.onStarLeave(i_r16)); });
36633
+ i0.ɵɵtemplate(4, ChatbotLexComponent_div_2_div_26_ng_container_5_button_4_Template, 2, 4, "button", 50);
36613
36634
  i0.ɵɵelementEnd();
36614
36635
  i0.ɵɵelementContainerEnd();
36615
36636
  } if (rf & 2) {
36616
- const ctx_r17 = i0.ɵɵnextContext(3);
36637
+ const ctx_r18 = i0.ɵɵnextContext(3);
36617
36638
  i0.ɵɵadvance(4);
36618
- i0.ɵɵproperty("ngForOf", ctx_r17.getStars());
36639
+ i0.ɵɵproperty("ngForOf", ctx_r18.getStars());
36619
36640
  } }
36620
36641
  function ChatbotLexComponent_div_2_div_26_ng_template_6_ng_container_1_br_2_Template(rf, ctx) { if (rf & 1) {
36621
36642
  i0.ɵɵelement(0, "br");
@@ -36626,121 +36647,141 @@ function ChatbotLexComponent_div_2_div_26_ng_template_6_ng_container_1_Template(
36626
36647
  i0.ɵɵtemplate(2, ChatbotLexComponent_div_2_div_26_ng_template_6_ng_container_1_br_2_Template, 1, 0, "br", 8);
36627
36648
  i0.ɵɵelementContainerEnd();
36628
36649
  } if (rf & 2) {
36629
- const line_r36 = ctx.$implicit;
36630
- const last_r37 = ctx.last;
36650
+ const line_r37 = ctx.$implicit;
36651
+ const last_r38 = ctx.last;
36631
36652
  i0.ɵɵadvance(1);
36632
- i0.ɵɵtextInterpolate1(" ", line_r36, " ");
36653
+ i0.ɵɵtextInterpolate1(" ", line_r37, " ");
36633
36654
  i0.ɵɵadvance(1);
36634
- i0.ɵɵproperty("ngIf", !last_r37);
36655
+ i0.ɵɵproperty("ngIf", !last_r38);
36635
36656
  } }
36636
36657
  function ChatbotLexComponent_div_2_div_26_ng_template_6_div_2_Template(rf, ctx) { if (rf & 1) {
36637
- const _r41 = i0.ɵɵgetCurrentView();
36638
- i0.ɵɵelementStart(0, "div", 54)(1, "button", 55);
36639
- i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_div_26_ng_template_6_div_2_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r41); const i_r15 = i0.ɵɵnextContext(2).index; const ctx_r39 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r39.onYesNoClick("Yes", i_r15)); });
36658
+ const _r42 = i0.ɵɵgetCurrentView();
36659
+ i0.ɵɵelementStart(0, "div", 55)(1, "button", 56);
36660
+ i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_div_26_ng_template_6_div_2_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r42); const i_r16 = i0.ɵɵnextContext(2).index; const ctx_r40 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r40.onYesNoClick("Yes", i_r16)); });
36640
36661
  i0.ɵɵtext(2, " Yes ");
36641
36662
  i0.ɵɵelementEnd();
36642
- i0.ɵɵelementStart(3, "button", 56);
36643
- i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_div_26_ng_template_6_div_2_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r41); const i_r15 = i0.ɵɵnextContext(2).index; const ctx_r42 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r42.onYesNoClick("No", i_r15)); });
36663
+ i0.ɵɵelementStart(3, "button", 57);
36664
+ i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_div_26_ng_template_6_div_2_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r42); const i_r16 = i0.ɵɵnextContext(2).index; const ctx_r43 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r43.onYesNoClick("No", i_r16)); });
36644
36665
  i0.ɵɵtext(4, " No ");
36645
36666
  i0.ɵɵelementEnd()();
36646
36667
  } }
36647
36668
  function ChatbotLexComponent_div_2_div_26_ng_template_6_div_3_button_1_Template(rf, ctx) { if (rf & 1) {
36648
- const _r47 = i0.ɵɵgetCurrentView();
36649
- i0.ɵɵelementStart(0, "button", 59);
36650
- i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_div_26_ng_template_6_div_3_button_1_Template_button_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r47); const url_r45 = restoredCtx.$implicit; const ctx_r46 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r46.openLink(url_r45)); });
36669
+ const _r48 = i0.ɵɵgetCurrentView();
36670
+ i0.ɵɵelementStart(0, "button", 60);
36671
+ i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_div_26_ng_template_6_div_3_button_1_Template_button_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r48); const url_r46 = restoredCtx.$implicit; const ctx_r47 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r47.openLink(url_r46)); });
36651
36672
  i0.ɵɵtext(1);
36652
36673
  i0.ɵɵelementEnd();
36653
36674
  } if (rf & 2) {
36654
- const url_r45 = ctx.$implicit;
36675
+ const url_r46 = ctx.$implicit;
36655
36676
  i0.ɵɵadvance(1);
36656
- i0.ɵɵtextInterpolate1(" ", url_r45, " ");
36677
+ i0.ɵɵtextInterpolate1(" ", url_r46, " ");
36657
36678
  } }
36658
36679
  function ChatbotLexComponent_div_2_div_26_ng_template_6_div_3_Template(rf, ctx) { if (rf & 1) {
36659
- i0.ɵɵelementStart(0, "div", 57);
36660
- i0.ɵɵtemplate(1, ChatbotLexComponent_div_2_div_26_ng_template_6_div_3_button_1_Template, 2, 1, "button", 58);
36680
+ i0.ɵɵelementStart(0, "div", 58);
36681
+ i0.ɵɵtemplate(1, ChatbotLexComponent_div_2_div_26_ng_template_6_div_3_button_1_Template, 2, 1, "button", 59);
36661
36682
  i0.ɵɵelementEnd();
36662
36683
  } if (rf & 2) {
36663
- const msg_r14 = i0.ɵɵnextContext(2).$implicit;
36684
+ const msg_r15 = i0.ɵɵnextContext(2).$implicit;
36664
36685
  i0.ɵɵadvance(1);
36665
- i0.ɵɵproperty("ngIfOf", msg_r14.url);
36686
+ i0.ɵɵproperty("ngIfOf", msg_r15.url);
36666
36687
  } }
36667
36688
  function ChatbotLexComponent_div_2_div_26_ng_template_6_Template(rf, ctx) { if (rf & 1) {
36668
- i0.ɵɵelementStart(0, "span", 47);
36669
- i0.ɵɵtemplate(1, ChatbotLexComponent_div_2_div_26_ng_template_6_ng_container_1_Template, 3, 2, "ng-container", 51);
36689
+ i0.ɵɵelementStart(0, "span", 48);
36690
+ i0.ɵɵtemplate(1, ChatbotLexComponent_div_2_div_26_ng_template_6_ng_container_1_Template, 3, 2, "ng-container", 52);
36670
36691
  i0.ɵɵelementEnd();
36671
- i0.ɵɵtemplate(2, ChatbotLexComponent_div_2_div_26_ng_template_6_div_2_Template, 5, 0, "div", 52)(3, ChatbotLexComponent_div_2_div_26_ng_template_6_div_3_Template, 2, 1, "div", 53);
36692
+ i0.ɵɵtemplate(2, ChatbotLexComponent_div_2_div_26_ng_template_6_div_2_Template, 5, 0, "div", 53)(3, ChatbotLexComponent_div_2_div_26_ng_template_6_div_3_Template, 2, 1, "div", 54);
36672
36693
  } if (rf & 2) {
36673
- const ctx_r49 = i0.ɵɵnextContext();
36674
- const msg_r14 = ctx_r49.$implicit;
36675
- const i_r15 = ctx_r49.index;
36676
- const ctx_r18 = i0.ɵɵnextContext(2);
36694
+ const ctx_r50 = i0.ɵɵnextContext();
36695
+ const msg_r15 = ctx_r50.$implicit;
36696
+ const i_r16 = ctx_r50.index;
36697
+ const ctx_r19 = i0.ɵɵnextContext(2);
36677
36698
  i0.ɵɵadvance(1);
36678
- i0.ɵɵproperty("ngForOf", ctx_r18.displayLines(msg_r14.text));
36699
+ i0.ɵɵproperty("ngForOf", ctx_r19.displayLines(msg_r15.text));
36679
36700
  i0.ɵɵadvance(1);
36680
- i0.ɵɵproperty("ngIf", msg_r14.from === "bot" && ctx_r18.isYesNoPrompt(msg_r14.text, i_r15));
36701
+ i0.ɵɵproperty("ngIf", msg_r15.from === "bot" && ctx_r19.isYesNoPrompt(msg_r15.text, i_r16));
36681
36702
  i0.ɵɵadvance(1);
36682
- i0.ɵɵproperty("ngIf", msg_r14.url && msg_r14.url.length);
36703
+ i0.ɵɵproperty("ngIf", msg_r15.url && msg_r15.url.length);
36683
36704
  } }
36684
36705
  function ChatbotLexComponent_div_2_div_26_div_9_Template(rf, ctx) { if (rf & 1) {
36685
- const _r52 = i0.ɵɵgetCurrentView();
36686
- i0.ɵɵelementStart(0, "div", 60)(1, "button", 61);
36687
- i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_div_26_div_9_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r52); const i_r15 = i0.ɵɵnextContext().index; const ctx_r50 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r50.sendFeedback("Thumbs up", i_r15)); });
36706
+ const _r53 = i0.ɵɵgetCurrentView();
36707
+ i0.ɵɵelementStart(0, "div", 61)(1, "button", 62);
36708
+ i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_div_26_div_9_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r53); const i_r16 = i0.ɵɵnextContext().index; const ctx_r51 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r51.sendFeedback("Thumbs up", i_r16)); });
36688
36709
  i0.ɵɵtext(2, " \uD83D\uDC4D ");
36689
36710
  i0.ɵɵelementEnd();
36690
- i0.ɵɵelementStart(3, "button", 62);
36691
- i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_div_26_div_9_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r52); const i_r15 = i0.ɵɵnextContext().index; const ctx_r53 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r53.sendFeedback("Thumbs down", i_r15)); });
36711
+ i0.ɵɵelementStart(3, "button", 63);
36712
+ i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_div_26_div_9_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r53); const i_r16 = i0.ɵɵnextContext().index; const ctx_r54 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r54.sendFeedback("Thumbs down", i_r16)); });
36692
36713
  i0.ɵɵtext(4, " \uD83D\uDC4E ");
36693
36714
  i0.ɵɵelementEnd()();
36694
36715
  } }
36695
36716
  function ChatbotLexComponent_div_2_div_26_div_10_Template(rf, ctx) { if (rf & 1) {
36696
- i0.ɵɵelementStart(0, "div", 36);
36717
+ i0.ɵɵelementStart(0, "div", 37);
36697
36718
  i0.ɵɵtext(1);
36698
36719
  i0.ɵɵpipe(2, "date");
36699
36720
  i0.ɵɵelementEnd();
36700
36721
  } if (rf & 2) {
36701
- const msg_r14 = i0.ɵɵnextContext().$implicit;
36702
- i0.ɵɵproperty("ngClass", msg_r14.from === "bot" ? "message-time-bot" : "message-time");
36722
+ const msg_r15 = i0.ɵɵnextContext().$implicit;
36723
+ i0.ɵɵproperty("ngClass", msg_r15.from === "bot" ? "message-time-bot" : "message-time");
36703
36724
  i0.ɵɵadvance(1);
36704
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 2, msg_r14.timestamp, "EEE MMM dd yyyy 'at' hh:mm:ss a"), " ");
36725
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 2, msg_r15.timestamp, "EEE MMM dd yyyy 'at' hh:mm:ss a"), " ");
36705
36726
  } }
36706
36727
  function ChatbotLexComponent_div_2_div_26_Template(rf, ctx) { if (rf & 1) {
36707
- i0.ɵɵelementStart(0, "div", 36)(1, "div", 37)(2, "div", 38);
36708
- i0.ɵɵtemplate(3, ChatbotLexComponent_div_2_div_26_img_3_Template, 1, 0, "img", 39);
36709
- i0.ɵɵelementStart(4, "div", 40);
36710
- i0.ɵɵtemplate(5, ChatbotLexComponent_div_2_div_26_ng_container_5_Template, 5, 1, "ng-container", 41)(6, ChatbotLexComponent_div_2_div_26_ng_template_6_Template, 4, 3, "ng-template", null, 42, i0.ɵɵtemplateRefExtractor);
36728
+ i0.ɵɵelementStart(0, "div", 37)(1, "div", 38)(2, "div", 39);
36729
+ i0.ɵɵtemplate(3, ChatbotLexComponent_div_2_div_26_img_3_Template, 1, 0, "img", 40);
36730
+ i0.ɵɵelementStart(4, "div", 41);
36731
+ i0.ɵɵtemplate(5, ChatbotLexComponent_div_2_div_26_ng_container_5_Template, 5, 1, "ng-container", 42)(6, ChatbotLexComponent_div_2_div_26_ng_template_6_Template, 4, 3, "ng-template", null, 43, i0.ɵɵtemplateRefExtractor);
36711
36732
  i0.ɵɵelementEnd()();
36712
- i0.ɵɵelementStart(8, "div", 43);
36713
- i0.ɵɵtemplate(9, ChatbotLexComponent_div_2_div_26_div_9_Template, 5, 0, "div", 44)(10, ChatbotLexComponent_div_2_div_26_div_10_Template, 3, 5, "div", 45);
36733
+ i0.ɵɵelementStart(8, "div", 44);
36734
+ i0.ɵɵtemplate(9, ChatbotLexComponent_div_2_div_26_div_9_Template, 5, 0, "div", 45)(10, ChatbotLexComponent_div_2_div_26_div_10_Template, 3, 5, "div", 46);
36714
36735
  i0.ɵɵelementEnd()()();
36715
36736
  } if (rf & 2) {
36716
- const msg_r14 = ctx.$implicit;
36717
- const i_r15 = ctx.index;
36718
- const _r19 = i0.ɵɵreference(7);
36737
+ const msg_r15 = ctx.$implicit;
36738
+ const i_r16 = ctx.index;
36739
+ const _r20 = i0.ɵɵreference(7);
36719
36740
  const ctx_r12 = i0.ɵɵnextContext(2);
36720
- i0.ɵɵproperty("ngClass", msg_r14.from);
36741
+ i0.ɵɵproperty("ngClass", msg_r15.from);
36721
36742
  i0.ɵɵadvance(1);
36722
- i0.ɵɵclassProp("short-welcome", msg_r14.from === "bot" && msg_r14.text === "Hi! How may I help you?");
36743
+ i0.ɵɵclassProp("short-welcome", msg_r15.from === "bot" && msg_r15.text === "Hi! How may I help you?");
36723
36744
  i0.ɵɵadvance(2);
36724
- i0.ɵɵproperty("ngIf", msg_r14.from === "bot");
36745
+ i0.ɵɵproperty("ngIf", msg_r15.from === "bot");
36725
36746
  i0.ɵɵadvance(2);
36726
- i0.ɵɵproperty("ngIf", msg_r14.from === "bot" && ctx_r12.isStarRatingPrompt(msg_r14.text, i_r15))("ngIfElse", _r19);
36747
+ i0.ɵɵproperty("ngIf", msg_r15.from === "bot" && ctx_r12.isStarRatingPrompt(msg_r15.text, i_r16))("ngIfElse", _r20);
36727
36748
  i0.ɵɵadvance(4);
36728
- i0.ɵɵproperty("ngIf", msg_r14.from === "bot" && (msg_r14.text == null ? null : msg_r14.text.trim()) !== "Hi! How may I help you?" && !ctx_r12.isMessageRated(i_r15) && i_r15 === ctx_r12.messages.length - 1 && !ctx_r12.isAck);
36749
+ i0.ɵɵproperty("ngIf", msg_r15.from === "bot" && (msg_r15.text == null ? null : msg_r15.text.trim()) !== "Hi! How may I help you?" && !ctx_r12.isMessageRated(i_r16) && i_r16 === ctx_r12.messages.length - 1 && !ctx_r12.isAck);
36729
36750
  i0.ɵɵadvance(1);
36730
- i0.ɵɵproperty("ngIf", msg_r14.timestamp);
36751
+ i0.ɵɵproperty("ngIf", msg_r15.timestamp);
36752
+ } }
36753
+ function ChatbotLexComponent_div_2_div_27_Template(rf, ctx) { if (rf & 1) {
36754
+ i0.ɵɵelementStart(0, "div", 64);
36755
+ i0.ɵɵelement(1, "img", 47);
36756
+ i0.ɵɵelementStart(2, "span", 65);
36757
+ i0.ɵɵtext(3);
36758
+ i0.ɵɵelementEnd();
36759
+ i0.ɵɵelementStart(4, "span", 66)(5, "span");
36760
+ i0.ɵɵtext(6, ".");
36761
+ i0.ɵɵelementEnd();
36762
+ i0.ɵɵelementStart(7, "span");
36763
+ i0.ɵɵtext(8, ".");
36764
+ i0.ɵɵelementEnd();
36765
+ i0.ɵɵelementStart(9, "span");
36766
+ i0.ɵɵtext(10, ".");
36767
+ i0.ɵɵelementEnd()()();
36768
+ } if (rf & 2) {
36769
+ const ctx_r13 = i0.ɵɵnextContext(2);
36770
+ i0.ɵɵadvance(3);
36771
+ i0.ɵɵtextInterpolate1(" ", ctx_r13.loadingText, " ");
36731
36772
  } }
36732
36773
  function ChatbotLexComponent_div_2_Template(rf, ctx) { if (rf & 1) {
36733
- const _r57 = i0.ɵɵgetCurrentView();
36774
+ const _r58 = i0.ɵɵgetCurrentView();
36734
36775
  i0.ɵɵelementStart(0, "div", 11)(1, "div", 12)(2, "button", 13);
36735
- i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r57); const ctx_r56 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r56.toggleExpand()); });
36776
+ i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r58); const ctx_r57 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r57.toggleExpand()); });
36736
36777
  i0.ɵɵtemplate(3, ChatbotLexComponent_div_2_span_3_Template, 2, 0, "span", 8);
36737
36778
  i0.ɵɵelementEnd();
36738
36779
  i0.ɵɵelementStart(4, "button", 14);
36739
- i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r57); const ctx_r58 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r58.minimizeChat()); });
36780
+ i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r58); const ctx_r59 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r59.minimizeChat()); });
36740
36781
  i0.ɵɵtext(5, " _ ");
36741
36782
  i0.ɵɵelementEnd();
36742
36783
  i0.ɵɵelementStart(6, "button", 15);
36743
- i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r57); const ctx_r59 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r59.closeChat()); });
36784
+ i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r58); const ctx_r60 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r60.closeChat()); });
36744
36785
  i0.ɵɵtext(7, " \u2715 ");
36745
36786
  i0.ɵɵelementEnd()();
36746
36787
  i0.ɵɵelementStart(8, "div", 16)(9, "span", 17);
@@ -36754,23 +36795,23 @@ function ChatbotLexComponent_div_2_Template(rf, ctx) { if (rf & 1) {
36754
36795
  i0.ɵɵtext(17);
36755
36796
  i0.ɵɵelementEnd()()()();
36756
36797
  i0.ɵɵelementStart(18, "div", 24)(19, "button", 25);
36757
- i0.ɵɵlistener("mouseenter", function ChatbotLexComponent_div_2_Template_button_mouseenter_19_listener() { i0.ɵɵrestoreView(_r57); const ctx_r60 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r60.getSessionID()); })("click", function ChatbotLexComponent_div_2_Template_button_click_19_listener() { i0.ɵɵrestoreView(_r57); const ctx_r61 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r61.copySessionId()); });
36798
+ i0.ɵɵlistener("mouseenter", function ChatbotLexComponent_div_2_Template_button_mouseenter_19_listener() { i0.ɵɵrestoreView(_r58); const ctx_r61 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r61.getSessionID()); })("click", function ChatbotLexComponent_div_2_Template_button_click_19_listener() { i0.ɵɵrestoreView(_r58); const ctx_r62 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r62.copySessionId()); });
36758
36799
  i0.ɵɵtext(20, " \uD83D\uDEC8 ");
36759
36800
  i0.ɵɵelementEnd();
36760
36801
  i0.ɵɵelementStart(21, "button", 26);
36761
- i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_21_listener() { i0.ɵɵrestoreView(_r57); const ctx_r62 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r62.refreshChat()); });
36802
+ i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_21_listener() { i0.ɵɵrestoreView(_r58); const ctx_r63 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r63.refreshChat()); });
36762
36803
  i0.ɵɵtext(22, " \u27F3 ");
36763
36804
  i0.ɵɵelementEnd()()();
36764
36805
  i0.ɵɵelementStart(23, "div", 27)(24, "div", 28, 29);
36765
- i0.ɵɵtemplate(26, ChatbotLexComponent_div_2_div_26_Template, 11, 8, "div", 30);
36806
+ i0.ɵɵtemplate(26, ChatbotLexComponent_div_2_div_26_Template, 11, 8, "div", 30)(27, ChatbotLexComponent_div_2_div_27_Template, 11, 1, "div", 31);
36766
36807
  i0.ɵɵelementEnd()();
36767
- i0.ɵɵelementStart(27, "div", 31)(28, "div", 32)(29, "textarea", 33, 34);
36768
- i0.ɵɵlistener("ngModelChange", function ChatbotLexComponent_div_2_Template_textarea_ngModelChange_29_listener($event) { i0.ɵɵrestoreView(_r57); const ctx_r63 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r63.userInput = $event); })("input", function ChatbotLexComponent_div_2_Template_textarea_input_29_listener() { i0.ɵɵrestoreView(_r57); const ctx_r64 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r64.autoGrow()); })("keydown.enter", function ChatbotLexComponent_div_2_Template_textarea_keydown_enter_29_listener($event) { i0.ɵɵrestoreView(_r57); const ctx_r65 = i0.ɵɵnextContext(); $event.preventDefault(); return i0.ɵɵresetView(ctx_r65.handleEnter()); });
36769
- i0.ɵɵtext(31, " ");
36808
+ i0.ɵɵelementStart(28, "div", 32)(29, "div", 33)(30, "textarea", 34, 35);
36809
+ i0.ɵɵlistener("ngModelChange", function ChatbotLexComponent_div_2_Template_textarea_ngModelChange_30_listener($event) { i0.ɵɵrestoreView(_r58); const ctx_r64 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r64.userInput = $event); })("input", function ChatbotLexComponent_div_2_Template_textarea_input_30_listener() { i0.ɵɵrestoreView(_r58); const ctx_r65 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r65.autoGrow()); })("keydown.enter", function ChatbotLexComponent_div_2_Template_textarea_keydown_enter_30_listener($event) { i0.ɵɵrestoreView(_r58); const ctx_r66 = i0.ɵɵnextContext(); $event.preventDefault(); return i0.ɵɵresetView(ctx_r66.handleEnter()); });
36810
+ i0.ɵɵtext(32, " ");
36770
36811
  i0.ɵɵelementEnd()();
36771
- i0.ɵɵelementStart(32, "button", 35);
36772
- i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_32_listener() { i0.ɵɵrestoreView(_r57); const ctx_r66 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r66.sendMessage()); });
36773
- i0.ɵɵtext(33, " Send ");
36812
+ i0.ɵɵelementStart(33, "button", 36);
36813
+ i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_33_listener() { i0.ɵɵrestoreView(_r58); const ctx_r67 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r67.sendMessage()); });
36814
+ i0.ɵɵtext(34, " Send ");
36774
36815
  i0.ɵɵelementEnd()()();
36775
36816
  } if (rf & 2) {
36776
36817
  const ctx_r2 = i0.ɵɵnextContext();
@@ -36788,6 +36829,8 @@ function ChatbotLexComponent_div_2_Template(rf, ctx) { if (rf & 1) {
36788
36829
  i0.ɵɵpropertyInterpolate("title", ctx_r2.sessionId);
36789
36830
  i0.ɵɵadvance(7);
36790
36831
  i0.ɵɵproperty("ngForOf", ctx_r2.messages);
36832
+ i0.ɵɵadvance(1);
36833
+ i0.ɵɵproperty("ngIf", ctx_r2.isLoading);
36791
36834
  i0.ɵɵadvance(3);
36792
36835
  i0.ɵɵproperty("ngModel", ctx_r2.userInput)("disabled", ctx_r2.sending || ctx_r2.isDisabled);
36793
36836
  i0.ɵɵadvance(3);
@@ -36819,10 +36862,11 @@ class ChatbotLexComponent {
36819
36862
  alert('Session ID copied to clipboard.');
36820
36863
  document.body.removeChild(textarea);
36821
36864
  }
36822
- constructor(lexChat, ngZone, cdr) {
36865
+ constructor(lexChat, ngZone, cdr, loginService) {
36823
36866
  this.lexChat = lexChat;
36824
36867
  this.ngZone = ngZone;
36825
36868
  this.cdr = cdr;
36869
+ this.loginService = loginService;
36826
36870
  this.isExpanded = false;
36827
36871
  this.chatIDtheft = false;
36828
36872
  this.sessionId = '';
@@ -36837,6 +36881,7 @@ class ChatbotLexComponent {
36837
36881
  this.messages = [];
36838
36882
  this.userLoggedIn = false;
36839
36883
  this.username = '';
36884
+ this.claimantId = null;
36840
36885
  this.pendingPersonalizedQuestion = '';
36841
36886
  this.personalizedQuestionResumed = false;
36842
36887
  this.userInput = '';
@@ -36863,6 +36908,18 @@ class ChatbotLexComponent {
36863
36908
  this.starLocked = new Set();
36864
36909
  this.feedbackPromptShown = false;
36865
36910
  this.imporantMessageShown = false;
36911
+ this.apiDone = false;
36912
+ this.claimantPostLoginLoading = false;
36913
+ this.loadingStepsRunning = false;
36914
+ this.loadingText = '';
36915
+ this.isLoading = false;
36916
+ this.steps = [
36917
+ 'Logging in',
36918
+ 'Loading details',
36919
+ 'Compiling reply',
36920
+ 'Almost there',
36921
+ 'Finalizing response'
36922
+ ];
36866
36923
  this.loginMessageHandler = (event) => {
36867
36924
  if (event.origin !== window.location.origin) {
36868
36925
  return;
@@ -36872,13 +36929,18 @@ class ChatbotLexComponent {
36872
36929
  }
36873
36930
  const username = String(event.data?.payload?.username ?? '').trim();
36874
36931
  const authToken = String(event.data?.payload?.authToken ?? 'authToken');
36932
+ console.log('USER_LOGGED_IN received:', event.data);
36933
+ const claimantId = Number(event.data?.payload?.claimantId);
36934
+ console.log('Chatbot claimantId received:', claimantId);
36875
36935
  if (!username) {
36876
36936
  return;
36877
36937
  }
36878
36938
  this.ngZone.run(() => {
36879
36939
  this.userLoggedIn = true;
36880
36940
  this.username = username;
36881
- this.lexChat.setAuthenticatedUser(username, authToken);
36941
+ this.claimantId = claimantId;
36942
+ this.lexChat.setAuthenticatedUser(username, authToken, claimantId);
36943
+ //Resend the saved personalized question
36882
36944
  void this.resumePendingPersonalizedQuestion();
36883
36945
  });
36884
36946
  };
@@ -36911,6 +36973,9 @@ class ChatbotLexComponent {
36911
36973
  }
36912
36974
  }
36913
36975
  ngOnInit() {
36976
+ this.loginService.sessionCleared$.subscribe(() => {
36977
+ this.handleSessionCleared();
36978
+ });
36914
36979
  window.addEventListener('message', this.loginMessageHandler);
36915
36980
  console.log("CHATBOT ngOnItit clientFilter:", this.clientFilter);
36916
36981
  this.lexChat.importantmessage$.subscribe(type => {
@@ -36928,6 +36993,20 @@ class ChatbotLexComponent {
36928
36993
  this.isIdle = false;
36929
36994
  this.idleRequestInFlight = false;
36930
36995
  this.idleDetectCount = 0;
36996
+ //clear transient or loading state
36997
+ this.apiDone = true;
36998
+ this.isLoading = false;
36999
+ this.loadingText = '';
37000
+ //clear personalized login state
37001
+ this.pendingPersonalizedQuestion = '';
37002
+ this.personalizedQuestionResumed = false;
37003
+ //clear conversation state
37004
+ this.messages = [];
37005
+ this.expectingPassword = false;
37006
+ this.isAck = false;
37007
+ this.is_end_session = false;
37008
+ this.endedByIdleCounter = false;
37009
+ this.cdr.detectChanges();
36931
37010
  return;
36932
37011
  }
36933
37012
  const requestedChatIDtheft = this.lexChat.chatIDtheft;
@@ -37047,6 +37126,14 @@ class ChatbotLexComponent {
37047
37126
  });
37048
37127
  }
37049
37128
  this.scrollToBottom();
37129
+ if (isPwd) {
37130
+ this.apiDone = false;
37131
+ this.isLoading = true;
37132
+ this.loadingText = this.steps[0];
37133
+ this.cdr.detectChanges();
37134
+ this.scrollToBottom();
37135
+ void this.runLoadingSteps();
37136
+ }
37050
37137
  this.userInput = '';
37051
37138
  const el = this.messageInput?.nativeElement;
37052
37139
  if (el)
@@ -37056,6 +37143,12 @@ class ChatbotLexComponent {
37056
37143
  try {
37057
37144
  console.log("CHATBOT clientfilter:", this.clientFilter);
37058
37145
  const reply = await this.lexChat.sendMessage(trimmed, this.clientFilter);
37146
+ if (isPwd) {
37147
+ this.apiDone = true;
37148
+ this.isLoading = false;
37149
+ this.loadingText = '';
37150
+ this.cdr.detectChanges();
37151
+ }
37059
37152
  this.isAck =
37060
37153
  reply['isAck'] === true ||
37061
37154
  String(reply['isAck']).toLowerCase() === 'true';
@@ -37077,8 +37170,9 @@ class ChatbotLexComponent {
37077
37170
  this.clearIdleTimer();
37078
37171
  }
37079
37172
  this.messages.push({ from: 'bot', text: reply['content'], url: reply['url'], timestamp: new Date() });
37080
- const loginRequired = botReplyText === 'login required' ||
37081
- botReplyText.includes('For your protection, personal information is available only after you log in. Please log in to access your personal details securely.');
37173
+ const loginRequired = String(reply['loginRequired'] ?? '').toLowerCase() === 'true' ||
37174
+ botReplyText === 'login required' ||
37175
+ botReplyText.includes('for your protection');
37082
37176
  if (loginRequired) {
37083
37177
  const previousMessage = this.messages[this.messages.length - 2];
37084
37178
  if (previousMessage?.from === 'user') {
@@ -37095,6 +37189,12 @@ class ChatbotLexComponent {
37095
37189
  this.cdr.detectChanges();
37096
37190
  }
37097
37191
  catch (err) {
37192
+ if (isPwd) {
37193
+ this.apiDone = true;
37194
+ this.isLoading = false;
37195
+ this.loadingText = '';
37196
+ this.cdr.detectChanges();
37197
+ }
37098
37198
  this.messages.push({ from: 'bot', text: 'Sorry, something went wrong while contacting the bot.', timestamp: new Date() });
37099
37199
  this.scrollToBottom();
37100
37200
  this.expectingPassword = false;
@@ -37324,7 +37424,59 @@ class ChatbotLexComponent {
37324
37424
  this.pendingPersonalizedQuestion = '';
37325
37425
  this.personalizedQuestionResumed = true;
37326
37426
  this.userInput = pendingQuestion;
37327
- await this.sendMessage(true);
37427
+ //Start claimant post-login loading
37428
+ this.apiDone = false;
37429
+ this.isLoading = true;
37430
+ this.loadingText = '';
37431
+ this.cdr.detectChanges();
37432
+ this.scrollToBottom();
37433
+ void this.runLoadingSteps();
37434
+ try {
37435
+ await this.sendMessage(true);
37436
+ }
37437
+ finally {
37438
+ this.apiDone = true;
37439
+ this.isLoading = false;
37440
+ this.loadingText = '';
37441
+ this.cdr.detectChanges();
37442
+ this.scrollToBottom();
37443
+ }
37444
+ }
37445
+ delay(ms) {
37446
+ return new Promise(resolve => setTimeout(resolve, ms));
37447
+ }
37448
+ async runLoadingSteps() {
37449
+ if (this.loadingStepsRunning) {
37450
+ return;
37451
+ }
37452
+ this.loadingStepsRunning = true;
37453
+ try {
37454
+ for (const step of this.steps) {
37455
+ console.log('LOADING STEP:', step, 'apiDone', this.apiDone, 'isLoading', this.isLoading);
37456
+ if (this.apiDone || !this.isLoading) {
37457
+ break;
37458
+ }
37459
+ await this.typeText(step);
37460
+ if (this.apiDone || !this.isLoading) {
37461
+ break;
37462
+ }
37463
+ await this.delay(800);
37464
+ }
37465
+ }
37466
+ finally {
37467
+ this.loadingStepsRunning = false;
37468
+ }
37469
+ }
37470
+ async typeText(text) {
37471
+ this.loadingText = '';
37472
+ for (let i = 0; i < text.length; i++) {
37473
+ if (this.apiDone || !this.isLoading) {
37474
+ return;
37475
+ }
37476
+ this.loadingText += text[i];
37477
+ this.cdr.detectChanges();
37478
+ await this.delay(70);
37479
+ }
37328
37480
  }
37329
37481
  maskText(s) {
37330
37482
  return s.replace(/./g, '*');
@@ -37415,7 +37567,33 @@ class ChatbotLexComponent {
37415
37567
  });
37416
37568
  });
37417
37569
  }
37418
- static { this.ɵfac = function ChatbotLexComponent_Factory(t) { return new (t || ChatbotLexComponent)(i0.ɵɵdirectiveInject(LexChatService), i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
37570
+ handleSessionCleared() {
37571
+ this.clearIdleTimer();
37572
+ //Stop Loading
37573
+ this.apiDone = true;
37574
+ this.isLoading = false;
37575
+ this.loadingText = '';
37576
+ this.loadingStepsRunning = false;
37577
+ this.claimantPostLoginLoading = false;
37578
+ //Clear personalized question state
37579
+ this.pendingPersonalizedQuestion = '';
37580
+ this.personalizedQuestionResumed = false;
37581
+ //Clear conversation
37582
+ this.messages = [];
37583
+ //Clear bot state
37584
+ this.expectingPassword = false;
37585
+ this.isAck = false;
37586
+ this.is_end_session = false;
37587
+ //Clear idle state
37588
+ this.isIdle = false;
37589
+ this.idleRequestInFlight = false;
37590
+ this.idleDetectCount = 0;
37591
+ this.endedByIdleCounter = false;
37592
+ //UI closes
37593
+ this.chatOpen = false;
37594
+ this.cdr.detectChanges();
37595
+ }
37596
+ static { this.ɵfac = function ChatbotLexComponent_Factory(t) { return new (t || ChatbotLexComponent)(i0.ɵɵdirectiveInject(LexChatService), i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(LoginService)); }; }
37419
37597
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ChatbotLexComponent, selectors: [["app-chatbot-lex"]], viewQuery: function ChatbotLexComponent_Query(rf, ctx) { if (rf & 1) {
37420
37598
  i0.ɵɵviewQuery(_c0, 5);
37421
37599
  i0.ɵɵviewQuery(_c1, 5);
@@ -37423,20 +37601,20 @@ class ChatbotLexComponent {
37423
37601
  let _t;
37424
37602
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.messageInput = _t.first);
37425
37603
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.chatWindow = _t.first);
37426
- } }, inputs: { clientFilter: "clientFilter" }, decls: 3, vars: 3, consts: [["type", "button", "class", "chatbot-fab", "aria-label", "Open chat", "title", "Chat with us", 3, "click", 4, "ngIf"], ["class", "important-message-overlay", 4, "ngIf"], ["class", "chat-popup", 3, "expanded", 4, "ngIf"], ["type", "button", "aria-label", "Open chat", "title", "Chat with us", 1, "chatbot-fab", 3, "click"], ["src", "assets/icon/amelia-new-icon.png", "alt", "Amelia", 1, "chatbot-fab-icon"], [1, "important-message-overlay"], [1, "important-message-modal"], ["type", "button", "aria-label", "Close", 1, "important-message-close", 3, "click"], [4, "ngIf"], [1, "important-message-actions"], ["type", "button", 3, "click"], [1, "chat-popup"], [1, "chat-top-actions"], ["type", "button", "title", "Expand", 1, "top-action-btn", 3, "click"], ["type", "button", "title", "Minimize", "aria-label", "Minimize", 1, "top-action-btn", 3, "click"], ["type", "button", "title", "Close", "aria-label", "Close", 1, "top-action-btn", 3, "click"], [1, "chat-popup-header"], [1, "icon-label"], ["src", "assets/icon/amelia-new-icon.png", "alt", "Amelia", 1, "amelia-header-icon"], [1, "text-block"], [1, "label-text"], [1, "status-wrapper"], [1, "status-dot"], [1, "status"], [1, "chat-popup-actions"], ["type", "button", "aria-label", "Info", 1, "action-btn", "info-btn", 3, "title", "mouseenter", "click"], ["type", "button", "title", "Refresh", "aria-label", "Refresh", 1, "action-btn", 3, "click"], [1, "chat-body"], ["role", "log", "aria-live", "polite", 1, "chat-window"], ["chatWindow", ""], [3, "ngClass", 4, "ngFor", "ngForOf"], [1, "input-row"], [1, "chat-input-wrapper"], ["placeholder", "Type your message...", "rows", "1", 1, "chat-input", 3, "ngModel", "disabled", "ngModelChange", "input", "keydown.enter"], ["messageInput", ""], [1, "send-btn", 3, "disabled", "click"], [3, "ngClass"], [1, "message-wrapper"], [1, "bubble"], ["class", "amelia-message-icon", "src", "assets/icon/amelia-new-icon.png", "alt", "Amelia", 4, "ngIf"], [1, "bubble-content"], [4, "ngIf", "ngIfElse"], ["normalMessage", ""], [1, "message-meta"], ["class", "feedback", 4, "ngIf"], [3, "ngClass", 4, "ngIf"], ["src", "assets/icon/amelia-new-icon.png", "alt", "Amelia", 1, "amelia-message-icon"], [1, "formatted-text"], [1, "star-group", 3, "mouseleave"], ["type", "button", "class", "star", 3, "filled", "title", "mouseenter", "click", 4, "ngFor", "ngForOf"], ["type", "button", 1, "star", 3, "title", "mouseenter", "click"], [4, "ngFor", "ngForOf"], ["class", "yn-group", 4, "ngIf"], ["class", "message-links", 4, "ngIf"], [1, "yn-group"], [1, "yn-btn", "yes", 3, "click"], [1, "yn-btn", "no", 3, "click"], [1, "message-links"], ["class", "yn-btn yes", "type", "button", 3, "click", 4, "ngIf", "ngIfOf"], ["type", "button", 1, "yn-btn", "yes", 3, "click"], [1, "feedback"], ["aria-label", "Thumbs up", "title", "Thumbs up", 1, "fb-btn", "up", 3, "click"], ["aria-label", "Thumbs down", "title", "Thumbs down", 1, "fb-btn", "down", 3, "click"]], template: function ChatbotLexComponent_Template(rf, ctx) { if (rf & 1) {
37427
- i0.ɵɵtemplate(0, ChatbotLexComponent_button_0_Template, 2, 0, "button", 0)(1, ChatbotLexComponent_div_1_Template, 11, 2, "div", 1)(2, ChatbotLexComponent_div_2_Template, 34, 17, "div", 2);
37604
+ } }, inputs: { clientFilter: "clientFilter" }, decls: 3, vars: 3, consts: [["type", "button", "class", "chatbot-fab", "aria-label", "Open chat", "title", "Chat with us", 3, "click", 4, "ngIf"], ["class", "important-message-overlay", 4, "ngIf"], ["class", "chat-popup", 3, "expanded", 4, "ngIf"], ["type", "button", "aria-label", "Open chat", "title", "Chat with us", 1, "chatbot-fab", 3, "click"], ["src", "assets/icon/amelia-new-icon.png", "alt", "Amelia", 1, "chatbot-fab-icon"], [1, "important-message-overlay"], [1, "important-message-modal"], ["type", "button", "aria-label", "Close", 1, "important-message-close", 3, "click"], [4, "ngIf"], [1, "important-message-actions"], ["type", "button", 3, "click"], [1, "chat-popup"], [1, "chat-top-actions"], ["type", "button", "title", "Expand", 1, "top-action-btn", 3, "click"], ["type", "button", "title", "Minimize", "aria-label", "Minimize", 1, "top-action-btn", 3, "click"], ["type", "button", "title", "Close", "aria-label", "Close", 1, "top-action-btn", 3, "click"], [1, "chat-popup-header"], [1, "icon-label"], ["src", "assets/icon/amelia-new-icon.png", "alt", "Amelia", 1, "amelia-header-icon"], [1, "text-block"], [1, "label-text"], [1, "status-wrapper"], [1, "status-dot"], [1, "status"], [1, "chat-popup-actions"], ["type", "button", "aria-label", "Info", 1, "action-btn", "info-btn", 3, "title", "mouseenter", "click"], ["type", "button", "title", "Refresh", "aria-label", "Refresh", 1, "action-btn", 3, "click"], [1, "chat-body"], ["role", "log", "aria-live", "polite", 1, "chat-window"], ["chatWindow", ""], [3, "ngClass", 4, "ngFor", "ngForOf"], ["class", "login-loading", 4, "ngIf"], [1, "input-row"], [1, "chat-input-wrapper"], ["placeholder", "Type your message...", "rows", "1", 1, "chat-input", 3, "ngModel", "disabled", "ngModelChange", "input", "keydown.enter"], ["messageInput", ""], [1, "send-btn", 3, "disabled", "click"], [3, "ngClass"], [1, "message-wrapper"], [1, "bubble"], ["class", "amelia-message-icon", "src", "assets/icon/amelia-new-icon.png", "alt", "Amelia", 4, "ngIf"], [1, "bubble-content"], [4, "ngIf", "ngIfElse"], ["normalMessage", ""], [1, "message-meta"], ["class", "feedback", 4, "ngIf"], [3, "ngClass", 4, "ngIf"], ["src", "assets/icon/amelia-new-icon.png", "alt", "Amelia", 1, "amelia-message-icon"], [1, "formatted-text"], [1, "star-group", 3, "mouseleave"], ["type", "button", "class", "star", 3, "filled", "title", "mouseenter", "click", 4, "ngFor", "ngForOf"], ["type", "button", 1, "star", 3, "title", "mouseenter", "click"], [4, "ngFor", "ngForOf"], ["class", "yn-group", 4, "ngIf"], ["class", "message-links", 4, "ngIf"], [1, "yn-group"], [1, "yn-btn", "yes", 3, "click"], [1, "yn-btn", "no", 3, "click"], [1, "message-links"], ["class", "yn-btn yes", "type", "button", 3, "click", 4, "ngIf", "ngIfOf"], ["type", "button", 1, "yn-btn", "yes", 3, "click"], [1, "feedback"], ["aria-label", "Thumbs up", "title", "Thumbs up", 1, "fb-btn", "up", 3, "click"], ["aria-label", "Thumbs down", "title", "Thumbs down", 1, "fb-btn", "down", 3, "click"], [1, "login-loading"], [1, "loading-text"], [1, "typing"]], template: function ChatbotLexComponent_Template(rf, ctx) { if (rf & 1) {
37605
+ i0.ɵɵtemplate(0, ChatbotLexComponent_button_0_Template, 2, 0, "button", 0)(1, ChatbotLexComponent_div_1_Template, 11, 2, "div", 1)(2, ChatbotLexComponent_div_2_Template, 35, 18, "div", 2);
37428
37606
  } if (rf & 2) {
37429
37607
  i0.ɵɵproperty("ngIf", !ctx.chatOpen);
37430
37608
  i0.ɵɵadvance(1);
37431
37609
  i0.ɵɵproperty("ngIf", ctx.showImportantMessage);
37432
37610
  i0.ɵɵadvance(1);
37433
37611
  i0.ɵɵproperty("ngIf", ctx.chatOpen);
37434
- } }, dependencies: [i1$4.NgClass, i1$4.NgForOf, i1$4.NgIf, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgModel, i1$4.DatePipe], styles: [".chatbot-fab[_ngcontent-%COMP%]{position:fixed;bottom:20px;right:20px;width:56px;height:56px;border-radius:50%;background:transparent;color:#fff;border:none;font-size:24px;cursor:pointer;box-shadow:none;z-index:9998;display:flex;align-items:center;justify-content:center;overflow:visible}.chatbot-fab[_ngcontent-%COMP%]:hover{background:#00a5bb}.chatbot-fab-icon[_ngcontent-%COMP%]{width:70px;height:70px;object-fit:contain;border-radius:0;background:transparent;display:block}.chat-popup[_ngcontent-%COMP%]{position:fixed;bottom:20px;right:20px;width:380px;height:520px;max-height:80vh;display:flex;flex-direction:column;background:#fff;border:1px solid #e6e9ee;border-radius:12px;box-shadow:0 12px 24px #0000001f;overflow:visible!important;z-index:9999;padding-top:30px;overflow:visible}.chat-popup-header[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:36px;height:36px;min-width:36px;max-width:36px;border-radius:50%;object-fit:cover}.chat-popup-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;background:var(--ion-color-primary)!important;color:#fff;padding:4px 12px;font-weight:600;flex-shrink:0}.icon-label[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px}.text-block[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column;line-height:1.1}.label-text[_ngcontent-%COMP%]{font-size:15px;font-weight:600}.status[_ngcontent-%COMP%]{font-size:11px;margin-top:2px;text-transform:lowercase;opacity:.95}.status.online-text[_ngcontent-%COMP%]{color:#b9f6ca}.status.offline-text[_ngcontent-%COMP%]{color:#ffcdd2}.chat-popup-actions[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px}.info-btn[_ngcontent-%COMP%], .info-btn[_ngcontent-%COMP%]:hover, .info-btn[_ngcontent-%COMP%]:focus, .info-btn[_ngcontent-%COMP%]:active{background:transparent;border:none;box-shadow:none;outline:none}.action-btn[_ngcontent-%COMP%]{background:transparent;color:#fff;border:none;font-size:16px;cursor:pointer;width:28px;height:28px;line-height:1;padding:0;border-radius:4px}.action-btn[_ngcontent-%COMP%]:hover{background:#ffffff26}.chat-body[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;overflow:hidden;min-height:0}.chat-window[_ngcontent-%COMP%]{padding:12px;flex:1;overflow-y:auto;background:#f6f8fb;min-height:0;width:100%;box-sizing:border-box}.yn-btn[_ngcontent-%COMP%]{appearance:none;border:1px solid #cfd8e3;background:#fff;color:#111827;font-size:12px;padding:4px 8px;border-radius:999px;cursor:pointer;margin-right:6px}.yn-btn[_ngcontent-%COMP%]:hover{background:#f3f4f6}.yn-btn.yes[_ngcontent-%COMP%]{border-color:#16a34a33}.yn-btn.no[_ngcontent-%COMP%]{border-color:#dc262633}.input-row[_ngcontent-%COMP%]{display:flex;gap:8px;padding:10px;background:#fff;border-top:1px solid #e6e9ee;align-items:flex-end;flex-shrink:0}.chat-input-wrapper[_ngcontent-%COMP%]{flex:1;border-radius:8px;border:1px solid #d1d5db;overflow:hidden;background:#fff;display:flex}.chat-input[_ngcontent-%COMP%]{width:100%;resize:none;border:none;outline:none;padding:8px 10px;font-size:14px;line-height:1.2;min-height:20px;max-height:100px;overflow-y:auto;box-sizing:border-box;background:transparent}.chat-input[_ngcontent-%COMP%]:focus{outline:none;box-shadow:none}.send-btn[_ngcontent-%COMP%]{height:36px;align-self:flex-end;padding:0 14px;background:var(--ion-color-primary)!important;color:#fff!important;border:none;border-radius:8px;cursor:pointer;white-space:nowrap;font-size:14px}.send-btn[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.amelia-header-icon[_ngcontent-%COMP%]{width:56px;height:56px;border-radius:0;object-fit:contain;background:transparent;flex-shrink:0}.chat-popup.expanded[_ngcontent-%COMP%]{width:650px!important;height:86vh!important;position:fixed!important;bottom:16px!important;right:40px!important;left:auto!important;max-width:650px!important;max-height:calc(100vh - 80px)!important;border-radius:8px!important;display:flex!important;flex-direction:column!important;visibility:visible!important;opacity:1!important;z-index:9999!important}.chat-popup.expanded[_ngcontent-%COMP%] .chat-body[_ngcontent-%COMP%]{width:100%!important;align-self:stretch!important}.chat-top-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex=end;align-items:center;gap:6px;padding:4px 8px;background:transparent;flex-shrink:0;position:absolute;top:-1px;right:0!important;width:auto!important;z-index:10000;position:absolute!important}.top-action-btn[_ngcontent-%COMP%]{border:none;background:transparent!important;color:#000!important;font-size:16px;font-weight:700;line-height:22px;cursor:pointer;padding:0;border-radius:none!important;width:24px;height:24px;text-align:center}.top-action-btn[_ngcontent-%COMP%]:hover{background:#eee;border-radius:4px}.top-action-btn[_ngcontent-%COMP%] .pi[_ngcontent-%COMP%]{font-size:16px}.status-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px}.status-dot[_ngcontent-%COMP%]{width:7px;height:7px;border-radius:50%;background-color:#2ecc71!important;flex-shrink:0}.status-dot.offline[_ngcontent-%COMP%]{background:#9e9e9e!important}.online-text[_ngcontent-%COMP%], .offline-text[_ngcontent-%COMP%]{text-transform:none!important}.important-message-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;min-height:auto;height:auto;padding:20px;background-color:transparent}.important-message-modal[_ngcontent-%COMP%]{position:relative;width:720px;max-width:calc(100vw - 80px);min-height:auto;height:auto;padding:28px 32px 24px;overflow:visible;box-sizing:border-box;background:var(--ion-color-primary);color:#fff;border-radius:2px;text-align:left;pointer-events:auto}.important-message-modal[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 45px 15px 0;font-size:34px;font-weight:400;line-height:1.25}.important-message-modal[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:17px;line-height:1.25;position:relative;overflow-wrap:break-word}.important-message-close[_ngcontent-%COMP%]{position:absolute!important;top:10px!important;right:12px!important;z-index:100!important;display:flex!important;align-items:center;justify-content:center;width:40px;height:40px;padding:0!important;margin:0!important;border:none!important;background:transparent!important;color:#fff!important;font-size:32px!important;line-height:1!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;cursor:pointer}.important-message-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:25px}.important-message-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:10px 25px;border:1px solid #ccc;border-radius:4px;background:#f5f5f5;color:#164d71;font-size:18px;font-style:normal;cursor:pointer}.important-message-modal[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .important-message-modal[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:left}@media (max-width: 480px){.chat-popup[_ngcontent-%COMP%]{width:calc(100vw - 16px);right:8px;bottom:8px;height:70vh}.bubble[_ngcontent-%COMP%]{max-width:90%;font-size:13px}}.bot[_ngcontent-%COMP%], .user[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;min-width:0;margin:8px 0;box-sizing:border-box}.bot[_ngcontent-%COMP%]{align-items:flex-start}.user[_ngcontent-%COMP%]{align-items:flex-end}.message-wrapper[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column;width:auto;max-width:78%;min-width:0}.bot[_ngcontent-%COMP%] .message-wrapper[_ngcontent-%COMP%], .user[_ngcontent-%COMP%] .message-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:auto!important;max-width:75%!important;min-width:0!important}.bot[_ngcontent-%COMP%] .message-wrapper[_ngcontent-%COMP%]{align-items:flex-start}.user[_ngcontent-%COMP%] .message-wrapper[_ngcontent-%COMP%]{align-items:flex-end}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%], .user[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{position:relative;display:flex;align-items:flex-start;width:auto!important;max-width:100%!important;box-sizing:border-box;padding:8px 12px;font-size:14px;line-height:1.3;border-radius:14px;margin-bottom:0!important}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{background:#fff;color:#111827;border:1px solid #e6e9ee;border-top-left-radius:4px;gap:8px}.user[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{background:#e8eef6;color:#000;border-top-right-radius:4px;margin-left:0!important}.bot[_ngcontent-%COMP%] .bubble-content[_ngcontent-%COMP%], .user[_ngcontent-%COMP%] .bubble-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;width:auto!important;max-width:100%!important;min-width:0!important;box-sizing:border-box;overflow:visible}.bot[_ngcontent-%COMP%] .formatted-text[_ngcontent-%COMP%], .user[_ngcontent-%COMP%] .formatted-text[_ngcontent-%COMP%]{display:block;width:auto!important;max-width:100% important;min-width:0;white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important;box-sizing:border-box}.amelia-message-icon[_ngcontent-%COMP%]{width:28px;height:28px;flex:0 0 28px;object-fit:cover;border-radius:50%}.message-time[_ngcontent-%COMP%], .message-time-bot[_ngcontent-%COMP%]{margin:0;padding:0;font-size:11px;color:#6b7280;white-space:nowrap}.message-time-bot[_ngcontent-%COMP%]{order:1;margin:0;padding:0;text-align:left;white-space:nowrap}.user[_ngcontent-%COMP%] .message-time[_ngcontent-%COMP%]{text-align:right}.yn-group[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-top:10px}.yn-btn[_ngcontent-%COMP%]{flex:0 0 auto}.star-group[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-top:8px;padding:0}.star-group[_ngcontent-%COMP%] .star[_ngcontent-%COMP%]{appearance:none;border:none;background:transparent;cursor:pointer;font-size:18px;line-height:1;padding:0 1px;color:#000;transition:transform .08s ease}.star-group[_ngcontent-%COMP%] .star.filled[_ngcontent-%COMP%]{color:#f59e0b}.star-group[_ngcontent-%COMP%] .sta[_ngcontent-%COMP%]:hover{transform:scale(1.08)}.feedback[_ngcontent-%COMP%]{order:2;display:flex;align-items:center;justify-content:flex-end;gap:6px;width:auto;padding:0;margin:0 0 0 auto}.fb-btn[_ngcontent-%COMP%]{appearance:none;border:none;background:transparent;cursor:pointer;font-size:13px;line-height:1;padding:2px 3px;margin:0}.fb-btn[_ngcontent-%COMP%]:hover{background:#00bcd414}.message-meta[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:3px}.user[_ngcontent-%COMP%] .message-meta[_ngcontent-%COMP%]{justify-content:flex-end}"] }); }
37612
+ } }, dependencies: [i1$4.NgClass, i1$4.NgForOf, i1$4.NgIf, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgModel, i1$4.DatePipe], styles: [".chatbot-fab[_ngcontent-%COMP%]{position:fixed;bottom:20px;right:20px;width:56px;height:56px;border-radius:50%;background:transparent;color:#fff;border:none;font-size:24px;cursor:pointer;box-shadow:none;z-index:9998;display:flex;align-items:center;justify-content:center;overflow:visible}.chatbot-fab[_ngcontent-%COMP%]:hover{background:#00a5bb}.chatbot-fab-icon[_ngcontent-%COMP%]{width:70px;height:70px;object-fit:contain;border-radius:0;background:transparent;display:block}.chat-popup[_ngcontent-%COMP%]{position:fixed;bottom:20px;right:20px;width:380px;height:520px;max-height:80vh;display:flex;flex-direction:column;background:#fff;border:1px solid #e6e9ee;border-radius:12px;box-shadow:0 12px 24px #0000001f;overflow:visible!important;z-index:9999;padding-top:30px;overflow:visible}.chat-popup-header[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:36px;height:36px;min-width:36px;max-width:36px;border-radius:50%;object-fit:cover}.chat-popup-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;background:var(--ion-color-primary)!important;color:#fff;padding:4px 12px;font-weight:600;flex-shrink:0}.icon-label[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px}.text-block[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column;line-height:1.1}.label-text[_ngcontent-%COMP%]{font-size:15px;font-weight:600}.status[_ngcontent-%COMP%]{font-size:11px;margin-top:2px;text-transform:lowercase;opacity:.95}.status.online-text[_ngcontent-%COMP%]{color:#b9f6ca}.status.offline-text[_ngcontent-%COMP%]{color:#ffcdd2}.chat-popup-actions[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px}.info-btn[_ngcontent-%COMP%], .info-btn[_ngcontent-%COMP%]:hover, .info-btn[_ngcontent-%COMP%]:focus, .info-btn[_ngcontent-%COMP%]:active{background:transparent;border:none;box-shadow:none;outline:none}.action-btn[_ngcontent-%COMP%]{background:transparent;color:#fff;border:none;font-size:16px;cursor:pointer;width:28px;height:28px;line-height:1;padding:0;border-radius:4px}.action-btn[_ngcontent-%COMP%]:hover{background:#ffffff26}.chat-body[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;overflow:hidden;min-height:0}.chat-window[_ngcontent-%COMP%]{padding:12px;flex:1;overflow-y:auto;background:#f6f8fb;min-height:0;width:100%;box-sizing:border-box}.yn-btn[_ngcontent-%COMP%]{appearance:none;border:1px solid #cfd8e3;background:#fff;color:#111827;font-size:12px;padding:4px 8px;border-radius:999px;cursor:pointer;margin-right:6px}.yn-btn[_ngcontent-%COMP%]:hover{background:#f3f4f6}.yn-btn.yes[_ngcontent-%COMP%]{border-color:#16a34a33}.yn-btn.no[_ngcontent-%COMP%]{border-color:#dc262633}.input-row[_ngcontent-%COMP%]{display:flex;gap:8px;padding:10px;background:#fff;border-top:1px solid #e6e9ee;align-items:flex-end;flex-shrink:0}.chat-input-wrapper[_ngcontent-%COMP%]{flex:1;border-radius:8px;border:1px solid #d1d5db;overflow:hidden;background:#fff;display:flex}.chat-input[_ngcontent-%COMP%]{width:100%;resize:none;border:none;outline:none;padding:8px 10px;font-size:14px;line-height:1.2;min-height:20px;max-height:100px;overflow-y:auto;box-sizing:border-box;background:transparent}.chat-input[_ngcontent-%COMP%]:focus{outline:none;box-shadow:none}.send-btn[_ngcontent-%COMP%]{height:36px;align-self:flex-end;padding:0 14px;background:var(--ion-color-primary)!important;color:#fff!important;border:none;border-radius:8px;cursor:pointer;white-space:nowrap;font-size:14px}.send-btn[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.amelia-header-icon[_ngcontent-%COMP%]{width:56px;height:56px;border-radius:0;object-fit:contain;background:transparent;flex-shrink:0}.chat-popup.expanded[_ngcontent-%COMP%]{width:650px!important;height:86vh!important;position:fixed!important;bottom:16px!important;right:40px!important;left:auto!important;max-width:650px!important;max-height:calc(100vh - 80px)!important;border-radius:8px!important;display:flex!important;flex-direction:column!important;visibility:visible!important;opacity:1!important;z-index:9999!important}.chat-popup.expanded[_ngcontent-%COMP%] .chat-body[_ngcontent-%COMP%]{width:100%!important;align-self:stretch!important}.chat-top-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex=end;align-items:center;gap:6px;padding:4px 8px;background:transparent;flex-shrink:0;position:absolute;top:-1px;right:0!important;width:auto!important;z-index:10000;position:absolute!important}.top-action-btn[_ngcontent-%COMP%]{border:none;background:transparent!important;color:#000!important;font-size:16px;font-weight:700;line-height:22px;cursor:pointer;padding:0;border-radius:none!important;width:24px;height:24px;text-align:center}.top-action-btn[_ngcontent-%COMP%]:hover{background:#eee;border-radius:4px}.top-action-btn[_ngcontent-%COMP%] .pi[_ngcontent-%COMP%]{font-size:16px}.status-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px}.status-dot[_ngcontent-%COMP%]{width:7px;height:7px;border-radius:50%;background-color:#2ecc71!important;flex-shrink:0}.status-dot.offline[_ngcontent-%COMP%]{background:#9e9e9e!important}.online-text[_ngcontent-%COMP%], .offline-text[_ngcontent-%COMP%]{text-transform:none!important}.important-message-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;min-height:auto;height:auto;padding:20px;background-color:transparent}.important-message-modal[_ngcontent-%COMP%]{position:relative;width:720px;max-width:calc(100vw - 80px);min-height:auto;height:auto;padding:28px 32px 24px;overflow:visible;box-sizing:border-box;background:var(--ion-color-primary);color:#fff;border-radius:2px;text-align:left;pointer-events:auto}.important-message-modal[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 45px 15px 0;font-size:34px;font-weight:400;line-height:1.25}.important-message-modal[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:17px;line-height:1.25;position:relative;overflow-wrap:break-word}.important-message-close[_ngcontent-%COMP%]{position:absolute!important;top:10px!important;right:12px!important;z-index:100!important;display:flex!important;align-items:center;justify-content:center;width:40px;height:40px;padding:0!important;margin:0!important;border:none!important;background:transparent!important;color:#fff!important;font-size:32px!important;line-height:1!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;cursor:pointer}.important-message-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:25px}.important-message-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:10px 25px;border:1px solid #ccc;border-radius:4px;background:#f5f5f5;color:#164d71;font-size:18px;font-style:normal;cursor:pointer}.important-message-modal[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .important-message-modal[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:left}@media (max-width: 480px){.chat-popup[_ngcontent-%COMP%]{width:calc(100vw - 16px);right:8px;bottom:8px;height:70vh}.bubble[_ngcontent-%COMP%]{max-width:90%;font-size:13px}}.bot[_ngcontent-%COMP%], .user[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;min-width:0;margin:8px 0;box-sizing:border-box}.bot[_ngcontent-%COMP%]{align-items:flex-start}.user[_ngcontent-%COMP%]{align-items:flex-end}.message-wrapper[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column;width:auto;max-width:78%;min-width:0}.bot[_ngcontent-%COMP%] .message-wrapper[_ngcontent-%COMP%], .user[_ngcontent-%COMP%] .message-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:auto!important;max-width:75%!important;min-width:0!important}.bot[_ngcontent-%COMP%] .message-wrapper[_ngcontent-%COMP%]{align-items:flex-start}.user[_ngcontent-%COMP%] .message-wrapper[_ngcontent-%COMP%]{align-items:flex-end}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%], .user[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{position:relative;display:flex;align-items:flex-start;width:auto!important;max-width:100%!important;box-sizing:border-box;padding:8px 12px;font-size:14px;line-height:1.3;border-radius:14px;margin-bottom:0!important}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{background:#fff;color:#111827;border:1px solid #e6e9ee;border-top-left-radius:4px;gap:8px}.user[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{background:#e8eef6;color:#000;border-top-right-radius:4px;margin-left:0!important}.bot[_ngcontent-%COMP%] .bubble-content[_ngcontent-%COMP%], .user[_ngcontent-%COMP%] .bubble-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;width:auto!important;max-width:100%!important;min-width:0!important;box-sizing:border-box;overflow:visible}.bot[_ngcontent-%COMP%] .formatted-text[_ngcontent-%COMP%], .user[_ngcontent-%COMP%] .formatted-text[_ngcontent-%COMP%]{display:block;width:auto!important;max-width:100% important;min-width:0;white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important;box-sizing:border-box}.amelia-message-icon[_ngcontent-%COMP%]{width:28px;height:28px;flex:0 0 28px;object-fit:cover;border-radius:50%}.message-time[_ngcontent-%COMP%], .message-time-bot[_ngcontent-%COMP%]{margin:0;padding:0;font-size:11px;color:#6b7280;white-space:nowrap}.message-time-bot[_ngcontent-%COMP%]{order:1;margin:0;padding:0;text-align:left;white-space:nowrap}.user[_ngcontent-%COMP%] .message-time[_ngcontent-%COMP%]{text-align:right}.yn-group[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-top:10px}.yn-btn[_ngcontent-%COMP%]{flex:0 0 auto}.star-group[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-top:8px;padding:0}.star-group[_ngcontent-%COMP%] .star[_ngcontent-%COMP%]{appearance:none;border:none;background:transparent;cursor:pointer;font-size:18px;line-height:1;padding:0 1px;color:#000;transition:transform .08s ease}.star-group[_ngcontent-%COMP%] .star.filled[_ngcontent-%COMP%]{color:#f59e0b}.star-group[_ngcontent-%COMP%] .sta[_ngcontent-%COMP%]:hover{transform:scale(1.08)}.feedback[_ngcontent-%COMP%]{order:2;display:flex;align-items:center;justify-content:flex-end;gap:6px;width:auto;padding:0;margin:0 0 0 auto}.fb-btn[_ngcontent-%COMP%]{appearance:none;border:none;background:transparent;cursor:pointer;font-size:13px;line-height:1;padding:2px 3px;margin:0}.fb-btn[_ngcontent-%COMP%]:hover{background:#00bcd414}.message-meta[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:3px}.user[_ngcontent-%COMP%] .message-meta[_ngcontent-%COMP%]{justify-content:flex-end}.typing[_ngcontent-%COMP%]{display:inline-flex}.typing[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;opacity:0;animation:_ngcontent-%COMP%_blink 1.4s infinite;font-size:18px;margin:0 2px}.typing[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(1){animation-delay:0s}.typing[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2){animation-delay:.2s}.typing[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){animation-delay:.4s}@keyframes _ngcontent-%COMP%_blink{0%,80%,to{opacity:0}40%{opacity:1}}.loading-text[_ngcontent-%COMP%]{font-size:13px;color:#6b7280;margin:6px 12px}"] }); }
37435
37613
  }
37436
37614
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ChatbotLexComponent, [{
37437
37615
  type: Component,
37438
- args: [{ selector: 'app-chatbot-lex', template: "\r\n\r\n\r\n<!-- Floating chat toggle button -->\r\n<button\r\n type=\"button\"\r\n class=\"chatbot-fab\"\r\n (click)=\"handleCloudClick()\"\r\n *ngIf=\"!chatOpen\"\r\n aria-label=\"Open chat\"\r\n title=\"Chat with us\">\r\n <img\r\n class=\"chatbot-fab-icon\"\r\n src=\"assets/icon/amelia-new-icon.png\"\r\n alt=\"Amelia\"\r\n />\r\n</button>\r\n\r\n<!-- Important Message Popup for cloud-button flow -->\r\n\r\n<div class=\"important-message-overlay\" \r\n *ngIf=\"showImportantMessage\">\r\n <div class=\"important-message-modal\">\r\n <button\r\n type=\"button\"\r\n class=\"important-message-close\"\r\n aria-label=\"Close\"\r\n (click)=\"closeImportantMessage()\">\r\n &times;\r\n </button>\r\n\r\n <h2>Important Message</h2>\r\n <ng-container *ngIf=\"importantMessageType === 'claimant'\">\r\n <p>\r\n KDOL's virtual assistant may ask you to log in to answer questions about your personal account. For certain services, such as reporting fraud, you may be asked to provide identifying information, including the last four digits of your Social Security Number (SSN) and your date of birth. KDOL follows strict federal security guidelines to protect your sensitive information. To further safeguard your information, close the chat window and browser when finished.\r\n </p>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"importantMessageType === 'employer'\">\r\n <p>\r\n KDOL's virtual assistant may ask you to log in to answer questions about your business account. For certain services, such as reporting fraud, you may be asked to provide identifying information, including your Federal Employer Identification Number (FEIN) or the last four digits of your Social Security Number (SSN), along with other account verification details. KDOL follows strict federal security guidelines to protect your sensitive information. To further safeguard your information, close the chat window and browser when finished.\r\n </p>\r\n </ng-container>\r\n \r\n <div class=\"important-message-actions\">\r\n <button type=\"button\" (click)=\"continueToAmelia()\">\r\n Continue\r\n </button>\r\n </div>\r\n \r\n </div>\r\n</div>\r\n\r\n<!-- Chat popup -->\r\n<div class=\"chat-popup\" *ngIf=\"chatOpen\" [class.expanded]=\"isExpanded\">\r\n <div class=\"chat-top-actions\">\r\n <button\r\n class=\"top-action-btn\"\r\n type=\"button\"\r\n (click)=\"toggleExpand()\"\r\n title=\"Expand\">\r\n <span *ngIf=\"!isExpanded\">\u26F6</span>\r\n </button>\r\n <button \r\n class=\"top-action-btn\" \r\n type=\"button\" \r\n (click)=\"minimizeChat()\" \r\n title=\"Minimize\" \r\n aria-label=\"Minimize\">\r\n _\r\n </button> \r\n <button \r\n class=\"top-action-btn\" \r\n type=\"button\" \r\n (click)=\"closeChat()\" \r\n title=\"Close\" \r\n aria-label=\"Close\">\r\n \u2715\r\n </button>\r\n \r\n </div>\r\n <div class=\"chat-popup-header\">\r\n <span class=\"icon-label\">\r\n <img\r\n class=\"amelia-header-icon\"\r\n src=\"assets/icon/amelia-new-icon.png\"\r\n alt=\"Amelia\"/>\r\n <span class=\"text-block\">\r\n <span class=\"label-text\">Amelia</span>\r\n <span class=\"status-wrapper\">\r\n\r\n <span\r\n class=\"status-dot\"\r\n [class.offline]=\"botOffline\">\r\n </span>\r\n \r\n <span\r\n class=\"status\"\r\n [class.online-text]=\"!botOffline\"\r\n [class.offline-text]=\"botOffline\">\r\n {{ botOffline ? 'Offline' : 'Online' }}\r\n </span>\r\n </span>\r\n </span>\r\n </span>\r\n\r\n <div class=\"chat-popup-actions\">\r\n\r\n <button class=\"action-btn info-btn\"\r\n type=\"button\"\r\n (mouseenter)=\"getSessionID()\"\r\n title={{sessionId}}\r\n aria-label=\"Info\"\r\n (click)=\"copySessionId()\"\r\n [style.visibility]=\"infoVisible ? 'visible' : 'hidden'\">\r\n \uD83D\uDEC8\r\n </button>\r\n \r\n <button \r\n class=\"action-btn\" \r\n type=\"button\" \r\n (click)=\"refreshChat()\" \r\n title=\"Refresh\" \r\n aria-label=\"Refresh\">\r\n \u27F3\r\n </button>\r\n \r\n </div>\r\n </div>\r\n\r\n <div class=\"chat-body\">\r\n <div class=\"chat-window\" #chatWindow role=\"log\" aria-live=\"polite\">\r\n <div\r\n *ngFor=\"let msg of messages; let i =index\"\r\n [ngClass]=\"msg.from\">\r\n\r\n <div \r\n class=\"message-wrapper\"\r\n [class.short-welcome]=\"\r\n msg.from === 'bot' &&\r\n msg.text === 'Hi! How may I help you?'\r\n \">\r\n <div class=\"bubble\">\r\n <img\r\n *ngIf=\"msg.from === 'bot'\"\r\n class=\"amelia-message-icon\"\r\n src=\"assets/icon/amelia-new-icon.png\"\r\n alt=\"Amelia\"\r\n />\r\n <div class=\"bubble-content\">\r\n <ng-container\r\n *ngIf=\"\r\n msg.from === 'bot' &&\r\n isStarRatingPrompt(msg.text, i)\r\n else normalMessage\r\n \">\r\n <span class = \"formatted-text\">\r\n Your feedback matters to us\r\n </span>\r\n <div \r\n class=\"star-group\" \r\n (mouseleave)=\"onStarLeave(i)\">\r\n <button\r\n *ngFor=\"let s of getStars()\"\r\n type=\"button\"\r\n class=\"star\"\r\n [class.filled]=\"isStarFilled(i, s)\"\r\n (mouseenter)=\"onStarEnter(i, s)\"\r\n (click)=\"onStarClick(s, i)\"\r\n [attr.aria-label]=\"'Rate ' + s + ' star(s)'\"\r\n title=\"Rate {{s}} star(s)\">\r\n \u2605\r\n </button>\r\n\r\n </div>\r\n </ng-container>\r\n <ng-template #normalMessage>\r\n <span class=\"formatted-text\">\r\n <ng-container\r\n *ngFor=\"let line of displayLines(msg.text); let last = last\">\r\n {{ line }}\r\n <br *ngIf=\"!last\" >\r\n </ng-container>\r\n </span>\r\n <!-- Yes/No buttons -->\r\n <div\r\n class=\"yn-group\"\r\n *ngIf=\"\r\n msg.from === 'bot' && \r\n isYesNoPrompt(msg.text, i)\r\n \">\r\n <button\r\n class=\"yn-btn yes\"\r\n (click)=\"onYesNoClick('Yes', i)\">\r\n Yes\r\n </button>\r\n <button\r\n class=\"yn-btn no\" \r\n (click)=\"onYesNoClick('No', i)\">\r\n No\r\n </button>\r\n </div>\r\n <div \r\n class=\"message-links\"\r\n *ngIf=\"msg.url && msg.url.length\">\r\n <button\r\n *ngIf=\"let url of msg.url\"\r\n class=\"yn-btn yes\"\r\n type=\"button\"\r\n (click)=\"openLink(url)\">\r\n {{url}}\r\n </button> \r\n </div>\r\n </ng-template>\r\n </div>\r\n </div>\r\n <div class=\"message-meta\">\r\n <div class =\"feedback\"\r\n *ngIf=\"\r\n msg.from === 'bot'\r\n && msg.text?.trim() !== 'Hi! How may I help you?'\r\n && !isMessageRated(i)\r\n && i === messages.length - 1\r\n && !isAck\r\n \">\r\n <button\r\n class=\"fb-btn up\" \r\n (click)=\"sendFeedback('Thumbs up', i)\" \r\n aria-label=\"Thumbs up\" \r\n title=\"Thumbs up\">\r\n \uD83D\uDC4D\r\n </button>\r\n <button\r\n class=\"fb-btn down\" \r\n (click)=\"sendFeedback('Thumbs down', i)\" \r\n aria-label=\"Thumbs down\" \r\n title=\"Thumbs down\">\r\n \uD83D\uDC4E\r\n </button>\r\n </div>\r\n <div\r\n *ngIf=\"msg.timestamp\"\r\n [ngClass]=\"\r\n msg.from === 'bot' \r\n ? 'message-time-bot' \r\n : 'message-time'\r\n \">\r\n {{msg.timestamp | date:\"EEE MMM dd yyyy 'at' hh:mm:ss a\"}}\r\n </div>\r\n </div>\r\n </div> \r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"input-row\">\r\n <div class=\"chat-input-wrapper\">\r\n <textarea\r\n #messageInput\r\n class=\"chat-input\"\r\n [(ngModel)]=\"userInput\"\r\n (input)=\"autoGrow()\"\r\n (keydown.enter)=\"$event.preventDefault(); handleEnter()\"\r\n [disabled]=\"sending || isDisabled\"\r\n placeholder=\"Type your message...\"\r\n rows=\"1\">\r\n </textarea>\r\n </div>\r\n <button\r\n class=\"send-btn\"\r\n (click)=\"sendMessage()\"\r\n [disabled]=\"sending || isDisabled\">\r\n Send\r\n </button>\r\n </div>\r\n</div>\r\n", styles: [".chatbot-fab{position:fixed;bottom:20px;right:20px;width:56px;height:56px;border-radius:50%;background:transparent;color:#fff;border:none;font-size:24px;cursor:pointer;box-shadow:none;z-index:9998;display:flex;align-items:center;justify-content:center;overflow:visible}.chatbot-fab:hover{background:#00a5bb}.chatbot-fab-icon{width:70px;height:70px;object-fit:contain;border-radius:0;background:transparent;display:block}.chat-popup{position:fixed;bottom:20px;right:20px;width:380px;height:520px;max-height:80vh;display:flex;flex-direction:column;background:#fff;border:1px solid #e6e9ee;border-radius:12px;box-shadow:0 12px 24px #0000001f;overflow:visible!important;z-index:9999;padding-top:30px;overflow:visible}.chat-popup-header img{width:36px;height:36px;min-width:36px;max-width:36px;border-radius:50%;object-fit:cover}.chat-popup-header{display:flex;align-items:center;justify-content:space-between;background:var(--ion-color-primary)!important;color:#fff;padding:4px 12px;font-weight:600;flex-shrink:0}.icon-label{display:inline-flex;align-items:center;gap:8px}.text-block{display:inline-flex;flex-direction:column;line-height:1.1}.label-text{font-size:15px;font-weight:600}.status{font-size:11px;margin-top:2px;text-transform:lowercase;opacity:.95}.status.online-text{color:#b9f6ca}.status.offline-text{color:#ffcdd2}.chat-popup-actions{display:inline-flex;align-items:center;gap:6px}.info-btn,.info-btn:hover,.info-btn:focus,.info-btn:active{background:transparent;border:none;box-shadow:none;outline:none}.action-btn{background:transparent;color:#fff;border:none;font-size:16px;cursor:pointer;width:28px;height:28px;line-height:1;padding:0;border-radius:4px}.action-btn:hover{background:#ffffff26}.chat-body{flex:1;display:flex;flex-direction:column;overflow:hidden;min-height:0}.chat-window{padding:12px;flex:1;overflow-y:auto;background:#f6f8fb;min-height:0;width:100%;box-sizing:border-box}.yn-btn{appearance:none;border:1px solid #cfd8e3;background:#fff;color:#111827;font-size:12px;padding:4px 8px;border-radius:999px;cursor:pointer;margin-right:6px}.yn-btn:hover{background:#f3f4f6}.yn-btn.yes{border-color:#16a34a33}.yn-btn.no{border-color:#dc262633}.input-row{display:flex;gap:8px;padding:10px;background:#fff;border-top:1px solid #e6e9ee;align-items:flex-end;flex-shrink:0}.chat-input-wrapper{flex:1;border-radius:8px;border:1px solid #d1d5db;overflow:hidden;background:#fff;display:flex}.chat-input{width:100%;resize:none;border:none;outline:none;padding:8px 10px;font-size:14px;line-height:1.2;min-height:20px;max-height:100px;overflow-y:auto;box-sizing:border-box;background:transparent}.chat-input:focus{outline:none;box-shadow:none}.send-btn{height:36px;align-self:flex-end;padding:0 14px;background:var(--ion-color-primary)!important;color:#fff!important;border:none;border-radius:8px;cursor:pointer;white-space:nowrap;font-size:14px}.send-btn:disabled{opacity:.6;cursor:not-allowed}.amelia-header-icon{width:56px;height:56px;border-radius:0;object-fit:contain;background:transparent;flex-shrink:0}.chat-popup.expanded{width:650px!important;height:86vh!important;position:fixed!important;bottom:16px!important;right:40px!important;left:auto!important;max-width:650px!important;max-height:calc(100vh - 80px)!important;border-radius:8px!important;display:flex!important;flex-direction:column!important;visibility:visible!important;opacity:1!important;z-index:9999!important}.chat-popup.expanded .chat-body{width:100%!important;align-self:stretch!important}.chat-top-actions{display:flex;justify-content:flex=end;align-items:center;gap:6px;padding:4px 8px;background:transparent;flex-shrink:0;position:absolute;top:-1px;right:0!important;width:auto!important;z-index:10000;position:absolute!important}.top-action-btn{border:none;background:transparent!important;color:#000!important;font-size:16px;font-weight:700;line-height:22px;cursor:pointer;padding:0;border-radius:none!important;width:24px;height:24px;text-align:center}.top-action-btn:hover{background:#eee;border-radius:4px}.top-action-btn .pi{font-size:16px}.status-wrapper{display:flex;align-items:center;gap:6px}.status-dot{width:7px;height:7px;border-radius:50%;background-color:#2ecc71!important;flex-shrink:0}.status-dot.offline{background:#9e9e9e!important}.online-text,.offline-text{text-transform:none!important}.important-message-overlay{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;min-height:auto;height:auto;padding:20px;background-color:transparent}.important-message-modal{position:relative;width:720px;max-width:calc(100vw - 80px);min-height:auto;height:auto;padding:28px 32px 24px;overflow:visible;box-sizing:border-box;background:var(--ion-color-primary);color:#fff;border-radius:2px;text-align:left;pointer-events:auto}.important-message-modal h2{margin:0 45px 15px 0;font-size:34px;font-weight:400;line-height:1.25}.important-message-modal p{margin:0;font-size:17px;line-height:1.25;position:relative;overflow-wrap:break-word}.important-message-close{position:absolute!important;top:10px!important;right:12px!important;z-index:100!important;display:flex!important;align-items:center;justify-content:center;width:40px;height:40px;padding:0!important;margin:0!important;border:none!important;background:transparent!important;color:#fff!important;font-size:32px!important;line-height:1!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;cursor:pointer}.important-message-actions{display:flex;justify-content:flex-end;margin-top:25px}.important-message-actions button{padding:10px 25px;border:1px solid #ccc;border-radius:4px;background:#f5f5f5;color:#164d71;font-size:18px;font-style:normal;cursor:pointer}.important-message-modal h2,.important-message-modal p{text-align:left}@media (max-width: 480px){.chat-popup{width:calc(100vw - 16px);right:8px;bottom:8px;height:70vh}.bubble{max-width:90%;font-size:13px}}.bot,.user{display:flex;flex-direction:column;width:100%;min-width:0;margin:8px 0;box-sizing:border-box}.bot{align-items:flex-start}.user{align-items:flex-end}.message-wrapper{display:inline-flex;flex-direction:column;width:auto;max-width:78%;min-width:0}.bot .message-wrapper,.user .message-wrapper{display:flex;flex-direction:column;width:auto!important;max-width:75%!important;min-width:0!important}.bot .message-wrapper{align-items:flex-start}.user .message-wrapper{align-items:flex-end}.bot .bubble,.user .bubble{position:relative;display:flex;align-items:flex-start;width:auto!important;max-width:100%!important;box-sizing:border-box;padding:8px 12px;font-size:14px;line-height:1.3;border-radius:14px;margin-bottom:0!important}.bot .bubble{background:#fff;color:#111827;border:1px solid #e6e9ee;border-top-left-radius:4px;gap:8px}.user .bubble{background:#e8eef6;color:#000;border-top-right-radius:4px;margin-left:0!important}.bot .bubble-content,.user .bubble-content{display:flex;flex-direction:column;align-items:flex-start;width:auto!important;max-width:100%!important;min-width:0!important;box-sizing:border-box;overflow:visible}.bot .formatted-text,.user .formatted-text{display:block;width:auto!important;max-width:100% important;min-width:0;white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important;box-sizing:border-box}.amelia-message-icon{width:28px;height:28px;flex:0 0 28px;object-fit:cover;border-radius:50%}.message-time,.message-time-bot{margin:0;padding:0;font-size:11px;color:#6b7280;white-space:nowrap}.message-time-bot{order:1;margin:0;padding:0;text-align:left;white-space:nowrap}.user .message-time{text-align:right}.yn-group{display:flex;align-items:center;gap:8px;margin-top:10px}.yn-btn{flex:0 0 auto}.star-group{display:flex;align-items:center;gap:8px;margin-top:8px;padding:0}.star-group .star{appearance:none;border:none;background:transparent;cursor:pointer;font-size:18px;line-height:1;padding:0 1px;color:#000;transition:transform .08s ease}.star-group .star.filled{color:#f59e0b}.star-group .sta:hover{transform:scale(1.08)}.feedback{order:2;display:flex;align-items:center;justify-content:flex-end;gap:6px;width:auto;padding:0;margin:0 0 0 auto}.fb-btn{appearance:none;border:none;background:transparent;cursor:pointer;font-size:13px;line-height:1;padding:2px 3px;margin:0}.fb-btn:hover{background:#00bcd414}.message-meta{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:3px}.user .message-meta{justify-content:flex-end}\n"] }]
37439
- }], () => [{ type: LexChatService }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }], { clientFilter: [{
37616
+ args: [{ selector: 'app-chatbot-lex', template: "\r\n\r\n\r\n<!-- Floating chat toggle button -->\r\n<button\r\n type=\"button\"\r\n class=\"chatbot-fab\"\r\n (click)=\"handleCloudClick()\"\r\n *ngIf=\"!chatOpen\"\r\n aria-label=\"Open chat\"\r\n title=\"Chat with us\">\r\n <img\r\n class=\"chatbot-fab-icon\"\r\n src=\"assets/icon/amelia-new-icon.png\"\r\n alt=\"Amelia\"\r\n />\r\n</button>\r\n\r\n<!-- Important Message Popup for cloud-button flow -->\r\n\r\n<div class=\"important-message-overlay\" \r\n *ngIf=\"showImportantMessage\">\r\n <div class=\"important-message-modal\">\r\n <button\r\n type=\"button\"\r\n class=\"important-message-close\"\r\n aria-label=\"Close\"\r\n (click)=\"closeImportantMessage()\">\r\n &times;\r\n </button>\r\n\r\n <h2>Important Message</h2>\r\n <ng-container *ngIf=\"importantMessageType === 'claimant'\">\r\n <p>\r\n KDOL's virtual assistant may ask you to log in to answer questions about your personal account. For certain services, such as reporting fraud, you may be asked to provide identifying information, including the last four digits of your Social Security Number (SSN) and your date of birth. KDOL follows strict federal security guidelines to protect your sensitive information. To further safeguard your information, close the chat window and browser when finished.\r\n </p>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"importantMessageType === 'employer'\">\r\n <p>\r\n KDOL's virtual assistant may ask you to log in to answer questions about your business account. For certain services, such as reporting fraud, you may be asked to provide identifying information, including your Federal Employer Identification Number (FEIN) or the last four digits of your Social Security Number (SSN), along with other account verification details. KDOL follows strict federal security guidelines to protect your sensitive information. To further safeguard your information, close the chat window and browser when finished.\r\n </p>\r\n </ng-container>\r\n \r\n <div class=\"important-message-actions\">\r\n <button type=\"button\" (click)=\"continueToAmelia()\">\r\n Continue\r\n </button>\r\n </div>\r\n \r\n </div>\r\n</div>\r\n\r\n<!-- Chat popup -->\r\n<div class=\"chat-popup\" *ngIf=\"chatOpen\" [class.expanded]=\"isExpanded\">\r\n <div class=\"chat-top-actions\">\r\n <button\r\n class=\"top-action-btn\"\r\n type=\"button\"\r\n (click)=\"toggleExpand()\"\r\n title=\"Expand\">\r\n <span *ngIf=\"!isExpanded\">\u26F6</span>\r\n </button>\r\n <button \r\n class=\"top-action-btn\" \r\n type=\"button\" \r\n (click)=\"minimizeChat()\" \r\n title=\"Minimize\" \r\n aria-label=\"Minimize\">\r\n _\r\n </button> \r\n <button \r\n class=\"top-action-btn\" \r\n type=\"button\" \r\n (click)=\"closeChat()\" \r\n title=\"Close\" \r\n aria-label=\"Close\">\r\n \u2715\r\n </button>\r\n \r\n </div>\r\n <div class=\"chat-popup-header\">\r\n <span class=\"icon-label\">\r\n <img\r\n class=\"amelia-header-icon\"\r\n src=\"assets/icon/amelia-new-icon.png\"\r\n alt=\"Amelia\"/>\r\n <span class=\"text-block\">\r\n <span class=\"label-text\">Amelia</span>\r\n <span class=\"status-wrapper\">\r\n\r\n <span\r\n class=\"status-dot\"\r\n [class.offline]=\"botOffline\">\r\n </span>\r\n \r\n <span\r\n class=\"status\"\r\n [class.online-text]=\"!botOffline\"\r\n [class.offline-text]=\"botOffline\">\r\n {{ botOffline ? 'Offline' : 'Online' }}\r\n </span>\r\n </span>\r\n </span>\r\n </span>\r\n\r\n <div class=\"chat-popup-actions\">\r\n\r\n <button class=\"action-btn info-btn\"\r\n type=\"button\"\r\n (mouseenter)=\"getSessionID()\"\r\n title={{sessionId}}\r\n aria-label=\"Info\"\r\n (click)=\"copySessionId()\"\r\n [style.visibility]=\"infoVisible ? 'visible' : 'hidden'\">\r\n \uD83D\uDEC8\r\n </button>\r\n \r\n <button \r\n class=\"action-btn\" \r\n type=\"button\" \r\n (click)=\"refreshChat()\" \r\n title=\"Refresh\" \r\n aria-label=\"Refresh\">\r\n \u27F3\r\n </button>\r\n \r\n </div>\r\n </div>\r\n\r\n <div class=\"chat-body\">\r\n <div class=\"chat-window\" #chatWindow role=\"log\" aria-live=\"polite\">\r\n <div\r\n *ngFor=\"let msg of messages; let i =index\"\r\n [ngClass]=\"msg.from\">\r\n\r\n <div \r\n class=\"message-wrapper\"\r\n [class.short-welcome]=\"\r\n msg.from === 'bot' &&\r\n msg.text === 'Hi! How may I help you?'\r\n \">\r\n <div class=\"bubble\">\r\n <img\r\n *ngIf=\"msg.from === 'bot'\"\r\n class=\"amelia-message-icon\"\r\n src=\"assets/icon/amelia-new-icon.png\"\r\n alt=\"Amelia\"\r\n />\r\n <div class=\"bubble-content\">\r\n <ng-container\r\n *ngIf=\"\r\n msg.from === 'bot' &&\r\n isStarRatingPrompt(msg.text, i)\r\n else normalMessage\r\n \">\r\n <span class = \"formatted-text\">\r\n Your feedback matters to us\r\n </span>\r\n <div \r\n class=\"star-group\" \r\n (mouseleave)=\"onStarLeave(i)\">\r\n <button\r\n *ngFor=\"let s of getStars()\"\r\n type=\"button\"\r\n class=\"star\"\r\n [class.filled]=\"isStarFilled(i, s)\"\r\n (mouseenter)=\"onStarEnter(i, s)\"\r\n (click)=\"onStarClick(s, i)\"\r\n [attr.aria-label]=\"'Rate ' + s + ' star(s)'\"\r\n title=\"Rate {{s}} star(s)\">\r\n \u2605\r\n </button>\r\n\r\n </div>\r\n </ng-container>\r\n <ng-template #normalMessage>\r\n <span class=\"formatted-text\">\r\n <ng-container\r\n *ngFor=\"let line of displayLines(msg.text); let last = last\">\r\n {{ line }}\r\n <br *ngIf=\"!last\" >\r\n </ng-container>\r\n </span>\r\n <!-- Yes/No buttons -->\r\n <div\r\n class=\"yn-group\"\r\n *ngIf=\"\r\n msg.from === 'bot' && \r\n isYesNoPrompt(msg.text, i)\r\n \">\r\n <button\r\n class=\"yn-btn yes\"\r\n (click)=\"onYesNoClick('Yes', i)\">\r\n Yes\r\n </button>\r\n <button\r\n class=\"yn-btn no\" \r\n (click)=\"onYesNoClick('No', i)\">\r\n No\r\n </button>\r\n </div>\r\n <div \r\n class=\"message-links\"\r\n *ngIf=\"msg.url && msg.url.length\">\r\n <button\r\n *ngIf=\"let url of msg.url\"\r\n class=\"yn-btn yes\"\r\n type=\"button\"\r\n (click)=\"openLink(url)\">\r\n {{url}}\r\n </button> \r\n </div>\r\n </ng-template>\r\n </div>\r\n </div>\r\n \r\n <div class=\"message-meta\">\r\n <div class =\"feedback\"\r\n *ngIf=\"\r\n msg.from === 'bot'\r\n && msg.text?.trim() !== 'Hi! How may I help you?'\r\n && !isMessageRated(i)\r\n && i === messages.length - 1\r\n && !isAck\r\n \">\r\n <button\r\n class=\"fb-btn up\" \r\n (click)=\"sendFeedback('Thumbs up', i)\" \r\n aria-label=\"Thumbs up\" \r\n title=\"Thumbs up\">\r\n \uD83D\uDC4D\r\n </button>\r\n <button\r\n class=\"fb-btn down\" \r\n (click)=\"sendFeedback('Thumbs down', i)\" \r\n aria-label=\"Thumbs down\" \r\n title=\"Thumbs down\">\r\n \uD83D\uDC4E\r\n </button>\r\n </div>\r\n <div\r\n *ngIf=\"msg.timestamp\"\r\n [ngClass]=\"\r\n msg.from === 'bot' \r\n ? 'message-time-bot' \r\n : 'message-time'\r\n \">\r\n {{msg.timestamp | date:\"EEE MMM dd yyyy 'at' hh:mm:ss a\"}}\r\n </div>\r\n </div>\r\n </div> \r\n </div>\r\n <div *ngIf=\"isLoading\" class=\"login-loading\">\r\n <img\r\n src=\"assets/icon/amelia-new-icon.png\"\r\n class=\"amelia-message-icon\"\r\n alt=\"Amelia\"\r\n />\r\n \r\n <span class=\"loading-text\">\r\n {{ loadingText }}\r\n </span>\r\n <span class=\"typing\">\r\n <span>.</span>\r\n <span>.</span>\r\n <span>.</span>\r\n </span>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"input-row\">\r\n <div class=\"chat-input-wrapper\">\r\n <textarea\r\n #messageInput\r\n class=\"chat-input\"\r\n [(ngModel)]=\"userInput\"\r\n (input)=\"autoGrow()\"\r\n (keydown.enter)=\"$event.preventDefault(); handleEnter()\"\r\n [disabled]=\"sending || isDisabled\"\r\n placeholder=\"Type your message...\"\r\n rows=\"1\">\r\n </textarea>\r\n </div>\r\n <button\r\n class=\"send-btn\"\r\n (click)=\"sendMessage()\"\r\n [disabled]=\"sending || isDisabled\">\r\n Send\r\n </button>\r\n </div>\r\n</div>\r\n", styles: [".chatbot-fab{position:fixed;bottom:20px;right:20px;width:56px;height:56px;border-radius:50%;background:transparent;color:#fff;border:none;font-size:24px;cursor:pointer;box-shadow:none;z-index:9998;display:flex;align-items:center;justify-content:center;overflow:visible}.chatbot-fab:hover{background:#00a5bb}.chatbot-fab-icon{width:70px;height:70px;object-fit:contain;border-radius:0;background:transparent;display:block}.chat-popup{position:fixed;bottom:20px;right:20px;width:380px;height:520px;max-height:80vh;display:flex;flex-direction:column;background:#fff;border:1px solid #e6e9ee;border-radius:12px;box-shadow:0 12px 24px #0000001f;overflow:visible!important;z-index:9999;padding-top:30px;overflow:visible}.chat-popup-header img{width:36px;height:36px;min-width:36px;max-width:36px;border-radius:50%;object-fit:cover}.chat-popup-header{display:flex;align-items:center;justify-content:space-between;background:var(--ion-color-primary)!important;color:#fff;padding:4px 12px;font-weight:600;flex-shrink:0}.icon-label{display:inline-flex;align-items:center;gap:8px}.text-block{display:inline-flex;flex-direction:column;line-height:1.1}.label-text{font-size:15px;font-weight:600}.status{font-size:11px;margin-top:2px;text-transform:lowercase;opacity:.95}.status.online-text{color:#b9f6ca}.status.offline-text{color:#ffcdd2}.chat-popup-actions{display:inline-flex;align-items:center;gap:6px}.info-btn,.info-btn:hover,.info-btn:focus,.info-btn:active{background:transparent;border:none;box-shadow:none;outline:none}.action-btn{background:transparent;color:#fff;border:none;font-size:16px;cursor:pointer;width:28px;height:28px;line-height:1;padding:0;border-radius:4px}.action-btn:hover{background:#ffffff26}.chat-body{flex:1;display:flex;flex-direction:column;overflow:hidden;min-height:0}.chat-window{padding:12px;flex:1;overflow-y:auto;background:#f6f8fb;min-height:0;width:100%;box-sizing:border-box}.yn-btn{appearance:none;border:1px solid #cfd8e3;background:#fff;color:#111827;font-size:12px;padding:4px 8px;border-radius:999px;cursor:pointer;margin-right:6px}.yn-btn:hover{background:#f3f4f6}.yn-btn.yes{border-color:#16a34a33}.yn-btn.no{border-color:#dc262633}.input-row{display:flex;gap:8px;padding:10px;background:#fff;border-top:1px solid #e6e9ee;align-items:flex-end;flex-shrink:0}.chat-input-wrapper{flex:1;border-radius:8px;border:1px solid #d1d5db;overflow:hidden;background:#fff;display:flex}.chat-input{width:100%;resize:none;border:none;outline:none;padding:8px 10px;font-size:14px;line-height:1.2;min-height:20px;max-height:100px;overflow-y:auto;box-sizing:border-box;background:transparent}.chat-input:focus{outline:none;box-shadow:none}.send-btn{height:36px;align-self:flex-end;padding:0 14px;background:var(--ion-color-primary)!important;color:#fff!important;border:none;border-radius:8px;cursor:pointer;white-space:nowrap;font-size:14px}.send-btn:disabled{opacity:.6;cursor:not-allowed}.amelia-header-icon{width:56px;height:56px;border-radius:0;object-fit:contain;background:transparent;flex-shrink:0}.chat-popup.expanded{width:650px!important;height:86vh!important;position:fixed!important;bottom:16px!important;right:40px!important;left:auto!important;max-width:650px!important;max-height:calc(100vh - 80px)!important;border-radius:8px!important;display:flex!important;flex-direction:column!important;visibility:visible!important;opacity:1!important;z-index:9999!important}.chat-popup.expanded .chat-body{width:100%!important;align-self:stretch!important}.chat-top-actions{display:flex;justify-content:flex=end;align-items:center;gap:6px;padding:4px 8px;background:transparent;flex-shrink:0;position:absolute;top:-1px;right:0!important;width:auto!important;z-index:10000;position:absolute!important}.top-action-btn{border:none;background:transparent!important;color:#000!important;font-size:16px;font-weight:700;line-height:22px;cursor:pointer;padding:0;border-radius:none!important;width:24px;height:24px;text-align:center}.top-action-btn:hover{background:#eee;border-radius:4px}.top-action-btn .pi{font-size:16px}.status-wrapper{display:flex;align-items:center;gap:6px}.status-dot{width:7px;height:7px;border-radius:50%;background-color:#2ecc71!important;flex-shrink:0}.status-dot.offline{background:#9e9e9e!important}.online-text,.offline-text{text-transform:none!important}.important-message-overlay{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;min-height:auto;height:auto;padding:20px;background-color:transparent}.important-message-modal{position:relative;width:720px;max-width:calc(100vw - 80px);min-height:auto;height:auto;padding:28px 32px 24px;overflow:visible;box-sizing:border-box;background:var(--ion-color-primary);color:#fff;border-radius:2px;text-align:left;pointer-events:auto}.important-message-modal h2{margin:0 45px 15px 0;font-size:34px;font-weight:400;line-height:1.25}.important-message-modal p{margin:0;font-size:17px;line-height:1.25;position:relative;overflow-wrap:break-word}.important-message-close{position:absolute!important;top:10px!important;right:12px!important;z-index:100!important;display:flex!important;align-items:center;justify-content:center;width:40px;height:40px;padding:0!important;margin:0!important;border:none!important;background:transparent!important;color:#fff!important;font-size:32px!important;line-height:1!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;cursor:pointer}.important-message-actions{display:flex;justify-content:flex-end;margin-top:25px}.important-message-actions button{padding:10px 25px;border:1px solid #ccc;border-radius:4px;background:#f5f5f5;color:#164d71;font-size:18px;font-style:normal;cursor:pointer}.important-message-modal h2,.important-message-modal p{text-align:left}@media (max-width: 480px){.chat-popup{width:calc(100vw - 16px);right:8px;bottom:8px;height:70vh}.bubble{max-width:90%;font-size:13px}}.bot,.user{display:flex;flex-direction:column;width:100%;min-width:0;margin:8px 0;box-sizing:border-box}.bot{align-items:flex-start}.user{align-items:flex-end}.message-wrapper{display:inline-flex;flex-direction:column;width:auto;max-width:78%;min-width:0}.bot .message-wrapper,.user .message-wrapper{display:flex;flex-direction:column;width:auto!important;max-width:75%!important;min-width:0!important}.bot .message-wrapper{align-items:flex-start}.user .message-wrapper{align-items:flex-end}.bot .bubble,.user .bubble{position:relative;display:flex;align-items:flex-start;width:auto!important;max-width:100%!important;box-sizing:border-box;padding:8px 12px;font-size:14px;line-height:1.3;border-radius:14px;margin-bottom:0!important}.bot .bubble{background:#fff;color:#111827;border:1px solid #e6e9ee;border-top-left-radius:4px;gap:8px}.user .bubble{background:#e8eef6;color:#000;border-top-right-radius:4px;margin-left:0!important}.bot .bubble-content,.user .bubble-content{display:flex;flex-direction:column;align-items:flex-start;width:auto!important;max-width:100%!important;min-width:0!important;box-sizing:border-box;overflow:visible}.bot .formatted-text,.user .formatted-text{display:block;width:auto!important;max-width:100% important;min-width:0;white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important;box-sizing:border-box}.amelia-message-icon{width:28px;height:28px;flex:0 0 28px;object-fit:cover;border-radius:50%}.message-time,.message-time-bot{margin:0;padding:0;font-size:11px;color:#6b7280;white-space:nowrap}.message-time-bot{order:1;margin:0;padding:0;text-align:left;white-space:nowrap}.user .message-time{text-align:right}.yn-group{display:flex;align-items:center;gap:8px;margin-top:10px}.yn-btn{flex:0 0 auto}.star-group{display:flex;align-items:center;gap:8px;margin-top:8px;padding:0}.star-group .star{appearance:none;border:none;background:transparent;cursor:pointer;font-size:18px;line-height:1;padding:0 1px;color:#000;transition:transform .08s ease}.star-group .star.filled{color:#f59e0b}.star-group .sta:hover{transform:scale(1.08)}.feedback{order:2;display:flex;align-items:center;justify-content:flex-end;gap:6px;width:auto;padding:0;margin:0 0 0 auto}.fb-btn{appearance:none;border:none;background:transparent;cursor:pointer;font-size:13px;line-height:1;padding:2px 3px;margin:0}.fb-btn:hover{background:#00bcd414}.message-meta{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:3px}.user .message-meta{justify-content:flex-end}.typing{display:inline-flex}.typing span{display:inline-block;opacity:0;animation:blink 1.4s infinite;font-size:18px;margin:0 2px}.typing span:nth-child(1){animation-delay:0s}.typing span:nth-child(2){animation-delay:.2s}.typing span:nth-child(3){animation-delay:.4s}@keyframes blink{0%,80%,to{opacity:0}40%{opacity:1}}.loading-text{font-size:13px;color:#6b7280;margin:6px 12px}\n"] }]
37617
+ }], () => [{ type: LexChatService }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: LoginService }], { clientFilter: [{
37440
37618
  type: Input
37441
37619
  }], messageInput: [{
37442
37620
  type: ViewChild,
@@ -37445,7 +37623,7 @@ class ChatbotLexComponent {
37445
37623
  type: ViewChild,
37446
37624
  args: ['chatWindow']
37447
37625
  }] }); })();
37448
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ChatbotLexComponent, { className: "ChatbotLexComponent", filePath: "lib\\components\\chatbot-lex\\chatbot-lex.component.ts", lineNumber: 28 }); })();
37626
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ChatbotLexComponent, { className: "ChatbotLexComponent", filePath: "lib\\components\\chatbot-lex\\chatbot-lex.component.ts", lineNumber: 31 }); })();
37449
37627
 
37450
37628
  function createTranslateLoader(http) {
37451
37629
  // return new TranslateHttpLoader(http, `./assets/i18n/${environment.state}/`, ".json");