@ksremp/ngx-ksremp-app-lib 2.0.1 → 2.0.2

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.
@@ -72,7 +72,11 @@ export class LexChatService {
72
72
  this.chatOpen$.next(true);
73
73
  }
74
74
  closeChat() {
75
+ this.resetSession({
76
+ regenerateSessionId: true
77
+ });
75
78
  this.chatOpen$.next(false);
79
+ this.chatIDtheft = false;
76
80
  }
77
81
  giveSessionId() {
78
82
  return this.sessionId;
@@ -86,4 +90,4 @@ export class LexChatService {
86
90
  providedIn: 'root'
87
91
  }]
88
92
  }], () => [{ type: i1.HttpClient }, { type: i2.LoginService }], null); })();
89
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGV4LWNoYXQuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1yZXVzYS1hcHAtbGliL3NyYy9saWIvc2VydmljZXMvbGV4LWNoYXQvbGV4LWNoYXQuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBYyxXQUFXLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUMvRCxPQUFPLEVBQUUsZUFBZSxFQUFFLGNBQWMsRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUV2RCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sMkJBQTJCLENBQUM7Ozs7QUFLekQsTUFBTSxPQUFPLGNBQWM7SUFVekIsWUFBb0IsSUFBZ0IsRUFBVSxZQUEwQjtRQUFwRCxTQUFJLEdBQUosSUFBSSxDQUFZO1FBQVUsaUJBQVksR0FBWixZQUFZLENBQWM7UUFSeEUsZ0JBQVcsR0FBRyxLQUFLLENBQUM7U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XHJcbiAgfVxyXG5cclxuICBnaXZlU2Vzc2lvbklkKCk6IHN0cmluZyB7XHJcbiAgICByZXR1cm4gdGhpcy5zZXNzaW9uSWQ7XHJcbiAgfVxyXG59XHJcbiJdfQ==
@@ -36492,7 +36492,11 @@ class LexChatService {
36492
36492
  this.chatOpen$.next(true);
36493
36493
  }
36494
36494
  closeChat() {
36495
+ this.resetSession({
36496
+ regenerateSessionId: true
36497
+ });
36495
36498
  this.chatOpen$.next(false);
36499
+ this.chatIDtheft = false;
36496
36500
  }
36497
36501
  giveSessionId() {
36498
36502
  return this.sessionId;
@@ -36522,31 +36526,31 @@ function ChatbotLexComponent_div_1_span_3_Template(rf, ctx) { if (rf & 1) {
36522
36526
  i0.ɵɵelementEnd();
36523
36527
  } }
36524
36528
  function ChatbotLexComponent_div_1_div_26_img_2_Template(rf, ctx) { if (rf & 1) {
36525
- i0.ɵɵelement(0, "img", 36);
36529
+ i0.ɵɵelement(0, "img", 37);
36526
36530
  } }
36527
36531
  function ChatbotLexComponent_div_1_div_26_ng_container_3_button_4_Template(rf, ctx) { if (rf & 1) {
36528
- const _r19 = i0.ɵɵgetCurrentView();
36529
- i0.ɵɵelementStart(0, "button", 39);
36530
- i0.ɵɵlistener("mouseenter", function ChatbotLexComponent_div_1_div_26_ng_container_3_button_4_Template_button_mouseenter_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r19); const s_r16 = restoredCtx.$implicit; const i_r9 = i0.ɵɵnextContext(2).index; const ctx_r17 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r17.onStarEnter(i_r9, s_r16)); })("click", function ChatbotLexComponent_div_1_div_26_ng_container_3_button_4_Template_button_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r19); const s_r16 = restoredCtx.$implicit; const i_r9 = i0.ɵɵnextContext(2).index; const ctx_r20 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r20.onStarClick(s_r16, i_r9)); });
36532
+ const _r20 = i0.ɵɵgetCurrentView();
36533
+ i0.ɵɵelementStart(0, "button", 40);
36534
+ i0.ɵɵlistener("mouseenter", function ChatbotLexComponent_div_1_div_26_ng_container_3_button_4_Template_button_mouseenter_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r20); const s_r17 = restoredCtx.$implicit; const i_r9 = i0.ɵɵnextContext(2).index; const ctx_r18 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r18.onStarEnter(i_r9, s_r17)); })("click", function ChatbotLexComponent_div_1_div_26_ng_container_3_button_4_Template_button_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r20); const s_r17 = restoredCtx.$implicit; const i_r9 = i0.ɵɵnextContext(2).index; const ctx_r21 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r21.onStarClick(s_r17, i_r9)); });
36531
36535
  i0.ɵɵtext(1, " \u2605 ");
36532
36536
  i0.ɵɵelementEnd();
36533
36537
  } if (rf & 2) {
36534
- const s_r16 = ctx.$implicit;
36538
+ const s_r17 = ctx.$implicit;
36535
36539
  const i_r9 = i0.ɵɵnextContext(2).index;
36536
- const ctx_r15 = i0.ɵɵnextContext(2);
36537
- i0.ɵɵclassProp("filled", ctx_r15.isStarFilled(i_r9, s_r16));
36538
- i0.ɵɵpropertyInterpolate1("title", "Rate ", s_r16, " star(s)");
36539
- i0.ɵɵattribute("aria-label", "Rate " + s_r16 + " star(s)");
36540
+ const ctx_r16 = i0.ɵɵnextContext(2);
36541
+ i0.ɵɵclassProp("filled", ctx_r16.isStarFilled(i_r9, s_r17));
36542
+ i0.ɵɵpropertyInterpolate1("title", "Rate ", s_r17, " star(s)");
36543
+ i0.ɵɵattribute("aria-label", "Rate " + s_r17 + " star(s)");
36540
36544
  } }
36541
36545
  function ChatbotLexComponent_div_1_div_26_ng_container_3_Template(rf, ctx) { if (rf & 1) {
36542
- const _r25 = i0.ɵɵgetCurrentView();
36546
+ const _r26 = i0.ɵɵgetCurrentView();
36543
36547
  i0.ɵɵelementContainerStart(0);
36544
36548
  i0.ɵɵelementStart(1, "div");
36545
36549
  i0.ɵɵtext(2, "Your feedback matters to us");
36546
36550
  i0.ɵɵelementEnd();
36547
- i0.ɵɵelementStart(3, "div", 37);
36548
- i0.ɵɵlistener("mouseleave", function ChatbotLexComponent_div_1_div_26_ng_container_3_Template_div_mouseleave_3_listener() { i0.ɵɵrestoreView(_r25); const i_r9 = i0.ɵɵnextContext().index; const ctx_r23 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r23.onStarLeave(i_r9)); });
36549
- i0.ɵɵtemplate(4, ChatbotLexComponent_div_1_div_26_ng_container_3_button_4_Template, 2, 4, "button", 38);
36551
+ i0.ɵɵelementStart(3, "div", 38);
36552
+ i0.ɵɵlistener("mouseleave", function ChatbotLexComponent_div_1_div_26_ng_container_3_Template_div_mouseleave_3_listener() { i0.ɵɵrestoreView(_r26); const i_r9 = i0.ɵɵnextContext().index; const ctx_r24 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r24.onStarLeave(i_r9)); });
36553
+ i0.ɵɵtemplate(4, ChatbotLexComponent_div_1_div_26_ng_container_3_button_4_Template, 2, 4, "button", 39);
36550
36554
  i0.ɵɵelementEnd();
36551
36555
  i0.ɵɵelementContainerEnd();
36552
36556
  } if (rf & 2) {
@@ -36565,40 +36569,29 @@ function ChatbotLexComponent_div_1_div_26_ng_template_4_div_4_Template(rf, ctx)
36565
36569
  i0.ɵɵtext(4, "No");
36566
36570
  i0.ɵɵelementEnd()();
36567
36571
  } }
36568
- function ChatbotLexComponent_div_1_div_26_ng_template_4_div_5_Template(rf, ctx) { if (rf & 1) {
36569
- const _r36 = i0.ɵɵgetCurrentView();
36570
- i0.ɵɵelementStart(0, "div", 48)(1, "button", 49);
36571
- i0.ɵɵlistener("click", function ChatbotLexComponent_div_1_div_26_ng_template_4_div_5_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r36); const i_r9 = i0.ɵɵnextContext(2).index; const ctx_r34 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r34.sendFeedback("Thumbs up", i_r9)); });
36572
- i0.ɵɵtext(2, "\uD83D\uDC4D");
36573
- i0.ɵɵelementEnd();
36574
- i0.ɵɵelementStart(3, "button", 50);
36575
- i0.ɵɵlistener("click", function ChatbotLexComponent_div_1_div_26_ng_template_4_div_5_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r36); const i_r9 = i0.ɵɵnextContext(2).index; const ctx_r37 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r37.sendFeedback("Thumbs down", i_r9)); });
36576
- i0.ɵɵtext(4, "\uD83D\uDC4E");
36577
- i0.ɵɵelementEnd()();
36578
- } }
36579
- function ChatbotLexComponent_div_1_div_26_ng_template_4_div_6_div_1_button_1_Template(rf, ctx) { if (rf & 1) {
36580
- const _r44 = i0.ɵɵgetCurrentView();
36572
+ function ChatbotLexComponent_div_1_div_26_ng_template_4_div_5_div_1_button_1_Template(rf, ctx) { if (rf & 1) {
36573
+ const _r39 = i0.ɵɵgetCurrentView();
36581
36574
  i0.ɵɵelementStart(0, "button", 46);
36582
- i0.ɵɵlistener("click", function ChatbotLexComponent_div_1_div_26_ng_template_4_div_6_div_1_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r44); const url_r40 = i0.ɵɵnextContext().$implicit; const ctx_r42 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r42.openLink(url_r40)); });
36575
+ i0.ɵɵlistener("click", function ChatbotLexComponent_div_1_div_26_ng_template_4_div_5_div_1_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r39); const url_r35 = i0.ɵɵnextContext().$implicit; const ctx_r37 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r37.openLink(url_r35)); });
36583
36576
  i0.ɵɵtext(1);
36584
36577
  i0.ɵɵelementEnd();
36585
36578
  } if (rf & 2) {
36586
- const url_r40 = i0.ɵɵnextContext().$implicit;
36579
+ const url_r35 = i0.ɵɵnextContext().$implicit;
36587
36580
  i0.ɵɵadvance(1);
36588
- i0.ɵɵtextInterpolate(url_r40);
36581
+ i0.ɵɵtextInterpolate(url_r35);
36589
36582
  } }
36590
- function ChatbotLexComponent_div_1_div_26_ng_template_4_div_6_div_1_Template(rf, ctx) { if (rf & 1) {
36583
+ function ChatbotLexComponent_div_1_div_26_ng_template_4_div_5_div_1_Template(rf, ctx) { if (rf & 1) {
36591
36584
  i0.ɵɵelementStart(0, "div");
36592
- i0.ɵɵtemplate(1, ChatbotLexComponent_div_1_div_26_ng_template_4_div_6_div_1_button_1_Template, 2, 1, "button", 52);
36585
+ i0.ɵɵtemplate(1, ChatbotLexComponent_div_1_div_26_ng_template_4_div_5_div_1_button_1_Template, 2, 1, "button", 49);
36593
36586
  i0.ɵɵelementEnd();
36594
36587
  } if (rf & 2) {
36595
36588
  const msg_r8 = i0.ɵɵnextContext(3).$implicit;
36596
36589
  i0.ɵɵadvance(1);
36597
36590
  i0.ɵɵproperty("ngIf", msg_r8.from === "bot");
36598
36591
  } }
36599
- function ChatbotLexComponent_div_1_div_26_ng_template_4_div_6_Template(rf, ctx) { if (rf & 1) {
36592
+ function ChatbotLexComponent_div_1_div_26_ng_template_4_div_5_Template(rf, ctx) { if (rf & 1) {
36600
36593
  i0.ɵɵelementStart(0, "div");
36601
- i0.ɵɵtemplate(1, ChatbotLexComponent_div_1_div_26_ng_template_4_div_6_div_1_Template, 2, 1, "div", 51);
36594
+ i0.ɵɵtemplate(1, ChatbotLexComponent_div_1_div_26_ng_template_4_div_5_div_1_Template, 2, 1, "div", 48);
36602
36595
  i0.ɵɵelementEnd();
36603
36596
  } if (rf & 2) {
36604
36597
  const msg_r8 = i0.ɵɵnextContext(2).$implicit;
@@ -36606,26 +36599,35 @@ function ChatbotLexComponent_div_1_div_26_ng_template_4_div_6_Template(rf, ctx)
36606
36599
  i0.ɵɵproperty("ngForOf", msg_r8.url);
36607
36600
  } }
36608
36601
  function ChatbotLexComponent_div_1_div_26_ng_template_4_Template(rf, ctx) { if (rf & 1) {
36609
- i0.ɵɵelementStart(0, "div", 40)(1, "div", 41)(2, "span", 42);
36602
+ i0.ɵɵelementStart(0, "div", 41)(1, "div", 42)(2, "span", 43);
36610
36603
  i0.ɵɵtext(3);
36611
36604
  i0.ɵɵelementEnd();
36612
- i0.ɵɵtemplate(4, ChatbotLexComponent_div_1_div_26_ng_template_4_div_4_Template, 5, 0, "div", 43)(5, ChatbotLexComponent_div_1_div_26_ng_template_4_div_5_Template, 5, 0, "div", 44)(6, ChatbotLexComponent_div_1_div_26_ng_template_4_div_6_Template, 2, 1, "div", 7);
36605
+ i0.ɵɵtemplate(4, ChatbotLexComponent_div_1_div_26_ng_template_4_div_4_Template, 5, 0, "div", 44)(5, ChatbotLexComponent_div_1_div_26_ng_template_4_div_5_Template, 2, 1, "div", 7);
36613
36606
  i0.ɵɵelementEnd()();
36614
36607
  } if (rf & 2) {
36615
- const ctx_r48 = i0.ɵɵnextContext();
36616
- const msg_r8 = ctx_r48.$implicit;
36617
- const i_r9 = ctx_r48.index;
36608
+ const ctx_r43 = i0.ɵɵnextContext();
36609
+ const msg_r8 = ctx_r43.$implicit;
36610
+ const i_r9 = ctx_r43.index;
36618
36611
  const ctx_r12 = i0.ɵɵnextContext(2);
36619
36612
  i0.ɵɵadvance(3);
36620
36613
  i0.ɵɵtextInterpolate(ctx_r12.displayText(msg_r8.text));
36621
36614
  i0.ɵɵadvance(1);
36622
36615
  i0.ɵɵproperty("ngIf", msg_r8.from === "bot" && ctx_r12.isYesNoPrompt(msg_r8.text, i_r9));
36623
36616
  i0.ɵɵadvance(1);
36624
- i0.ɵɵproperty("ngIf", msg_r8.from === "bot" && !ctx_r12.isMessageRated(i_r9) && i_r9 === ctx_r12.messages.length - 1 && !ctx_r12.isAck);
36625
- i0.ɵɵadvance(1);
36626
36617
  i0.ɵɵproperty("ngIf", msg_r8.url && msg_r8.url.length);
36627
36618
  } }
36628
36619
  function ChatbotLexComponent_div_1_div_26_div_6_Template(rf, ctx) { if (rf & 1) {
36620
+ const _r46 = i0.ɵɵgetCurrentView();
36621
+ i0.ɵɵelementStart(0, "div", 50)(1, "button", 51);
36622
+ i0.ɵɵlistener("click", function ChatbotLexComponent_div_1_div_26_div_6_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r46); const i_r9 = i0.ɵɵnextContext().index; const ctx_r44 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r44.sendFeedback("Thumbs up", i_r9)); });
36623
+ i0.ɵɵtext(2, "\uD83D\uDC4D");
36624
+ i0.ɵɵelementEnd();
36625
+ i0.ɵɵelementStart(3, "button", 52);
36626
+ i0.ɵɵlistener("click", function ChatbotLexComponent_div_1_div_26_div_6_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r46); const i_r9 = i0.ɵɵnextContext().index; const ctx_r47 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r47.sendFeedback("Thumbs down", i_r9)); });
36627
+ i0.ɵɵtext(4, "\uD83D\uDC4E");
36628
+ i0.ɵɵelementEnd()();
36629
+ } }
36630
+ function ChatbotLexComponent_div_1_div_26_div_7_Template(rf, ctx) { if (rf & 1) {
36629
36631
  i0.ɵɵelementStart(0, "div", 30);
36630
36632
  i0.ɵɵtext(1);
36631
36633
  i0.ɵɵpipe(2, "date");
@@ -36638,9 +36640,9 @@ function ChatbotLexComponent_div_1_div_26_div_6_Template(rf, ctx) { if (rf & 1)
36638
36640
  } }
36639
36641
  function ChatbotLexComponent_div_1_div_26_Template(rf, ctx) { if (rf & 1) {
36640
36642
  i0.ɵɵelementStart(0, "div", 30)(1, "div", 31);
36641
- i0.ɵɵtemplate(2, ChatbotLexComponent_div_1_div_26_img_2_Template, 1, 0, "img", 32)(3, ChatbotLexComponent_div_1_div_26_ng_container_3_Template, 5, 1, "ng-container", 33)(4, ChatbotLexComponent_div_1_div_26_ng_template_4_Template, 7, 4, "ng-template", null, 34, i0.ɵɵtemplateRefExtractor);
36643
+ i0.ɵɵtemplate(2, ChatbotLexComponent_div_1_div_26_img_2_Template, 1, 0, "img", 32)(3, ChatbotLexComponent_div_1_div_26_ng_container_3_Template, 5, 1, "ng-container", 33)(4, ChatbotLexComponent_div_1_div_26_ng_template_4_Template, 6, 3, "ng-template", null, 34, i0.ɵɵtemplateRefExtractor)(6, ChatbotLexComponent_div_1_div_26_div_6_Template, 5, 0, "div", 35);
36642
36644
  i0.ɵɵelementEnd();
36643
- i0.ɵɵtemplate(6, ChatbotLexComponent_div_1_div_26_div_6_Template, 3, 5, "div", 35);
36645
+ i0.ɵɵtemplate(7, ChatbotLexComponent_div_1_div_26_div_7_Template, 3, 5, "div", 36);
36644
36646
  i0.ɵɵelementEnd();
36645
36647
  } if (rf & 2) {
36646
36648
  const msg_r8 = ctx.$implicit;
@@ -36653,6 +36655,8 @@ function ChatbotLexComponent_div_1_div_26_Template(rf, ctx) { if (rf & 1) {
36653
36655
  i0.ɵɵadvance(1);
36654
36656
  i0.ɵɵproperty("ngIf", msg_r8.from === "bot" && ctx_r6.isStarRatingPrompt(msg_r8.text, i_r9))("ngIfElse", _r13);
36655
36657
  i0.ɵɵadvance(3);
36658
+ i0.ɵɵproperty("ngIf", msg_r8.from === "bot" && (msg_r8.text == null ? null : msg_r8.text.trim()) != "Hi! How may I help you?" && !ctx_r6.isMessageRated(i_r9) && i_r9 === ctx_r6.messages.length - 1 && !ctx_r6.isAck);
36659
+ i0.ɵɵadvance(1);
36656
36660
  i0.ɵɵproperty("ngIf", msg_r8.timestamp);
36657
36661
  } }
36658
36662
  function ChatbotLexComponent_div_1_Template(rf, ctx) { if (rf & 1) {
@@ -36688,7 +36692,7 @@ function ChatbotLexComponent_div_1_Template(rf, ctx) { if (rf & 1) {
36688
36692
  i0.ɵɵtext(22, " \u27F3 ");
36689
36693
  i0.ɵɵelementEnd()()();
36690
36694
  i0.ɵɵelementStart(23, "div", 21)(24, "div", 22, 23);
36691
- i0.ɵɵtemplate(26, ChatbotLexComponent_div_1_div_26_Template, 7, 5, "div", 24);
36695
+ i0.ɵɵtemplate(26, ChatbotLexComponent_div_1_div_26_Template, 8, 6, "div", 24);
36692
36696
  i0.ɵɵelementEnd()();
36693
36697
  i0.ɵɵelementStart(27, "div", 25)(28, "div", 26)(29, "textarea", 27, 28);
36694
36698
  i0.ɵɵlistener("ngModelChange", function ChatbotLexComponent_div_1_Template_textarea_ngModelChange_29_listener($event) { i0.ɵɵrestoreView(_r51); const ctx_r57 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r57.userInput = $event); })("input", function ChatbotLexComponent_div_1_Template_textarea_input_29_listener() { i0.ɵɵrestoreView(_r51); const ctx_r58 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r58.autoGrow()); })("keydown.enter", function ChatbotLexComponent_div_1_Template_textarea_keydown_enter_29_listener($event) { i0.ɵɵrestoreView(_r51); const ctx_r59 = i0.ɵɵnextContext(); $event.preventDefault(); return i0.ɵɵresetView(ctx_r59.handleEnter()); });
@@ -36704,7 +36708,7 @@ function ChatbotLexComponent_div_1_Template(rf, ctx) { if (rf & 1) {
36704
36708
  i0.ɵɵadvance(3);
36705
36709
  i0.ɵɵproperty("ngIf", !ctx_r1.isExpanded);
36706
36710
  i0.ɵɵadvance(12);
36707
- i0.ɵɵclassProp("offline", !ctx_r1.isSessionActive);
36711
+ i0.ɵɵclassProp("offline", ctx_r1.botOffline);
36708
36712
  i0.ɵɵadvance(1);
36709
36713
  i0.ɵɵclassProp("online-text", !ctx_r1.botOffline)("offline-text", ctx_r1.botOffline);
36710
36714
  i0.ɵɵadvance(1);
@@ -36797,6 +36801,7 @@ class ChatbotLexComponent {
36797
36801
  url: reply?.url ?? [],
36798
36802
  timestamp: new Date()
36799
36803
  });
36804
+ console.log("ReportId Theft Response Received");
36800
36805
  this.scrollToBottom();
36801
36806
  this.cdr.detectChanges();
36802
36807
  }
@@ -36807,8 +36812,28 @@ class ChatbotLexComponent {
36807
36812
  ngOnInit() {
36808
36813
  console.log("CHATBOT ngOnItit clientFilter:", this.clientFilter);
36809
36814
  this.lexChat.chatOpen$.subscribe(open => {
36810
- if (open && !this.chatOpen) {
36815
+ if (!open) {
36816
+ this.chatOpen = false;
36817
+ this.clearIdleTimer();
36818
+ this.isIdle = false;
36819
+ this.idleRequestInFlight = false;
36820
+ this.idleDetectCount = 0;
36821
+ return;
36822
+ }
36823
+ if (!this.chatOpen) {
36824
+ // console.log("open event",open);
36825
+ // console.log("service chatID theft:", this.lexChat.chatIDtheft);
36826
+ // console.log("component chatID theft before", this.chatIDtheft);
36811
36827
  this.chatIDtheft = this.lexChat.chatIDtheft;
36828
+ //console.log("component chatID theft after:", this.chatIDtheft);
36829
+ this.isDisabled = false;
36830
+ this.botOffline = false;
36831
+ this.is_end_session = false;
36832
+ this.endedByIdleCounter = false;
36833
+ this.isAck = false;
36834
+ this.isIdle = false;
36835
+ this.idleRequestInFlight = false;
36836
+ this.idleDetectCount = 0;
36812
36837
  this.toggleChat();
36813
36838
  if (this.chatIDtheft) {
36814
36839
  this.sendReportIdTheftMessage();
@@ -36861,17 +36886,32 @@ class ChatbotLexComponent {
36861
36886
  try {
36862
36887
  console.log("CHATBOT clientfilter:", this.clientFilter);
36863
36888
  const reply = await this.lexChat.sendMessage(trimmed, this.clientFilter);
36864
- this.isAck = reply['isAck'] === 'True';
36865
- this.is_end_session = reply['is_end_session'] === 'True';
36866
- if (this.is_end_session) {
36889
+ this.isAck =
36890
+ reply['isAck'] === true ||
36891
+ String(reply['isAck']).toLowerCase() === 'true';
36892
+ this.is_end_session =
36893
+ reply['is_end_session'] === true ||
36894
+ String(reply['is_end_session']).toLowerCase() === 'true';
36895
+ const botReplyText = String(reply['content'] ?? '').trim().toLowerCase();
36896
+ const botEndedConversation = this.is_end_session ||
36897
+ botReplyText === 'bye' ||
36898
+ botReplyText === 'Bye' ||
36899
+ botReplyText.startsWith('bye') ||
36900
+ botReplyText.includes('goodbye') ||
36901
+ botReplyText.includes('have a great day');
36902
+ if (botEndedConversation) {
36903
+ this.is_end_session = true;
36867
36904
  this.endedByIdleCounter = true;
36868
36905
  this.isDisabled = true;
36869
36906
  this.botOffline = true;
36907
+ this.clearIdleTimer();
36870
36908
  }
36871
36909
  this.messages.push({ from: 'bot', text: reply['content'], url: reply['url'], timestamp: new Date() });
36872
36910
  this.scrollToBottom();
36873
36911
  this.expectingPassword = reply['isPwd'] === 'True';
36874
- this.armIdleTimerAfterBotReply();
36912
+ if (!botEndedConversation) {
36913
+ this.armIdleTimerAfterBotReply();
36914
+ }
36875
36915
  this.cdr.detectChanges();
36876
36916
  }
36877
36917
  catch (err) {
@@ -36884,11 +36924,6 @@ class ChatbotLexComponent {
36884
36924
  this.focusInput();
36885
36925
  this.idleDetectCount = 0;
36886
36926
  this.endedByIdleCounter = false;
36887
- if (this.is_end_session) {
36888
- this.endedByIdleCounter = true;
36889
- this.isDisabled = true;
36890
- this.botOffline = true;
36891
- }
36892
36927
  this.cdr.detectChanges();
36893
36928
  }
36894
36929
  }
@@ -37092,12 +37127,18 @@ class ChatbotLexComponent {
37092
37127
  }
37093
37128
  armIdleTimerAfterBotReply() {
37094
37129
  this.clearIdleTimer();
37130
+ if (!this.chatOpen || this.isDisabled) {
37131
+ return;
37132
+ }
37095
37133
  this.idleTimerId = window.setTimeout(() => {
37134
+ if (!this.chatOpen || this.isDisabled) {
37135
+ return;
37136
+ }
37096
37137
  this.ngZone.run(() => this.onIdleAfterBotReply());
37097
37138
  }, this.idleTimeoutMs);
37098
37139
  }
37099
37140
  async onIdleAfterBotReply() {
37100
- if (this.isDisabled || this.isIdle)
37141
+ if (!this.chatOpen || this.isDisabled || this.isIdle)
37101
37142
  return;
37102
37143
  this.isIdle = true;
37103
37144
  if (this.idleRequestInFlight)
@@ -37158,17 +37199,17 @@ class ChatbotLexComponent {
37158
37199
  let _t;
37159
37200
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.messageInput = _t.first);
37160
37201
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.chatWindow = _t.first);
37161
- } }, inputs: { clientFilter: "clientFilter" }, decls: 2, vars: 2, consts: [["class", "chatbot-fab", "aria-label", "Open chat", "title", "Chat with us", 3, "click", 4, "ngIf"], ["class", "chat-popup", 3, "expanded", 4, "ngIf"], ["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, "chat-popup"], [1, "chat-top-actions"], ["type", "button", "title", "Expand", 1, "top-action-btn", 3, "click"], [4, "ngIf"], ["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, "bubble"], ["class", "amelia-message-icon", "src", "assets/icon/amelia-new-icon.png", "alt", "Amelia", 4, "ngIf"], [4, "ngIf", "ngIfElse"], ["normalBubble", ""], [3, "ngClass", 4, "ngIf"], ["src", "assets/icon/amelia-new-icon.png", "alt", "Amelia", 1, "amelia-message-icon"], [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"], [1, "message-wrapper"], [1, "bubble-content"], [1, "formatted-text"], ["class", "yn-group", 4, "ngIf"], ["class", "feedback", 4, "ngIf"], [1, "yn-group"], [1, "yn-btn", "yes", 3, "click"], [1, "yn-btn", "no", 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"], [4, "ngFor", "ngForOf"], ["class", "yn-btn yes", 3, "click", 4, "ngIf"]], template: function ChatbotLexComponent_Template(rf, ctx) { if (rf & 1) {
37202
+ } }, inputs: { clientFilter: "clientFilter" }, decls: 2, vars: 2, consts: [["class", "chatbot-fab", "aria-label", "Open chat", "title", "Chat with us", 3, "click", 4, "ngIf"], ["class", "chat-popup", 3, "expanded", 4, "ngIf"], ["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, "chat-popup"], [1, "chat-top-actions"], ["type", "button", "title", "Expand", 1, "top-action-btn", 3, "click"], [4, "ngIf"], ["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, "bubble"], ["class", "amelia-message-icon", "src", "assets/icon/amelia-new-icon.png", "alt", "Amelia", 4, "ngIf"], [4, "ngIf", "ngIfElse"], ["normalBubble", ""], ["class", "feedback", 4, "ngIf"], [3, "ngClass", 4, "ngIf"], ["src", "assets/icon/amelia-new-icon.png", "alt", "Amelia", 1, "amelia-message-icon"], [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"], [1, "message-wrapper"], [1, "bubble-content"], [1, "formatted-text"], ["class", "yn-group", 4, "ngIf"], [1, "yn-group"], [1, "yn-btn", "yes", 3, "click"], [1, "yn-btn", "no", 3, "click"], [4, "ngFor", "ngForOf"], ["class", "yn-btn yes", 3, "click", 4, "ngIf"], [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) {
37162
37203
  i0.ɵɵtemplate(0, ChatbotLexComponent_button_0_Template, 2, 0, "button", 0)(1, ChatbotLexComponent_div_1_Template, 34, 17, "div", 1);
37163
37204
  } if (rf & 2) {
37164
37205
  i0.ɵɵproperty("ngIf", !ctx.chatOpen);
37165
37206
  i0.ɵɵadvance(1);
37166
37207
  i0.ɵɵproperty("ngIf", ctx.chatOpen);
37167
- } }, 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}.user[_ngcontent-%COMP%], .bot[_ngcontent-%COMP%]{margin:8px 0;display:flex}.user[_ngcontent-%COMP%]{justify-content:flex-end}.bot[_ngcontent-%COMP%]{justify-content:flex-start}.bot[_ngcontent-%COMP%], .user[_ngcontent-%COMP%]{width:100%;min-width:0;box-sizing:border-box;display:flex}.bubble[_ngcontent-%COMP%]{display:inline-block;padding:8px 12px;border-radius:14px;font-size:14px;line-height:1.3;word-wrap:break-word;position:relative}.user[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{background:#e8eaf6;color:#000;border-bottom-right-radius:4px;margin-left:auto;display:flex;justify-content:flex-end;align-self:flex-end}.chat-window[_ngcontent-%COMP%] .bot[_ngcontent-%COMP%]:first-of-type .bubble[_ngcontent-%COMP%] .feedback[_ngcontent-%COMP%]{display:none!important}.fb-btn[_ngcontent-%COMP%]{appearance:none;border:none;background:transparent;cursor:pointer;font-size:13px;line-height:1;padding:2px 4px;border-radius:4px;opacity:.9}.fb-btn[_ngcontent-%COMP%]:hover{background:#00bcd414}.fb-btn.up[_ngcontent-%COMP%]{color:#16a34a}.fb-btn.down[_ngcontent-%COMP%]{color:#dc2626}.yn-group[_ngcontent-%COMP%]{margin-top:8px}.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}.star-group[_ngcontent-%COMP%]{display:inline-flex;gap:6px;align-items:center;margin-top:7px;position:relative!important;top:12px!important}.star-group[_ngcontent-%COMP%] .star[_ngcontent-%COMP%]{appearance:none;border:none;background:transparent;cursor:pointer;font-size:18px;line-height:1;color:#444547;padding:0 1px;transition:transform .08s ease,color .08s ease}.star-group[_ngcontent-%COMP%] .star.filled[_ngcontent-%COMP%]{color:#f59e0b}.star-group[_ngcontent-%COMP%] .star[_ngcontent-%COMP%]:hover{transform:scale(1.08)}.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}.icon-label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.amelia-header-icon[_ngcontent-%COMP%]{width:56px;height:56px;border-radius:0;object-fit:contain;background:transparent;flex-shrink:0}.text-block[_ngcontent-%COMP%]{display:flex;flex-direction:column;line-height:1.1}.bubble.bot[_ngcontent-%COMP%], .bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%] .feedback-block[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;flex:1;min-width:0}.feedback-message[_ngcontent-%COMP%]{width:100%;display:block;white-space:normal;overflow-wrap:anywhere}.feedback-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;width:100%;justify-content:flex-start}.feedback-actions[_ngcontent-%COMP%] .yn-btn[_ngcontent-%COMP%]{flex:0 0 auto}.bubble-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;flex:0 1 auto;width:auto;max-width:100%;min-width:0;overflow:hidden;box-sizing:border-box}.formatted-text[_ngcontent-%COMP%]{display:block;white-space:normal;overflow-wrap:anywhere;word-break:break-word}.feedback[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-top:8px;width:100%}.yn-group[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-top:8px}.amelia-message-icon[_ngcontent-%COMP%]{width:28px;height:28px;border-radius:50%;object-fit:cover;background:#fff;flex-shrink:0;flex:0 0 auto}.chat-popup.expanded[_ngcontent-%COMP%]{width:40vw!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-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}.chat-top-actions.top-action-btn[_ngcontent-%COMP%]{color:#000!important;background:transparent!important;border:none!important;font-size:16px;font-weight:700;cursor:pointer;width:24px;height:24px;line-height:24px;padding:0;border-radius:5px 0 0}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.star-group){display:grid!important;grid-template-columns:24px 1fr!important;grid-template-rows:auto auto!important;column-gap:8px!important;row-gap:6px!important;align-items:start!important;min-width:270px!important;padding:12px!important}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.star-group) .amelia-message-icon[_ngcontent-%COMP%]{grid-column:1!important;grid-row:1 / span 2!important;margin-top:0!important}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.star-group) > div[_ngcontent-%COMP%]:first-of-type{grid-column:2!important;grid-row:1!important;white-space:no wrap!important}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.star-group) .star-group[_ngcontent-%COMP%]{grid-column:2!important;grid-row:2!important;display:flex!important;flex-direction:row!important;gap:8px!important;margin:0!important;padding:0!important;position:static!important;inset:auto!important}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.yn-group){display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;grid-template-rows:auto auto!important;column-gap:8px!important;row-gap:8px!important;align-items:start!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:10px!important;box-sizing:border-box!important;overflow:hidden!important}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.yn-group) .amelia-message-icon[_ngcontent-%COMP%]{grid-column:1!important;grid-row:1 / span 2!important}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.yn-group) .formatted-text[_ngcontent-%COMP%]{display:block!important;width:auto!important;max-width:100%!important;min-width:0!important;grid-template-columns:24px minmax(0,1fr)!important;grid-template-rows:auto auto!important;white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.yn-group) .yn-group[_ngcontent-%COMP%]{grid-column:2!important;grid-row:2!important;display:flex!important;flex-direction:row!important;gap:8px!important;margin:0!important;padding:0!important;position:static!important}.message-time[_ngcontent-%COMP%]{font-size:11px;color:#6b7280;margin-top:3px;padding:0 6px;text-align:right;white-space:nowrap}.message-time-bot[_ngcontent-%COMP%]{font-size:11px;color:#6b7280;margin-top:2px;margin-left:10px;padding:0 6px;margin-right:auto;white-space:nowrap}.message-wrapper[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column;width:max-content;max-width:78%}.bot[_ngcontent-%COMP%] .message-wrapper[_ngcontent-%COMP%]{align-items:flex-start}.user[_ngcontent-%COMP%] .message-wrapper[_ngcontent-%COMP%]{align-items:flex-end;margin-left:auto}.bot[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;width:100%;min-width:0}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{background:#fff;color:#111827;border:1px solid #e6e9ee;border-bottom-left-radius:4px;margin-bottom:4px;margin-right:auto;display:inline-flex;align-items:flex-start;width:auto;max-width:80%;min-width:0;box-sizing:border-box}.bot[_ngcontent-%COMP%] .bubble-content[_ngcontent-%COMP%]{white-space:normal;overflow-wrap:anywhere;word-break:break-word;min-width:0;width:auto;min-width:220px;max-width:280px;box-sizing:border-box;display:inline-block}.bot[_ngcontent-%COMP%] .formatted-text[_ngcontent-%COMP%]{display:inline;white-space:normal;overflow-wrap:anywhere;word-break:break-word}.user[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end}.user[_ngcontent-%COMP%] .bubble-content[_ngcontent-%COMP%]{min-width:unset;max-width:280px;width:max-content;text-align:right;white-space:normal;display:inline-block}.user[_ngcontent-%COMP%] .formatted-text[_ngcontent-%COMP%]{white-space:nowrap;word-break:normal;overflow-wrap:normal}.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}@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}}"] }); }
37208
+ } }, 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[_ngcontent-%COMP%]:not(.expanded) .message-wrapper[_ngcontent-%COMP%]{max-width:85%!important}.chat-popup.expanded[_ngcontent-%COMP%] .bot[_ngcontent-%COMP%] .message-wrapper[_ngcontent-%COMP%]{width:100%!important;max-width:100%!important;min-width:0!important}.chat-popup.expanded[_ngcontent-%COMP%] .user[_ngcontent-%COMP%] .message-wrapper[_ngcontent-%COMP%]{width:-moz-fit-content!important;width:fit-content!important;max-width:70%!important;min-width:0!important}.chat-popup.expanded[_ngcontent-%COMP%] .bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{width:-moz-fit-content!important;width:fit-content!important;max-width:85%!important;min-width:0!important;align-self:flex-start!important;box-sizing:border-box!important}.chat-popup.expanded[_ngcontent-%COMP%] .bot[_ngcontent-%COMP%] .bubble.bubble[_ngcontent-%COMP%]:has(.star-group){width:300px!important;max-width:85%!important;min-width:0!important;align-self:flex-start!important;box-sizing:border-box!important}.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}.user[_ngcontent-%COMP%], .bot[_ngcontent-%COMP%]{margin:8px 0;display:flex;width:100%;min-width:0;box-sizing:border-box}.user[_ngcontent-%COMP%]{justify-content:flex-end}.bot[_ngcontent-%COMP%]{justify-content:flex-start}.bot[_ngcontent-%COMP%], .user[_ngcontent-%COMP%]{width:100%;min-width:0;box-sizing:border-box;display:flex}.bubble[_ngcontent-%COMP%]{display:inline-block;padding:8px 12px;border-radius:14px;font-size:14px;line-height:1.3;word-wrap:break-word;position:relative}.user[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{background:#e8eaf6;color:#000;border-bottom-right-radius:4px;margin-left:auto;display:flex;justify-content:flex-end;align-self:flex-end}.chat-window[_ngcontent-%COMP%] .bot[_ngcontent-%COMP%]:first-of-type .bubble[_ngcontent-%COMP%] .feedback[_ngcontent-%COMP%]{display:none!important}.fb-btn[_ngcontent-%COMP%]{appearance:none;border:none;background:transparent;cursor:pointer;font-size:13px;line-height:1;padding:2px 4px;border-radius:4px;opacity:.9}.fb-btn[_ngcontent-%COMP%]:hover{background:#00bcd414}.fb-btn.up[_ngcontent-%COMP%]{color:#16a34a}.fb-btn.down[_ngcontent-%COMP%]{color:#dc2626}.yn-group[_ngcontent-%COMP%]{margin-top:8px}.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}.star-group[_ngcontent-%COMP%]{display:inline-flex;gap:6px;align-items:center;vertical-align:middle;margin-left:2px;margin-top:2px}.star-group[_ngcontent-%COMP%] .star[_ngcontent-%COMP%]{appearance:none;border:none;background:transparent;cursor:pointer;font-size:18px;line-height:1;color:#444547;padding:0 1px;transition:transform .08s ease,color .08s ease}.star-group[_ngcontent-%COMP%] .star.filled[_ngcontent-%COMP%]{color:#f59e0b}.star-group[_ngcontent-%COMP%] .star[_ngcontent-%COMP%]:hover{transform:scale(1.08)}.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}.icon-label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.amelia-header-icon[_ngcontent-%COMP%]{width:56px;height:56px;border-radius:0;object-fit:contain;background:transparent;flex-shrink:0}.text-block[_ngcontent-%COMP%]{display:flex;flex-direction:column;line-height:1.1}.bubble.bot[_ngcontent-%COMP%], .bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%] .feedback-block[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;flex:1;min-width:0}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%] .feedback[_ngcontent-%COMP%]{position:absolute;right:0;bottom:-24px;display:inline-flex;gap:6px;align-items:center;width:auto;margin:0}.feedback-message[_ngcontent-%COMP%]{width:100%;display:block;white-space:normal;overflow-wrap:anywhere}.feedback-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;width:100%;justify-content:flex-start}.feedback-actions[_ngcontent-%COMP%] .yn-btn[_ngcontent-%COMP%]{flex:0 0 auto}.bot[_ngcontent-%COMP%] .feedback[_ngcontent-%COMP%] .fb-btn[_ngcontent-%COMP%]{border:none;background:transparent;padding:2px;margin:0;cursor:pointer;flex:0 0 auto}.bubble-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;flex:0 1 auto;width:auto;max-width:100%;min-width:0;overflow:hidden;box-sizing:border-box}.formatted-text[_ngcontent-%COMP%]{display:block;white-space:normal;overflow-wrap:anywhere;word-break:break-word;box-sizing:border-box}.feedback[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-top:8px;width:100%}.yn-group[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-top:8px}.amelia-message-icon[_ngcontent-%COMP%]{width:28px;height:28px;border-radius:50%;object-fit:cover;background:#fff;flex-shrink:0;flex:0 0 auto}.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}.chat-top-actions.top-action-btn[_ngcontent-%COMP%]{color:#000!important;background:transparent!important;border:none!important;font-size:16px;font-weight:700;cursor:pointer;width:24px;height:24px;line-height:24px;padding:0;border-radius:5px 0 0}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.star-group){display:grid!important;grid-template-columns:32px max-content!important;grid-template-rows:auto auto!important;column-gap:8px!important;row-gap:6px!important;align-items:start!important;padding:12px!important;box-sizing:border-box!important;overflow:visible!important;width:300px!important;min-width:0!important;max-width:calc(100% - 24px)!important}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.star-group) .amelia-message-icon[_ngcontent-%COMP%]{grid-column:1!important;grid-row:1 / span 2!important;margin-top:0!important}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.star-group) > div[_ngcontent-%COMP%]:first-of-type{grid-column:2!important;grid-row:1!important;white-space:nowrap!important;min-width:0}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.star-group) .star-group[_ngcontent-%COMP%]{grid-column:2!important;grid-row:2!important;display:flex!important;flex-direction:row!important;gap:8px!important;margin:0!important;padding:0!important;position:static!important;inset:auto!important}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.yn-group){display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;grid-template-rows:auto auto!important;column-gap:8px!important;row-gap:8px!important;align-items:start!important;width:-moz-fit-content!important;width:fit-content!important;max-width:100%!important;min-width:0!important;padding:10px!important;box-sizing:border-box!important;overflow:hidden!important}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.yn-group) .amelia-message-icon[_ngcontent-%COMP%]{grid-column:1!important;grid-row:1 / span 2!important}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.yn-group) .formatted-text[_ngcontent-%COMP%]{display:block!important;width:auto!important;max-width:100%!important;min-width:0!important;grid-column:2!important;grid-row:1!important;white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.yn-group) .yn-group[_ngcontent-%COMP%]{grid-column:2!important;grid-row:2!important;display:flex!important;flex-direction:row!important;gap:8px!important;margin:0!important;padding:0!important;position:static!important}.message-time[_ngcontent-%COMP%]{font-size:11px;color:#6b7280;margin-top:3px;padding:0 6px;text-align:right;white-space:nowrap}.message-time-bot[_ngcontent-%COMP%]{font-size:11px;color:#6b7280;margin-left:10px;padding:0 6px;margin-right:auto;white-space:nowrap}.message-wrapper[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column;width:max-content;max-width:78%}.bot[_ngcontent-%COMP%] .message-wrapper[_ngcontent-%COMP%]{align-items:flex-start}.user[_ngcontent-%COMP%] .message-wrapper[_ngcontent-%COMP%]{align-items:flex-end;margin-left:auto}.bot[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;width:-moz-fit-content;width:fit-content;max-width:85%;min-width:0}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{background:#fff;color:#111827;border:1px solid #e6e9ee;border-bottom-left-radius:4px;margin-bottom:30px;margin-right:auto;display:inline-flex;align-items:flex-start;width:-moz-fit-content!important;width:fit-content!important;max-width:100%!important;min-width:0;box-sizing:border-box;overflow:visible!important;position:relative}.bot[_ngcontent-%COMP%] .bubble-content[_ngcontent-%COMP%]{min-width:0;width:auto;max-width:none;box-sizing:border-box;display:inline}.bot[_ngcontent-%COMP%] .message-time-bot[_ngcontent-%COMP%]{width:0;min-width:0;white-space:nowrap;overflow:visible;align-self:flex-start;text-align:left;margin-top:-26px;margin-left:0}.user[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end;width:100%;min-width:0}.user[_ngcontent-%COMP%] .bubble-content[_ngcontent-%COMP%]{width:auto;min-width:0;max-width:280px;width:max-content;text-align:left;white-space:normal;display:inline-block;overflow-wrap:break-word;box-sizing:border-box;word-break:normal}.user[_ngcontent-%COMP%] .formatted-text[_ngcontent-%COMP%]{white-space:normal;word-break:normal;overflow-wrap:break-word;max-width:100%}.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}@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}}"] }); }
37168
37209
  }
37169
37210
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ChatbotLexComponent, [{
37170
37211
  type: Component,
37171
- args: [{ selector: 'app-chatbot-lex', template: "\r\n\r\n\r\n<!-- Floating chat toggle button -->\r\n<button\r\n class=\"chatbot-fab\"\r\n (click)=\"toggleChat()\"\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<!-- 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)=\"toggleChat()\" \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]=\"!isSessionActive\">\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 *ngFor=\"let msg of messages; let i = index\" [ngClass]=\"msg.from\">\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 <!-- Star rating prompt -->\r\n <ng-container *ngIf=\"msg.from === 'bot' && isStarRatingPrompt(msg.text, i); else normalBubble\">\r\n <div>Your feedback matters to us</div>\r\n <div class=\"star-group\" (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 </div>\r\n </ng-container>\r\n\r\n <!-- Normal bubble -->\r\n <ng-template #normalBubble>\r\n <div class=\"message-wrapper\">\r\n <div class=\"bubble-content\">\r\n <span class=\"formatted-text\">{{ displayText(msg.text) }}</span>\r\n \r\n \r\n\r\n <!-- Yes/No buttons -->\r\n <div class=\"yn-group\" *ngIf=\"msg.from === 'bot' && isYesNoPrompt(msg.text, i)\">\r\n <button class=\"yn-btn yes\" (click)=\"onYesNoClick('Yes', i)\">Yes</button>\r\n <button class=\"yn-btn no\" (click)=\"onYesNoClick('No', i)\">No</button>\r\n </div>\r\n\r\n <!-- Feedback thumbs -->\r\n <div\r\n class=\"feedback\"\r\n *ngIf=\"msg.from === 'bot'\r\n && !isMessageRated(i)\r\n && i === messages.length - 1\r\n && !isAck\">\r\n <button class=\"fb-btn up\" (click)=\"sendFeedback('Thumbs up', i)\" aria-label=\"Thumbs up\" title=\"Thumbs up\">\uD83D\uDC4D</button>\r\n <button class=\"fb-btn down\" (click)=\"sendFeedback('Thumbs down', i)\" aria-label=\"Thumbs down\" title=\"Thumbs down\">\uD83D\uDC4E</button>\r\n </div>\r\n\r\n <!-- Links -->\r\n <div *ngIf=\"msg.url && msg.url.length\">\r\n <div *ngFor=\"let url of msg.url\">\r\n <button *ngIf=\"msg.from === 'bot'\" class=\"yn-btn yes\" (click)=\"openLink(url)\">{{url}}</button>\r\n </div>\r\n </div>\r\n </div> <!--closes bubble content -->\r\n \r\n </div>\r\n </ng-template>\r\n </div> <!--closes bubble --> \r\n <div\r\n *ngIf=\"msg.timestamp\"\r\n [ngClass]=\"msg.from === 'bot' ? 'message-time-bot' : 'message-time'\">\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\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}.user,.bot{margin:8px 0;display:flex}.user{justify-content:flex-end}.bot{justify-content:flex-start}.bot,.user{width:100%;min-width:0;box-sizing:border-box;display:flex}.bubble{display:inline-block;padding:8px 12px;border-radius:14px;font-size:14px;line-height:1.3;word-wrap:break-word;position:relative}.user .bubble{background:#e8eaf6;color:#000;border-bottom-right-radius:4px;margin-left:auto;display:flex;justify-content:flex-end;align-self:flex-end}.chat-window .bot:first-of-type .bubble .feedback{display:none!important}.fb-btn{appearance:none;border:none;background:transparent;cursor:pointer;font-size:13px;line-height:1;padding:2px 4px;border-radius:4px;opacity:.9}.fb-btn:hover{background:#00bcd414}.fb-btn.up{color:#16a34a}.fb-btn.down{color:#dc2626}.yn-group{margin-top:8px}.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}.star-group{display:inline-flex;gap:6px;align-items:center;margin-top:7px;position:relative!important;top:12px!important}.star-group .star{appearance:none;border:none;background:transparent;cursor:pointer;font-size:18px;line-height:1;color:#444547;padding:0 1px;transition:transform .08s ease,color .08s ease}.star-group .star.filled{color:#f59e0b}.star-group .star:hover{transform:scale(1.08)}.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}.icon-label{display:flex;align-items:center;gap:8px}.amelia-header-icon{width:56px;height:56px;border-radius:0;object-fit:contain;background:transparent;flex-shrink:0}.text-block{display:flex;flex-direction:column;line-height:1.1}.bubble.bot,.bot .bubble{display:flex;align-items:flex-start;gap:8px}.bot .bubble .feedback-block{display:flex;flex-direction:column;align-items:flex-start;flex:1;min-width:0}.feedback-message{width:100%;display:block;white-space:normal;overflow-wrap:anywhere}.feedback-actions{display:flex;align-items:center;gap:8px;width:100%;justify-content:flex-start}.feedback-actions .yn-btn{flex:0 0 auto}.bubble-content{display:flex;flex-direction:column;align-items:flex-start;flex:0 1 auto;width:auto;max-width:100%;min-width:0;overflow:hidden;box-sizing:border-box}.formatted-text{display:block;white-space:normal;overflow-wrap:anywhere;word-break:break-word}.feedback{display:flex;align-items:center;gap:8px;margin-top:8px;width:100%}.yn-group{display:flex;align-items:center;gap:8px;margin-top:8px}.amelia-message-icon{width:28px;height:28px;border-radius:50%;object-fit:cover;background:#fff;flex-shrink:0;flex:0 0 auto}.chat-popup.expanded{width:40vw!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-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}.chat-top-actions.top-action-btn{color:#000!important;background:transparent!important;border:none!important;font-size:16px;font-weight:700;cursor:pointer;width:24px;height:24px;line-height:24px;padding:0;border-radius:5px 0 0}.bot .bubble:has(.star-group){display:grid!important;grid-template-columns:24px 1fr!important;grid-template-rows:auto auto!important;column-gap:8px!important;row-gap:6px!important;align-items:start!important;min-width:270px!important;padding:12px!important}.bot .bubble:has(.star-group) .amelia-message-icon{grid-column:1!important;grid-row:1 / span 2!important;margin-top:0!important}.bot .bubble:has(.star-group)>div:first-of-type{grid-column:2!important;grid-row:1!important;white-space:no wrap!important}.bot .bubble:has(.star-group) .star-group{grid-column:2!important;grid-row:2!important;display:flex!important;flex-direction:row!important;gap:8px!important;margin:0!important;padding:0!important;position:static!important;inset:auto!important}.bot .bubble:has(.yn-group){display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;grid-template-rows:auto auto!important;column-gap:8px!important;row-gap:8px!important;align-items:start!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:10px!important;box-sizing:border-box!important;overflow:hidden!important}.bot .bubble:has(.yn-group) .amelia-message-icon{grid-column:1!important;grid-row:1 / span 2!important}.bot .bubble:has(.yn-group) .formatted-text{display:block!important;width:auto!important;max-width:100%!important;min-width:0!important;grid-template-columns:24px minmax(0,1fr)!important;grid-template-rows:auto auto!important;white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important}.bot .bubble:has(.yn-group) .yn-group{grid-column:2!important;grid-row:2!important;display:flex!important;flex-direction:row!important;gap:8px!important;margin:0!important;padding:0!important;position:static!important}.message-time{font-size:11px;color:#6b7280;margin-top:3px;padding:0 6px;text-align:right;white-space:nowrap}.message-time-bot{font-size:11px;color:#6b7280;margin-top:2px;margin-left:10px;padding:0 6px;margin-right:auto;white-space:nowrap}.message-wrapper{display:inline-flex;flex-direction:column;width:max-content;max-width:78%}.bot .message-wrapper{align-items:flex-start}.user .message-wrapper{align-items:flex-end;margin-left:auto}.bot{display:flex;flex-direction:column;align-items:flex-start;width:100%;min-width:0}.bot .bubble{background:#fff;color:#111827;border:1px solid #e6e9ee;border-bottom-left-radius:4px;margin-bottom:4px;margin-right:auto;display:inline-flex;align-items:flex-start;width:auto;max-width:80%;min-width:0;box-sizing:border-box}.bot .bubble-content{white-space:normal;overflow-wrap:anywhere;word-break:break-word;min-width:0;width:auto;min-width:220px;max-width:280px;box-sizing:border-box;display:inline-block}.bot .formatted-text{display:inline;white-space:normal;overflow-wrap:anywhere;word-break:break-word}.user{display:flex;flex-direction:column;align-items:flex-end}.user .bubble-content{min-width:unset;max-width:280px;width:max-content;text-align:right;white-space:normal;display:inline-block}.user .formatted-text{white-space:nowrap;word-break:normal;overflow-wrap:normal}.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}@media (max-width: 480px){.chat-popup{width:calc(100vw - 16px);right:8px;bottom:8px;height:70vh}.bubble{max-width:90%;font-size:13px}}\n"] }]
37212
+ args: [{ selector: 'app-chatbot-lex', template: "\r\n\r\n\r\n<!-- Floating chat toggle button -->\r\n<button\r\n class=\"chatbot-fab\"\r\n (click)=\"toggleChat()\"\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<!-- 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)=\"toggleChat()\" \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 *ngFor=\"let msg of messages; let i = index\" [ngClass]=\"msg.from\">\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 <!-- Star rating prompt -->\r\n <ng-container *ngIf=\"msg.from === 'bot' && isStarRatingPrompt(msg.text, i); else normalBubble\">\r\n <div>Your feedback matters to us</div>\r\n <div class=\"star-group\" (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 </div>\r\n </ng-container>\r\n\r\n <!-- Normal bubble -->\r\n <ng-template #normalBubble>\r\n <div class=\"message-wrapper\">\r\n <div class=\"bubble-content\">\r\n <span class=\"formatted-text\">{{ displayText(msg.text) }}</span>\r\n \r\n \r\n\r\n <!-- Yes/No buttons -->\r\n <div class=\"yn-group\" *ngIf=\"msg.from === 'bot' && isYesNoPrompt(msg.text, i)\">\r\n <button class=\"yn-btn yes\" (click)=\"onYesNoClick('Yes', i)\">Yes</button>\r\n <button class=\"yn-btn no\" (click)=\"onYesNoClick('No', i)\">No</button>\r\n </div>\r\n\r\n \r\n \r\n\r\n <!-- Links -->\r\n <div *ngIf=\"msg.url && msg.url.length\">\r\n <div *ngFor=\"let url of msg.url\">\r\n <button *ngIf=\"msg.from === 'bot'\" class=\"yn-btn yes\" (click)=\"openLink(url)\">{{url}}</button>\r\n </div>\r\n </div>\r\n </div> <!--closes bubble content -->\r\n \r\n </div>\r\n </ng-template>\r\n \r\n <!-- Feedback thumbs -->\r\n <div\r\n class=\"feedback\"\r\n *ngIf=\"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 class=\"fb-btn up\" (click)=\"sendFeedback('Thumbs up', i)\" aria-label=\"Thumbs up\" title=\"Thumbs up\">\uD83D\uDC4D</button>\r\n <button class=\"fb-btn down\" (click)=\"sendFeedback('Thumbs down', i)\" aria-label=\"Thumbs down\" title=\"Thumbs down\">\uD83D\uDC4E</button>\r\n </div>\r\n </div> <!--closes bubble --> \r\n <div\r\n *ngIf=\"msg.timestamp\"\r\n [ngClass]=\"msg.from === 'bot' ? 'message-time-bot' : 'message-time'\">\r\n {{msg.timestamp | date:\"EEE MMM dd yyyy 'at' hh:mm:ss a\"}}\r\n </div>\r\n \r\n \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:not(.expanded) .message-wrapper{max-width:85%!important}.chat-popup.expanded .bot .message-wrapper{width:100%!important;max-width:100%!important;min-width:0!important}.chat-popup.expanded .user .message-wrapper{width:-moz-fit-content!important;width:fit-content!important;max-width:70%!important;min-width:0!important}.chat-popup.expanded .bot .bubble{width:-moz-fit-content!important;width:fit-content!important;max-width:85%!important;min-width:0!important;align-self:flex-start!important;box-sizing:border-box!important}.chat-popup.expanded .bot .bubble.bubble:has(.star-group){width:300px!important;max-width:85%!important;min-width:0!important;align-self:flex-start!important;box-sizing:border-box!important}.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}.user,.bot{margin:8px 0;display:flex;width:100%;min-width:0;box-sizing:border-box}.user{justify-content:flex-end}.bot{justify-content:flex-start}.bot,.user{width:100%;min-width:0;box-sizing:border-box;display:flex}.bubble{display:inline-block;padding:8px 12px;border-radius:14px;font-size:14px;line-height:1.3;word-wrap:break-word;position:relative}.user .bubble{background:#e8eaf6;color:#000;border-bottom-right-radius:4px;margin-left:auto;display:flex;justify-content:flex-end;align-self:flex-end}.chat-window .bot:first-of-type .bubble .feedback{display:none!important}.fb-btn{appearance:none;border:none;background:transparent;cursor:pointer;font-size:13px;line-height:1;padding:2px 4px;border-radius:4px;opacity:.9}.fb-btn:hover{background:#00bcd414}.fb-btn.up{color:#16a34a}.fb-btn.down{color:#dc2626}.yn-group{margin-top:8px}.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}.star-group{display:inline-flex;gap:6px;align-items:center;vertical-align:middle;margin-left:2px;margin-top:2px}.star-group .star{appearance:none;border:none;background:transparent;cursor:pointer;font-size:18px;line-height:1;color:#444547;padding:0 1px;transition:transform .08s ease,color .08s ease}.star-group .star.filled{color:#f59e0b}.star-group .star:hover{transform:scale(1.08)}.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}.icon-label{display:flex;align-items:center;gap:8px}.amelia-header-icon{width:56px;height:56px;border-radius:0;object-fit:contain;background:transparent;flex-shrink:0}.text-block{display:flex;flex-direction:column;line-height:1.1}.bubble.bot,.bot .bubble{display:flex;align-items:flex-start;gap:8px}.bot .bubble .feedback-block{display:flex;flex-direction:column;align-items:flex-start;flex:1;min-width:0}.bot .bubble .feedback{position:absolute;right:0;bottom:-24px;display:inline-flex;gap:6px;align-items:center;width:auto;margin:0}.feedback-message{width:100%;display:block;white-space:normal;overflow-wrap:anywhere}.feedback-actions{display:flex;align-items:center;gap:8px;width:100%;justify-content:flex-start}.feedback-actions .yn-btn{flex:0 0 auto}.bot .feedback .fb-btn{border:none;background:transparent;padding:2px;margin:0;cursor:pointer;flex:0 0 auto}.bubble-content{display:flex;flex-direction:column;align-items:flex-start;flex:0 1 auto;width:auto;max-width:100%;min-width:0;overflow:hidden;box-sizing:border-box}.formatted-text{display:block;white-space:normal;overflow-wrap:anywhere;word-break:break-word;box-sizing:border-box}.feedback{display:flex;align-items:center;gap:8px;margin-top:8px;width:100%}.yn-group{display:flex;align-items:center;gap:8px;margin-top:8px}.amelia-message-icon{width:28px;height:28px;border-radius:50%;object-fit:cover;background:#fff;flex-shrink:0;flex:0 0 auto}.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}.chat-top-actions.top-action-btn{color:#000!important;background:transparent!important;border:none!important;font-size:16px;font-weight:700;cursor:pointer;width:24px;height:24px;line-height:24px;padding:0;border-radius:5px 0 0}.bot .bubble:has(.star-group){display:grid!important;grid-template-columns:32px max-content!important;grid-template-rows:auto auto!important;column-gap:8px!important;row-gap:6px!important;align-items:start!important;padding:12px!important;box-sizing:border-box!important;overflow:visible!important;width:300px!important;min-width:0!important;max-width:calc(100% - 24px)!important}.bot .bubble:has(.star-group) .amelia-message-icon{grid-column:1!important;grid-row:1 / span 2!important;margin-top:0!important}.bot .bubble:has(.star-group)>div:first-of-type{grid-column:2!important;grid-row:1!important;white-space:nowrap!important;min-width:0}.bot .bubble:has(.star-group) .star-group{grid-column:2!important;grid-row:2!important;display:flex!important;flex-direction:row!important;gap:8px!important;margin:0!important;padding:0!important;position:static!important;inset:auto!important}.bot .bubble:has(.yn-group){display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;grid-template-rows:auto auto!important;column-gap:8px!important;row-gap:8px!important;align-items:start!important;width:-moz-fit-content!important;width:fit-content!important;max-width:100%!important;min-width:0!important;padding:10px!important;box-sizing:border-box!important;overflow:hidden!important}.bot .bubble:has(.yn-group) .amelia-message-icon{grid-column:1!important;grid-row:1 / span 2!important}.bot .bubble:has(.yn-group) .formatted-text{display:block!important;width:auto!important;max-width:100%!important;min-width:0!important;grid-column:2!important;grid-row:1!important;white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important}.bot .bubble:has(.yn-group) .yn-group{grid-column:2!important;grid-row:2!important;display:flex!important;flex-direction:row!important;gap:8px!important;margin:0!important;padding:0!important;position:static!important}.message-time{font-size:11px;color:#6b7280;margin-top:3px;padding:0 6px;text-align:right;white-space:nowrap}.message-time-bot{font-size:11px;color:#6b7280;margin-left:10px;padding:0 6px;margin-right:auto;white-space:nowrap}.message-wrapper{display:inline-flex;flex-direction:column;width:max-content;max-width:78%}.bot .message-wrapper{align-items:flex-start}.user .message-wrapper{align-items:flex-end;margin-left:auto}.bot{display:flex;flex-direction:column;align-items:flex-start;width:-moz-fit-content;width:fit-content;max-width:85%;min-width:0}.bot .bubble{background:#fff;color:#111827;border:1px solid #e6e9ee;border-bottom-left-radius:4px;margin-bottom:30px;margin-right:auto;display:inline-flex;align-items:flex-start;width:-moz-fit-content!important;width:fit-content!important;max-width:100%!important;min-width:0;box-sizing:border-box;overflow:visible!important;position:relative}.bot .bubble-content{min-width:0;width:auto;max-width:none;box-sizing:border-box;display:inline}.bot .message-time-bot{width:0;min-width:0;white-space:nowrap;overflow:visible;align-self:flex-start;text-align:left;margin-top:-26px;margin-left:0}.user{display:flex;flex-direction:column;align-items:flex-end;width:100%;min-width:0}.user .bubble-content{width:auto;min-width:0;max-width:280px;width:max-content;text-align:left;white-space:normal;display:inline-block;overflow-wrap:break-word;box-sizing:border-box;word-break:normal}.user .formatted-text{white-space:normal;word-break:normal;overflow-wrap:break-word;max-width:100%}.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}@media (max-width: 480px){.chat-popup{width:calc(100vw - 16px);right:8px;bottom:8px;height:70vh}.bubble{max-width:90%;font-size:13px}}\n"] }]
37172
37213
  }], () => [{ type: LexChatService }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }], { clientFilter: [{
37173
37214
  type: Input
37174
37215
  }], messageInput: [{