@ksremp/ngx-ksremp-app-lib 1.0.44 → 1.0.45
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.
- package/esm2022/lib/components/chatbot-lex/chatbot-lex.component.mjs +249 -96
- package/esm2022/lib/services/lex-chat/lex-chat.service.mjs +10 -2
- package/esm2022/lib/services/login/login.service.mjs +5 -2
- package/fesm2022/ksremp-ngx-ksremp-app-lib.mjs +258 -95
- package/fesm2022/ksremp-ngx-ksremp-app-lib.mjs.map +1 -1
- package/lib/components/chatbot-lex/chatbot-lex.component.d.ts +14 -1
- package/lib/components/chatbot-lex/chatbot-lex.component.d.ts.map +1 -1
- package/lib/services/lex-chat/lex-chat.service.d.ts.map +1 -1
- package/lib/services/login/login.service.d.ts +2 -0
- package/lib/services/login/login.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -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,
|
|
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');
|
|
@@ -10405,6 +10408,11 @@ class LexChatService {
|
|
|
10405
10408
|
/** Emit true to open the chatbot popup from anywhere */
|
|
10406
10409
|
this.chatOpen$ = new BehaviorSubject(false);
|
|
10407
10410
|
this.sessionId = this.generateSessionId();
|
|
10411
|
+
this.loginService.sessionCleared$.subscribe(() => {
|
|
10412
|
+
this.clearAuthenticatedUser();
|
|
10413
|
+
this.resetSession({ regenerateSessionId: true });
|
|
10414
|
+
this.chatOpen$.next(false);
|
|
10415
|
+
});
|
|
10408
10416
|
}
|
|
10409
10417
|
generateSessionId() {
|
|
10410
10418
|
if (typeof crypto !== 'undefined' && 'randomUUID' in crypto) {
|
|
@@ -10428,6 +10436,7 @@ class LexChatService {
|
|
|
10428
10436
|
clearAuthenticatedUser() {
|
|
10429
10437
|
this.authenticatedUsername = '';
|
|
10430
10438
|
this.authenticatedAuthToken = '';
|
|
10439
|
+
this.sessionAttributes = {};
|
|
10431
10440
|
}
|
|
10432
10441
|
async sendMessage(text, clientFilter) {
|
|
10433
10442
|
const headers = new HttpHeaders({ 'Content-Type': 'application/json' });
|
|
@@ -10445,6 +10454,7 @@ class LexChatService {
|
|
|
10445
10454
|
if (loggedInUsername) {
|
|
10446
10455
|
mergedSessionAttrs['userLoggedIn'] = 'true';
|
|
10447
10456
|
mergedSessionAttrs['authToken'] = this.authenticatedAuthToken || 'authToken';
|
|
10457
|
+
delete mergedSessionAttrs['loginRequired'];
|
|
10448
10458
|
}
|
|
10449
10459
|
if (clientFilter && clientFilter.trim()) {
|
|
10450
10460
|
mergedSessionAttrs['QNAClientFilter'] = clientFilter.trim();
|
|
@@ -10474,7 +10484,8 @@ class LexChatService {
|
|
|
10474
10484
|
url: messages[0]?.url ?? [],
|
|
10475
10485
|
isPwd: this.sessionAttributes['isPwd'] ?? '',
|
|
10476
10486
|
isAck: this.sessionAttributes['isAck'] ?? '',
|
|
10477
|
-
is_end_session: this.sessionAttributes['end_session'] ?? ''
|
|
10487
|
+
is_end_session: this.sessionAttributes['end_session'] ?? '',
|
|
10488
|
+
loginREquired: this.sessionAttributes['loginREquired'] ?? ''
|
|
10478
10489
|
};
|
|
10479
10490
|
}
|
|
10480
10491
|
catch (err) {
|
|
@@ -36585,37 +36596,37 @@ function ChatbotLexComponent_div_2_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
36585
36596
|
i0.ɵɵelementEnd();
|
|
36586
36597
|
} }
|
|
36587
36598
|
function ChatbotLexComponent_div_2_div_26_img_3_Template(rf, ctx) { if (rf & 1) {
|
|
36588
|
-
i0.ɵɵelement(0, "img",
|
|
36599
|
+
i0.ɵɵelement(0, "img", 47);
|
|
36589
36600
|
} }
|
|
36590
36601
|
function ChatbotLexComponent_div_2_div_26_ng_container_5_button_4_Template(rf, ctx) { if (rf & 1) {
|
|
36591
|
-
const
|
|
36592
|
-
i0.ɵɵelementStart(0, "button",
|
|
36593
|
-
i0.ɵɵlistener("mouseenter", function ChatbotLexComponent_div_2_div_26_ng_container_5_button_4_Template_button_mouseenter_0_listener() { const restoredCtx = i0.ɵɵrestoreView(
|
|
36602
|
+
const _r27 = i0.ɵɵgetCurrentView();
|
|
36603
|
+
i0.ɵɵelementStart(0, "button", 51);
|
|
36604
|
+
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
36605
|
i0.ɵɵtext(1, " \u2605 ");
|
|
36595
36606
|
i0.ɵɵelementEnd();
|
|
36596
36607
|
} if (rf & 2) {
|
|
36597
|
-
const
|
|
36598
|
-
const
|
|
36599
|
-
const
|
|
36600
|
-
i0.ɵɵclassProp("filled",
|
|
36601
|
-
i0.ɵɵpropertyInterpolate1("title", "Rate ",
|
|
36602
|
-
i0.ɵɵattribute("aria-label", "Rate " +
|
|
36608
|
+
const s_r24 = ctx.$implicit;
|
|
36609
|
+
const i_r16 = i0.ɵɵnextContext(2).index;
|
|
36610
|
+
const ctx_r23 = i0.ɵɵnextContext(2);
|
|
36611
|
+
i0.ɵɵclassProp("filled", ctx_r23.isStarFilled(i_r16, s_r24));
|
|
36612
|
+
i0.ɵɵpropertyInterpolate1("title", "Rate ", s_r24, " star(s)");
|
|
36613
|
+
i0.ɵɵattribute("aria-label", "Rate " + s_r24 + " star(s)");
|
|
36603
36614
|
} }
|
|
36604
36615
|
function ChatbotLexComponent_div_2_div_26_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
36605
|
-
const
|
|
36616
|
+
const _r33 = i0.ɵɵgetCurrentView();
|
|
36606
36617
|
i0.ɵɵelementContainerStart(0);
|
|
36607
|
-
i0.ɵɵelementStart(1, "span",
|
|
36618
|
+
i0.ɵɵelementStart(1, "span", 48);
|
|
36608
36619
|
i0.ɵɵtext(2, " Your feedback matters to us ");
|
|
36609
36620
|
i0.ɵɵelementEnd();
|
|
36610
|
-
i0.ɵɵelementStart(3, "div",
|
|
36611
|
-
i0.ɵɵlistener("mouseleave", function ChatbotLexComponent_div_2_div_26_ng_container_5_Template_div_mouseleave_3_listener() { i0.ɵɵrestoreView(
|
|
36612
|
-
i0.ɵɵtemplate(4, ChatbotLexComponent_div_2_div_26_ng_container_5_button_4_Template, 2, 4, "button",
|
|
36621
|
+
i0.ɵɵelementStart(3, "div", 49);
|
|
36622
|
+
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)); });
|
|
36623
|
+
i0.ɵɵtemplate(4, ChatbotLexComponent_div_2_div_26_ng_container_5_button_4_Template, 2, 4, "button", 50);
|
|
36613
36624
|
i0.ɵɵelementEnd();
|
|
36614
36625
|
i0.ɵɵelementContainerEnd();
|
|
36615
36626
|
} if (rf & 2) {
|
|
36616
|
-
const
|
|
36627
|
+
const ctx_r18 = i0.ɵɵnextContext(3);
|
|
36617
36628
|
i0.ɵɵadvance(4);
|
|
36618
|
-
i0.ɵɵproperty("ngForOf",
|
|
36629
|
+
i0.ɵɵproperty("ngForOf", ctx_r18.getStars());
|
|
36619
36630
|
} }
|
|
36620
36631
|
function ChatbotLexComponent_div_2_div_26_ng_template_6_ng_container_1_br_2_Template(rf, ctx) { if (rf & 1) {
|
|
36621
36632
|
i0.ɵɵelement(0, "br");
|
|
@@ -36626,121 +36637,141 @@ function ChatbotLexComponent_div_2_div_26_ng_template_6_ng_container_1_Template(
|
|
|
36626
36637
|
i0.ɵɵtemplate(2, ChatbotLexComponent_div_2_div_26_ng_template_6_ng_container_1_br_2_Template, 1, 0, "br", 8);
|
|
36627
36638
|
i0.ɵɵelementContainerEnd();
|
|
36628
36639
|
} if (rf & 2) {
|
|
36629
|
-
const
|
|
36630
|
-
const
|
|
36640
|
+
const line_r37 = ctx.$implicit;
|
|
36641
|
+
const last_r38 = ctx.last;
|
|
36631
36642
|
i0.ɵɵadvance(1);
|
|
36632
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
36643
|
+
i0.ɵɵtextInterpolate1(" ", line_r37, " ");
|
|
36633
36644
|
i0.ɵɵadvance(1);
|
|
36634
|
-
i0.ɵɵproperty("ngIf", !
|
|
36645
|
+
i0.ɵɵproperty("ngIf", !last_r38);
|
|
36635
36646
|
} }
|
|
36636
36647
|
function ChatbotLexComponent_div_2_div_26_ng_template_6_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
36637
|
-
const
|
|
36638
|
-
i0.ɵɵelementStart(0, "div",
|
|
36639
|
-
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_div_26_ng_template_6_div_2_Template_button_click_1_listener() { i0.ɵɵrestoreView(
|
|
36648
|
+
const _r42 = i0.ɵɵgetCurrentView();
|
|
36649
|
+
i0.ɵɵelementStart(0, "div", 55)(1, "button", 56);
|
|
36650
|
+
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
36651
|
i0.ɵɵtext(2, " Yes ");
|
|
36641
36652
|
i0.ɵɵelementEnd();
|
|
36642
|
-
i0.ɵɵelementStart(3, "button",
|
|
36643
|
-
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_div_26_ng_template_6_div_2_Template_button_click_3_listener() { i0.ɵɵrestoreView(
|
|
36653
|
+
i0.ɵɵelementStart(3, "button", 57);
|
|
36654
|
+
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
36655
|
i0.ɵɵtext(4, " No ");
|
|
36645
36656
|
i0.ɵɵelementEnd()();
|
|
36646
36657
|
} }
|
|
36647
36658
|
function ChatbotLexComponent_div_2_div_26_ng_template_6_div_3_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
36648
|
-
const
|
|
36649
|
-
i0.ɵɵelementStart(0, "button",
|
|
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(
|
|
36659
|
+
const _r48 = i0.ɵɵgetCurrentView();
|
|
36660
|
+
i0.ɵɵelementStart(0, "button", 60);
|
|
36661
|
+
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
36662
|
i0.ɵɵtext(1);
|
|
36652
36663
|
i0.ɵɵelementEnd();
|
|
36653
36664
|
} if (rf & 2) {
|
|
36654
|
-
const
|
|
36665
|
+
const url_r46 = ctx.$implicit;
|
|
36655
36666
|
i0.ɵɵadvance(1);
|
|
36656
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
36667
|
+
i0.ɵɵtextInterpolate1(" ", url_r46, " ");
|
|
36657
36668
|
} }
|
|
36658
36669
|
function ChatbotLexComponent_div_2_div_26_ng_template_6_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
36659
|
-
i0.ɵɵelementStart(0, "div",
|
|
36660
|
-
i0.ɵɵtemplate(1, ChatbotLexComponent_div_2_div_26_ng_template_6_div_3_button_1_Template, 2, 1, "button",
|
|
36670
|
+
i0.ɵɵelementStart(0, "div", 58);
|
|
36671
|
+
i0.ɵɵtemplate(1, ChatbotLexComponent_div_2_div_26_ng_template_6_div_3_button_1_Template, 2, 1, "button", 59);
|
|
36661
36672
|
i0.ɵɵelementEnd();
|
|
36662
36673
|
} if (rf & 2) {
|
|
36663
|
-
const
|
|
36674
|
+
const msg_r15 = i0.ɵɵnextContext(2).$implicit;
|
|
36664
36675
|
i0.ɵɵadvance(1);
|
|
36665
|
-
i0.ɵɵproperty("ngIfOf",
|
|
36676
|
+
i0.ɵɵproperty("ngIfOf", msg_r15.url);
|
|
36666
36677
|
} }
|
|
36667
36678
|
function ChatbotLexComponent_div_2_div_26_ng_template_6_Template(rf, ctx) { if (rf & 1) {
|
|
36668
|
-
i0.ɵɵelementStart(0, "span",
|
|
36669
|
-
i0.ɵɵtemplate(1, ChatbotLexComponent_div_2_div_26_ng_template_6_ng_container_1_Template, 3, 2, "ng-container",
|
|
36679
|
+
i0.ɵɵelementStart(0, "span", 48);
|
|
36680
|
+
i0.ɵɵtemplate(1, ChatbotLexComponent_div_2_div_26_ng_template_6_ng_container_1_Template, 3, 2, "ng-container", 52);
|
|
36670
36681
|
i0.ɵɵelementEnd();
|
|
36671
|
-
i0.ɵɵtemplate(2, ChatbotLexComponent_div_2_div_26_ng_template_6_div_2_Template, 5, 0, "div",
|
|
36682
|
+
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
36683
|
} if (rf & 2) {
|
|
36673
|
-
const
|
|
36674
|
-
const
|
|
36675
|
-
const
|
|
36676
|
-
const
|
|
36684
|
+
const ctx_r50 = i0.ɵɵnextContext();
|
|
36685
|
+
const msg_r15 = ctx_r50.$implicit;
|
|
36686
|
+
const i_r16 = ctx_r50.index;
|
|
36687
|
+
const ctx_r19 = i0.ɵɵnextContext(2);
|
|
36677
36688
|
i0.ɵɵadvance(1);
|
|
36678
|
-
i0.ɵɵproperty("ngForOf",
|
|
36689
|
+
i0.ɵɵproperty("ngForOf", ctx_r19.displayLines(msg_r15.text));
|
|
36679
36690
|
i0.ɵɵadvance(1);
|
|
36680
|
-
i0.ɵɵproperty("ngIf",
|
|
36691
|
+
i0.ɵɵproperty("ngIf", msg_r15.from === "bot" && ctx_r19.isYesNoPrompt(msg_r15.text, i_r16));
|
|
36681
36692
|
i0.ɵɵadvance(1);
|
|
36682
|
-
i0.ɵɵproperty("ngIf",
|
|
36693
|
+
i0.ɵɵproperty("ngIf", msg_r15.url && msg_r15.url.length);
|
|
36683
36694
|
} }
|
|
36684
36695
|
function ChatbotLexComponent_div_2_div_26_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
36685
|
-
const
|
|
36686
|
-
i0.ɵɵelementStart(0, "div",
|
|
36687
|
-
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_div_26_div_9_Template_button_click_1_listener() { i0.ɵɵrestoreView(
|
|
36696
|
+
const _r53 = i0.ɵɵgetCurrentView();
|
|
36697
|
+
i0.ɵɵelementStart(0, "div", 61)(1, "button", 62);
|
|
36698
|
+
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
36699
|
i0.ɵɵtext(2, " \uD83D\uDC4D ");
|
|
36689
36700
|
i0.ɵɵelementEnd();
|
|
36690
|
-
i0.ɵɵelementStart(3, "button",
|
|
36691
|
-
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_div_26_div_9_Template_button_click_3_listener() { i0.ɵɵrestoreView(
|
|
36701
|
+
i0.ɵɵelementStart(3, "button", 63);
|
|
36702
|
+
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
36703
|
i0.ɵɵtext(4, " \uD83D\uDC4E ");
|
|
36693
36704
|
i0.ɵɵelementEnd()();
|
|
36694
36705
|
} }
|
|
36695
36706
|
function ChatbotLexComponent_div_2_div_26_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
36696
|
-
i0.ɵɵelementStart(0, "div",
|
|
36707
|
+
i0.ɵɵelementStart(0, "div", 37);
|
|
36697
36708
|
i0.ɵɵtext(1);
|
|
36698
36709
|
i0.ɵɵpipe(2, "date");
|
|
36699
36710
|
i0.ɵɵelementEnd();
|
|
36700
36711
|
} if (rf & 2) {
|
|
36701
|
-
const
|
|
36702
|
-
i0.ɵɵproperty("ngClass",
|
|
36712
|
+
const msg_r15 = i0.ɵɵnextContext().$implicit;
|
|
36713
|
+
i0.ɵɵproperty("ngClass", msg_r15.from === "bot" ? "message-time-bot" : "message-time");
|
|
36703
36714
|
i0.ɵɵadvance(1);
|
|
36704
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 2,
|
|
36715
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 2, msg_r15.timestamp, "EEE MMM dd yyyy 'at' hh:mm:ss a"), " ");
|
|
36705
36716
|
} }
|
|
36706
36717
|
function ChatbotLexComponent_div_2_div_26_Template(rf, ctx) { if (rf & 1) {
|
|
36707
|
-
i0.ɵɵelementStart(0, "div",
|
|
36708
|
-
i0.ɵɵtemplate(3, ChatbotLexComponent_div_2_div_26_img_3_Template, 1, 0, "img",
|
|
36709
|
-
i0.ɵɵelementStart(4, "div",
|
|
36710
|
-
i0.ɵɵtemplate(5, ChatbotLexComponent_div_2_div_26_ng_container_5_Template, 5, 1, "ng-container",
|
|
36718
|
+
i0.ɵɵelementStart(0, "div", 37)(1, "div", 38)(2, "div", 39);
|
|
36719
|
+
i0.ɵɵtemplate(3, ChatbotLexComponent_div_2_div_26_img_3_Template, 1, 0, "img", 40);
|
|
36720
|
+
i0.ɵɵelementStart(4, "div", 41);
|
|
36721
|
+
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
36722
|
i0.ɵɵelementEnd()();
|
|
36712
|
-
i0.ɵɵelementStart(8, "div",
|
|
36713
|
-
i0.ɵɵtemplate(9, ChatbotLexComponent_div_2_div_26_div_9_Template, 5, 0, "div",
|
|
36723
|
+
i0.ɵɵelementStart(8, "div", 44);
|
|
36724
|
+
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
36725
|
i0.ɵɵelementEnd()()();
|
|
36715
36726
|
} if (rf & 2) {
|
|
36716
|
-
const
|
|
36717
|
-
const
|
|
36718
|
-
const
|
|
36727
|
+
const msg_r15 = ctx.$implicit;
|
|
36728
|
+
const i_r16 = ctx.index;
|
|
36729
|
+
const _r20 = i0.ɵɵreference(7);
|
|
36719
36730
|
const ctx_r12 = i0.ɵɵnextContext(2);
|
|
36720
|
-
i0.ɵɵproperty("ngClass",
|
|
36731
|
+
i0.ɵɵproperty("ngClass", msg_r15.from);
|
|
36721
36732
|
i0.ɵɵadvance(1);
|
|
36722
|
-
i0.ɵɵclassProp("short-welcome",
|
|
36733
|
+
i0.ɵɵclassProp("short-welcome", msg_r15.from === "bot" && msg_r15.text === "Hi! How may I help you?");
|
|
36723
36734
|
i0.ɵɵadvance(2);
|
|
36724
|
-
i0.ɵɵproperty("ngIf",
|
|
36735
|
+
i0.ɵɵproperty("ngIf", msg_r15.from === "bot");
|
|
36725
36736
|
i0.ɵɵadvance(2);
|
|
36726
|
-
i0.ɵɵproperty("ngIf",
|
|
36737
|
+
i0.ɵɵproperty("ngIf", msg_r15.from === "bot" && ctx_r12.isStarRatingPrompt(msg_r15.text, i_r16))("ngIfElse", _r20);
|
|
36727
36738
|
i0.ɵɵadvance(4);
|
|
36728
|
-
i0.ɵɵproperty("ngIf",
|
|
36739
|
+
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
36740
|
i0.ɵɵadvance(1);
|
|
36730
|
-
i0.ɵɵproperty("ngIf",
|
|
36741
|
+
i0.ɵɵproperty("ngIf", msg_r15.timestamp);
|
|
36742
|
+
} }
|
|
36743
|
+
function ChatbotLexComponent_div_2_div_27_Template(rf, ctx) { if (rf & 1) {
|
|
36744
|
+
i0.ɵɵelementStart(0, "div", 64);
|
|
36745
|
+
i0.ɵɵelement(1, "img", 47);
|
|
36746
|
+
i0.ɵɵelementStart(2, "span", 65);
|
|
36747
|
+
i0.ɵɵtext(3);
|
|
36748
|
+
i0.ɵɵelementEnd();
|
|
36749
|
+
i0.ɵɵelementStart(4, "span", 66)(5, "span");
|
|
36750
|
+
i0.ɵɵtext(6, ".");
|
|
36751
|
+
i0.ɵɵelementEnd();
|
|
36752
|
+
i0.ɵɵelementStart(7, "span");
|
|
36753
|
+
i0.ɵɵtext(8, ".");
|
|
36754
|
+
i0.ɵɵelementEnd();
|
|
36755
|
+
i0.ɵɵelementStart(9, "span");
|
|
36756
|
+
i0.ɵɵtext(10, ".");
|
|
36757
|
+
i0.ɵɵelementEnd()()();
|
|
36758
|
+
} if (rf & 2) {
|
|
36759
|
+
const ctx_r13 = i0.ɵɵnextContext(2);
|
|
36760
|
+
i0.ɵɵadvance(3);
|
|
36761
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r13.loadingText, " ");
|
|
36731
36762
|
} }
|
|
36732
36763
|
function ChatbotLexComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
36733
|
-
const
|
|
36764
|
+
const _r58 = i0.ɵɵgetCurrentView();
|
|
36734
36765
|
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(
|
|
36766
|
+
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
36767
|
i0.ɵɵtemplate(3, ChatbotLexComponent_div_2_span_3_Template, 2, 0, "span", 8);
|
|
36737
36768
|
i0.ɵɵelementEnd();
|
|
36738
36769
|
i0.ɵɵelementStart(4, "button", 14);
|
|
36739
|
-
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_4_listener() { i0.ɵɵrestoreView(
|
|
36770
|
+
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
36771
|
i0.ɵɵtext(5, " _ ");
|
|
36741
36772
|
i0.ɵɵelementEnd();
|
|
36742
36773
|
i0.ɵɵelementStart(6, "button", 15);
|
|
36743
|
-
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_6_listener() { i0.ɵɵrestoreView(
|
|
36774
|
+
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
36775
|
i0.ɵɵtext(7, " \u2715 ");
|
|
36745
36776
|
i0.ɵɵelementEnd()();
|
|
36746
36777
|
i0.ɵɵelementStart(8, "div", 16)(9, "span", 17);
|
|
@@ -36754,23 +36785,23 @@ function ChatbotLexComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
36754
36785
|
i0.ɵɵtext(17);
|
|
36755
36786
|
i0.ɵɵelementEnd()()()();
|
|
36756
36787
|
i0.ɵɵelementStart(18, "div", 24)(19, "button", 25);
|
|
36757
|
-
i0.ɵɵlistener("mouseenter", function ChatbotLexComponent_div_2_Template_button_mouseenter_19_listener() { i0.ɵɵrestoreView(
|
|
36788
|
+
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
36789
|
i0.ɵɵtext(20, " \uD83D\uDEC8 ");
|
|
36759
36790
|
i0.ɵɵelementEnd();
|
|
36760
36791
|
i0.ɵɵelementStart(21, "button", 26);
|
|
36761
|
-
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_21_listener() { i0.ɵɵrestoreView(
|
|
36792
|
+
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
36793
|
i0.ɵɵtext(22, " \u27F3 ");
|
|
36763
36794
|
i0.ɵɵelementEnd()()();
|
|
36764
36795
|
i0.ɵɵelementStart(23, "div", 27)(24, "div", 28, 29);
|
|
36765
|
-
i0.ɵɵtemplate(26, ChatbotLexComponent_div_2_div_26_Template, 11, 8, "div", 30);
|
|
36796
|
+
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
36797
|
i0.ɵɵelementEnd()();
|
|
36767
|
-
i0.ɵɵelementStart(
|
|
36768
|
-
i0.ɵɵlistener("ngModelChange", function
|
|
36769
|
-
i0.ɵɵtext(
|
|
36798
|
+
i0.ɵɵelementStart(28, "div", 32)(29, "div", 33)(30, "textarea", 34, 35);
|
|
36799
|
+
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()); });
|
|
36800
|
+
i0.ɵɵtext(32, " ");
|
|
36770
36801
|
i0.ɵɵelementEnd()();
|
|
36771
|
-
i0.ɵɵelementStart(
|
|
36772
|
-
i0.ɵɵlistener("click", function
|
|
36773
|
-
i0.ɵɵtext(
|
|
36802
|
+
i0.ɵɵelementStart(33, "button", 36);
|
|
36803
|
+
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()); });
|
|
36804
|
+
i0.ɵɵtext(34, " Send ");
|
|
36774
36805
|
i0.ɵɵelementEnd()()();
|
|
36775
36806
|
} if (rf & 2) {
|
|
36776
36807
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -36788,6 +36819,8 @@ function ChatbotLexComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
36788
36819
|
i0.ɵɵpropertyInterpolate("title", ctx_r2.sessionId);
|
|
36789
36820
|
i0.ɵɵadvance(7);
|
|
36790
36821
|
i0.ɵɵproperty("ngForOf", ctx_r2.messages);
|
|
36822
|
+
i0.ɵɵadvance(1);
|
|
36823
|
+
i0.ɵɵproperty("ngIf", ctx_r2.isLoading);
|
|
36791
36824
|
i0.ɵɵadvance(3);
|
|
36792
36825
|
i0.ɵɵproperty("ngModel", ctx_r2.userInput)("disabled", ctx_r2.sending || ctx_r2.isDisabled);
|
|
36793
36826
|
i0.ɵɵadvance(3);
|
|
@@ -36819,10 +36852,11 @@ class ChatbotLexComponent {
|
|
|
36819
36852
|
alert('Session ID copied to clipboard.');
|
|
36820
36853
|
document.body.removeChild(textarea);
|
|
36821
36854
|
}
|
|
36822
|
-
constructor(lexChat, ngZone, cdr) {
|
|
36855
|
+
constructor(lexChat, ngZone, cdr, loginService) {
|
|
36823
36856
|
this.lexChat = lexChat;
|
|
36824
36857
|
this.ngZone = ngZone;
|
|
36825
36858
|
this.cdr = cdr;
|
|
36859
|
+
this.loginService = loginService;
|
|
36826
36860
|
this.isExpanded = false;
|
|
36827
36861
|
this.chatIDtheft = false;
|
|
36828
36862
|
this.sessionId = '';
|
|
@@ -36863,6 +36897,18 @@ class ChatbotLexComponent {
|
|
|
36863
36897
|
this.starLocked = new Set();
|
|
36864
36898
|
this.feedbackPromptShown = false;
|
|
36865
36899
|
this.imporantMessageShown = false;
|
|
36900
|
+
this.apiDone = false;
|
|
36901
|
+
this.claimantPostLoginLoading = false;
|
|
36902
|
+
this.loadingStepsRunning = false;
|
|
36903
|
+
this.loadingText = '';
|
|
36904
|
+
this.isLoading = false;
|
|
36905
|
+
this.steps = [
|
|
36906
|
+
'Logging in',
|
|
36907
|
+
'Loading details',
|
|
36908
|
+
'Compiling reply',
|
|
36909
|
+
'Almost there',
|
|
36910
|
+
'Finalizing response'
|
|
36911
|
+
];
|
|
36866
36912
|
this.loginMessageHandler = (event) => {
|
|
36867
36913
|
if (event.origin !== window.location.origin) {
|
|
36868
36914
|
return;
|
|
@@ -36879,6 +36925,7 @@ class ChatbotLexComponent {
|
|
|
36879
36925
|
this.userLoggedIn = true;
|
|
36880
36926
|
this.username = username;
|
|
36881
36927
|
this.lexChat.setAuthenticatedUser(username, authToken);
|
|
36928
|
+
//Resend the saved personalized question
|
|
36882
36929
|
void this.resumePendingPersonalizedQuestion();
|
|
36883
36930
|
});
|
|
36884
36931
|
};
|
|
@@ -36911,6 +36958,9 @@ class ChatbotLexComponent {
|
|
|
36911
36958
|
}
|
|
36912
36959
|
}
|
|
36913
36960
|
ngOnInit() {
|
|
36961
|
+
this.loginService.sessionCleared$.subscribe(() => {
|
|
36962
|
+
this.handleSessionCleared();
|
|
36963
|
+
});
|
|
36914
36964
|
window.addEventListener('message', this.loginMessageHandler);
|
|
36915
36965
|
console.log("CHATBOT ngOnItit clientFilter:", this.clientFilter);
|
|
36916
36966
|
this.lexChat.importantmessage$.subscribe(type => {
|
|
@@ -36928,6 +36978,20 @@ class ChatbotLexComponent {
|
|
|
36928
36978
|
this.isIdle = false;
|
|
36929
36979
|
this.idleRequestInFlight = false;
|
|
36930
36980
|
this.idleDetectCount = 0;
|
|
36981
|
+
//clear transient or loading state
|
|
36982
|
+
this.apiDone = true;
|
|
36983
|
+
this.isLoading = false;
|
|
36984
|
+
this.loadingText = '';
|
|
36985
|
+
//clear personalized login state
|
|
36986
|
+
this.pendingPersonalizedQuestion = '';
|
|
36987
|
+
this.personalizedQuestionResumed = false;
|
|
36988
|
+
//clear conversation state
|
|
36989
|
+
this.messages = [];
|
|
36990
|
+
this.expectingPassword = false;
|
|
36991
|
+
this.isAck = false;
|
|
36992
|
+
this.is_end_session = false;
|
|
36993
|
+
this.endedByIdleCounter = false;
|
|
36994
|
+
this.cdr.detectChanges();
|
|
36931
36995
|
return;
|
|
36932
36996
|
}
|
|
36933
36997
|
const requestedChatIDtheft = this.lexChat.chatIDtheft;
|
|
@@ -37047,6 +37111,14 @@ class ChatbotLexComponent {
|
|
|
37047
37111
|
});
|
|
37048
37112
|
}
|
|
37049
37113
|
this.scrollToBottom();
|
|
37114
|
+
if (isPwd) {
|
|
37115
|
+
this.apiDone = false;
|
|
37116
|
+
this.isLoading = true;
|
|
37117
|
+
this.loadingText = this.steps[0];
|
|
37118
|
+
this.cdr.detectChanges();
|
|
37119
|
+
this.scrollToBottom();
|
|
37120
|
+
void this.runLoadingSteps();
|
|
37121
|
+
}
|
|
37050
37122
|
this.userInput = '';
|
|
37051
37123
|
const el = this.messageInput?.nativeElement;
|
|
37052
37124
|
if (el)
|
|
@@ -37056,6 +37128,12 @@ class ChatbotLexComponent {
|
|
|
37056
37128
|
try {
|
|
37057
37129
|
console.log("CHATBOT clientfilter:", this.clientFilter);
|
|
37058
37130
|
const reply = await this.lexChat.sendMessage(trimmed, this.clientFilter);
|
|
37131
|
+
if (isPwd) {
|
|
37132
|
+
this.apiDone = true;
|
|
37133
|
+
this.isLoading = false;
|
|
37134
|
+
this.loadingText = '';
|
|
37135
|
+
this.cdr.detectChanges();
|
|
37136
|
+
}
|
|
37059
37137
|
this.isAck =
|
|
37060
37138
|
reply['isAck'] === true ||
|
|
37061
37139
|
String(reply['isAck']).toLowerCase() === 'true';
|
|
@@ -37077,8 +37155,9 @@ class ChatbotLexComponent {
|
|
|
37077
37155
|
this.clearIdleTimer();
|
|
37078
37156
|
}
|
|
37079
37157
|
this.messages.push({ from: 'bot', text: reply['content'], url: reply['url'], timestamp: new Date() });
|
|
37080
|
-
const loginRequired =
|
|
37081
|
-
botReplyText
|
|
37158
|
+
const loginRequired = String(reply['loginRequired'] ?? '').toLowerCase() === 'true' ||
|
|
37159
|
+
botReplyText === 'login required' ||
|
|
37160
|
+
botReplyText.includes('for your protection');
|
|
37082
37161
|
if (loginRequired) {
|
|
37083
37162
|
const previousMessage = this.messages[this.messages.length - 2];
|
|
37084
37163
|
if (previousMessage?.from === 'user') {
|
|
@@ -37095,6 +37174,12 @@ class ChatbotLexComponent {
|
|
|
37095
37174
|
this.cdr.detectChanges();
|
|
37096
37175
|
}
|
|
37097
37176
|
catch (err) {
|
|
37177
|
+
if (isPwd) {
|
|
37178
|
+
this.apiDone = true;
|
|
37179
|
+
this.isLoading = false;
|
|
37180
|
+
this.loadingText = '';
|
|
37181
|
+
this.cdr.detectChanges();
|
|
37182
|
+
}
|
|
37098
37183
|
this.messages.push({ from: 'bot', text: 'Sorry, something went wrong while contacting the bot.', timestamp: new Date() });
|
|
37099
37184
|
this.scrollToBottom();
|
|
37100
37185
|
this.expectingPassword = false;
|
|
@@ -37324,7 +37409,59 @@ class ChatbotLexComponent {
|
|
|
37324
37409
|
this.pendingPersonalizedQuestion = '';
|
|
37325
37410
|
this.personalizedQuestionResumed = true;
|
|
37326
37411
|
this.userInput = pendingQuestion;
|
|
37327
|
-
|
|
37412
|
+
//Start claimant post-login loading
|
|
37413
|
+
this.apiDone = false;
|
|
37414
|
+
this.isLoading = true;
|
|
37415
|
+
this.loadingText = '';
|
|
37416
|
+
this.cdr.detectChanges();
|
|
37417
|
+
this.scrollToBottom();
|
|
37418
|
+
void this.runLoadingSteps();
|
|
37419
|
+
try {
|
|
37420
|
+
await this.sendMessage(true);
|
|
37421
|
+
}
|
|
37422
|
+
finally {
|
|
37423
|
+
this.apiDone = true;
|
|
37424
|
+
this.isLoading = false;
|
|
37425
|
+
this.loadingText = '';
|
|
37426
|
+
this.cdr.detectChanges();
|
|
37427
|
+
this.scrollToBottom();
|
|
37428
|
+
}
|
|
37429
|
+
}
|
|
37430
|
+
delay(ms) {
|
|
37431
|
+
return new Promise(resolve => setTimeout(resolve, ms));
|
|
37432
|
+
}
|
|
37433
|
+
async runLoadingSteps() {
|
|
37434
|
+
if (this.loadingStepsRunning) {
|
|
37435
|
+
return;
|
|
37436
|
+
}
|
|
37437
|
+
this.loadingStepsRunning = true;
|
|
37438
|
+
try {
|
|
37439
|
+
for (const step of this.steps) {
|
|
37440
|
+
console.log('LOADING STEP:', step, 'apiDone', this.apiDone, 'isLoading', this.isLoading);
|
|
37441
|
+
if (this.apiDone || !this.isLoading) {
|
|
37442
|
+
break;
|
|
37443
|
+
}
|
|
37444
|
+
await this.typeText(step);
|
|
37445
|
+
if (this.apiDone || !this.isLoading) {
|
|
37446
|
+
break;
|
|
37447
|
+
}
|
|
37448
|
+
await this.delay(800);
|
|
37449
|
+
}
|
|
37450
|
+
}
|
|
37451
|
+
finally {
|
|
37452
|
+
this.loadingStepsRunning = false;
|
|
37453
|
+
}
|
|
37454
|
+
}
|
|
37455
|
+
async typeText(text) {
|
|
37456
|
+
this.loadingText = '';
|
|
37457
|
+
for (let i = 0; i < text.length; i++) {
|
|
37458
|
+
if (this.apiDone || !this.isLoading) {
|
|
37459
|
+
return;
|
|
37460
|
+
}
|
|
37461
|
+
this.loadingText += text[i];
|
|
37462
|
+
this.cdr.detectChanges();
|
|
37463
|
+
await this.delay(70);
|
|
37464
|
+
}
|
|
37328
37465
|
}
|
|
37329
37466
|
maskText(s) {
|
|
37330
37467
|
return s.replace(/./g, '*');
|
|
@@ -37415,7 +37552,33 @@ class ChatbotLexComponent {
|
|
|
37415
37552
|
});
|
|
37416
37553
|
});
|
|
37417
37554
|
}
|
|
37418
|
-
|
|
37555
|
+
handleSessionCleared() {
|
|
37556
|
+
this.clearIdleTimer();
|
|
37557
|
+
//Stop Loading
|
|
37558
|
+
this.apiDone = true;
|
|
37559
|
+
this.isLoading = false;
|
|
37560
|
+
this.loadingText = '';
|
|
37561
|
+
this.loadingStepsRunning = false;
|
|
37562
|
+
this.claimantPostLoginLoading = false;
|
|
37563
|
+
//Clear personalized question state
|
|
37564
|
+
this.pendingPersonalizedQuestion = '';
|
|
37565
|
+
this.personalizedQuestionResumed = false;
|
|
37566
|
+
//Clear conversation
|
|
37567
|
+
this.messages = [];
|
|
37568
|
+
//Clear bot state
|
|
37569
|
+
this.expectingPassword = false;
|
|
37570
|
+
this.isAck = false;
|
|
37571
|
+
this.is_end_session = false;
|
|
37572
|
+
//Clear idle state
|
|
37573
|
+
this.isIdle = false;
|
|
37574
|
+
this.idleRequestInFlight = false;
|
|
37575
|
+
this.idleDetectCount = 0;
|
|
37576
|
+
this.endedByIdleCounter = false;
|
|
37577
|
+
//UI closes
|
|
37578
|
+
this.chatOpen = false;
|
|
37579
|
+
this.cdr.detectChanges();
|
|
37580
|
+
}
|
|
37581
|
+
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
37582
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ChatbotLexComponent, selectors: [["app-chatbot-lex"]], viewQuery: function ChatbotLexComponent_Query(rf, ctx) { if (rf & 1) {
|
|
37420
37583
|
i0.ɵɵviewQuery(_c0, 5);
|
|
37421
37584
|
i0.ɵɵviewQuery(_c1, 5);
|
|
@@ -37423,20 +37586,20 @@ class ChatbotLexComponent {
|
|
|
37423
37586
|
let _t;
|
|
37424
37587
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.messageInput = _t.first);
|
|
37425
37588
|
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,
|
|
37589
|
+
} }, 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) {
|
|
37590
|
+
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
37591
|
} if (rf & 2) {
|
|
37429
37592
|
i0.ɵɵproperty("ngIf", !ctx.chatOpen);
|
|
37430
37593
|
i0.ɵɵadvance(1);
|
|
37431
37594
|
i0.ɵɵproperty("ngIf", ctx.showImportantMessage);
|
|
37432
37595
|
i0.ɵɵadvance(1);
|
|
37433
37596
|
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}"] }); }
|
|
37597
|
+
} }, 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
37598
|
}
|
|
37436
37599
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ChatbotLexComponent, [{
|
|
37437
37600
|
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 ×\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: [{
|
|
37601
|
+
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 ×\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"] }]
|
|
37602
|
+
}], () => [{ type: LexChatService }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: LoginService }], { clientFilter: [{
|
|
37440
37603
|
type: Input
|
|
37441
37604
|
}], messageInput: [{
|
|
37442
37605
|
type: ViewChild,
|
|
@@ -37445,7 +37608,7 @@ class ChatbotLexComponent {
|
|
|
37445
37608
|
type: ViewChild,
|
|
37446
37609
|
args: ['chatWindow']
|
|
37447
37610
|
}] }); })();
|
|
37448
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ChatbotLexComponent, { className: "ChatbotLexComponent", filePath: "lib\\components\\chatbot-lex\\chatbot-lex.component.ts", lineNumber:
|
|
37611
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ChatbotLexComponent, { className: "ChatbotLexComponent", filePath: "lib\\components\\chatbot-lex\\chatbot-lex.component.ts", lineNumber: 31 }); })();
|
|
37449
37612
|
|
|
37450
37613
|
function createTranslateLoader(http) {
|
|
37451
37614
|
// return new TranslateHttpLoader(http, `./assets/i18n/${environment.state}/`, ".json");
|