@ksremp/ngx-ksremp-app-lib 2.0.6 → 2.0.8
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 +108 -88
- package/esm2022/lib/services/lex-chat/lex-chat.service.mjs +7 -1
- package/fesm2022/ksremp-ngx-ksremp-app-lib.mjs +113 -88
- package/fesm2022/ksremp-ngx-ksremp-app-lib.mjs.map +1 -1
- package/lib/components/chatbot-lex/chatbot-lex.component.d.ts +2 -1
- package/lib/components/chatbot-lex/chatbot-lex.component.d.ts.map +1 -1
- package/lib/services/lex-chat/lex-chat.service.d.ts +3 -0
- package/lib/services/lex-chat/lex-chat.service.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -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, firstValueFrom, finalize, combineLatest } from 'rxjs';
|
|
24
|
+
import { BehaviorSubject, interval, throwError, catchError, of, tap, from, timer, firstValueFrom, finalize, combineLatest, Subject } 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';
|
|
@@ -36142,10 +36142,15 @@ class FileDownloadComponent {
|
|
|
36142
36142
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FileDownloadComponent, { className: "FileDownloadComponent", filePath: "lib\\components\\file-download\\file-download.component.ts", lineNumber: 15 }); })();
|
|
36143
36143
|
|
|
36144
36144
|
class LexChatService {
|
|
36145
|
+
showImportantMessage(type) {
|
|
36146
|
+
this.importantMessageSubject.next(type);
|
|
36147
|
+
}
|
|
36145
36148
|
constructor(http, loginService) {
|
|
36146
36149
|
this.http = http;
|
|
36147
36150
|
this.loginService = loginService;
|
|
36148
36151
|
this.chatIDtheft = false;
|
|
36152
|
+
this.importantMessageSubject = new Subject();
|
|
36153
|
+
this.importantmessage$ = this.importantMessageSubject.asObservable();
|
|
36149
36154
|
this.sessionAttributes = {};
|
|
36150
36155
|
/** Emit true to open the chatbot popup from anywhere */
|
|
36151
36156
|
this.chatOpen$ = new BehaviorSubject(false);
|
|
@@ -36236,22 +36241,40 @@ function ChatbotLexComponent_button_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
36236
36241
|
i0.ɵɵelement(1, "img", 4);
|
|
36237
36242
|
i0.ɵɵelementEnd();
|
|
36238
36243
|
} }
|
|
36244
|
+
function ChatbotLexComponent_div_1_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
36245
|
+
i0.ɵɵelementContainerStart(0);
|
|
36246
|
+
i0.ɵɵelementStart(1, "p");
|
|
36247
|
+
i0.ɵɵtext(2, " 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. ");
|
|
36248
|
+
i0.ɵɵelementEnd();
|
|
36249
|
+
i0.ɵɵelementContainerEnd();
|
|
36250
|
+
} }
|
|
36251
|
+
function ChatbotLexComponent_div_1_ng_container_7_Template(rf, ctx) { if (rf & 1) {
|
|
36252
|
+
i0.ɵɵelementContainerStart(0);
|
|
36253
|
+
i0.ɵɵelementStart(1, "p");
|
|
36254
|
+
i0.ɵɵtext(2, " 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. ");
|
|
36255
|
+
i0.ɵɵelementEnd();
|
|
36256
|
+
i0.ɵɵelementContainerEnd();
|
|
36257
|
+
} }
|
|
36239
36258
|
function ChatbotLexComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
36240
|
-
const
|
|
36259
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
36241
36260
|
i0.ɵɵelementStart(0, "div", 5)(1, "div", 6)(2, "button", 7);
|
|
36242
|
-
i0.ɵɵlistener("click", function ChatbotLexComponent_div_1_Template_button_click_2_listener() { i0.ɵɵrestoreView(
|
|
36261
|
+
i0.ɵɵlistener("click", function ChatbotLexComponent_div_1_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r7.closeImportantMessage()); });
|
|
36243
36262
|
i0.ɵɵtext(3, " \u00D7 ");
|
|
36244
36263
|
i0.ɵɵelementEnd();
|
|
36245
36264
|
i0.ɵɵelementStart(4, "h2");
|
|
36246
36265
|
i0.ɵɵtext(5, "Important Message");
|
|
36247
36266
|
i0.ɵɵelementEnd();
|
|
36248
|
-
i0.ɵɵ
|
|
36249
|
-
i0.ɵɵ
|
|
36250
|
-
i0.ɵɵ
|
|
36251
|
-
i0.ɵɵelementStart(8, "div", 8)(9, "button", 9);
|
|
36252
|
-
i0.ɵɵlistener("click", function ChatbotLexComponent_div_1_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r6); const ctx_r7 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r7.continueToAmelia()); });
|
|
36267
|
+
i0.ɵɵtemplate(6, ChatbotLexComponent_div_1_ng_container_6_Template, 3, 0, "ng-container", 8)(7, ChatbotLexComponent_div_1_ng_container_7_Template, 3, 0, "ng-container", 8);
|
|
36268
|
+
i0.ɵɵelementStart(8, "div", 9)(9, "button", 10);
|
|
36269
|
+
i0.ɵɵlistener("click", function ChatbotLexComponent_div_1_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r8); const ctx_r9 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r9.continueToAmelia()); });
|
|
36253
36270
|
i0.ɵɵtext(10, " Continue ");
|
|
36254
36271
|
i0.ɵɵelementEnd()()()();
|
|
36272
|
+
} if (rf & 2) {
|
|
36273
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
36274
|
+
i0.ɵɵadvance(6);
|
|
36275
|
+
i0.ɵɵproperty("ngIf", ctx_r1.importantMessageType === "claimant");
|
|
36276
|
+
i0.ɵɵadvance(1);
|
|
36277
|
+
i0.ɵɵproperty("ngIf", ctx_r1.importantMessageType === "employer");
|
|
36255
36278
|
} }
|
|
36256
36279
|
function ChatbotLexComponent_div_2_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
36257
36280
|
i0.ɵɵelementStart(0, "span");
|
|
@@ -36262,34 +36285,34 @@ function ChatbotLexComponent_div_2_div_26_img_2_Template(rf, ctx) { if (rf & 1)
|
|
|
36262
36285
|
i0.ɵɵelement(0, "img", 43);
|
|
36263
36286
|
} }
|
|
36264
36287
|
function ChatbotLexComponent_div_2_div_26_ng_container_3_button_4_Template(rf, ctx) { if (rf & 1) {
|
|
36265
|
-
const
|
|
36288
|
+
const _r26 = i0.ɵɵgetCurrentView();
|
|
36266
36289
|
i0.ɵɵelementStart(0, "button", 46);
|
|
36267
|
-
i0.ɵɵlistener("mouseenter", function ChatbotLexComponent_div_2_div_26_ng_container_3_button_4_Template_button_mouseenter_0_listener() { const restoredCtx = i0.ɵɵrestoreView(
|
|
36290
|
+
i0.ɵɵlistener("mouseenter", function ChatbotLexComponent_div_2_div_26_ng_container_3_button_4_Template_button_mouseenter_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r26); const s_r23 = restoredCtx.$implicit; const i_r15 = i0.ɵɵnextContext(2).index; const ctx_r24 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r24.onStarEnter(i_r15, s_r23)); })("click", function ChatbotLexComponent_div_2_div_26_ng_container_3_button_4_Template_button_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r26); const s_r23 = restoredCtx.$implicit; const i_r15 = i0.ɵɵnextContext(2).index; const ctx_r27 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r27.onStarClick(s_r23, i_r15)); });
|
|
36268
36291
|
i0.ɵɵtext(1, " \u2605 ");
|
|
36269
36292
|
i0.ɵɵelementEnd();
|
|
36270
36293
|
} if (rf & 2) {
|
|
36271
|
-
const
|
|
36272
|
-
const
|
|
36273
|
-
const
|
|
36274
|
-
i0.ɵɵclassProp("filled",
|
|
36275
|
-
i0.ɵɵpropertyInterpolate1("title", "Rate ",
|
|
36276
|
-
i0.ɵɵattribute("aria-label", "Rate " +
|
|
36294
|
+
const s_r23 = ctx.$implicit;
|
|
36295
|
+
const i_r15 = i0.ɵɵnextContext(2).index;
|
|
36296
|
+
const ctx_r22 = i0.ɵɵnextContext(2);
|
|
36297
|
+
i0.ɵɵclassProp("filled", ctx_r22.isStarFilled(i_r15, s_r23));
|
|
36298
|
+
i0.ɵɵpropertyInterpolate1("title", "Rate ", s_r23, " star(s)");
|
|
36299
|
+
i0.ɵɵattribute("aria-label", "Rate " + s_r23 + " star(s)");
|
|
36277
36300
|
} }
|
|
36278
36301
|
function ChatbotLexComponent_div_2_div_26_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
36279
|
-
const
|
|
36302
|
+
const _r32 = i0.ɵɵgetCurrentView();
|
|
36280
36303
|
i0.ɵɵelementContainerStart(0);
|
|
36281
36304
|
i0.ɵɵelementStart(1, "div");
|
|
36282
36305
|
i0.ɵɵtext(2, "Your feedback matters to us");
|
|
36283
36306
|
i0.ɵɵelementEnd();
|
|
36284
36307
|
i0.ɵɵelementStart(3, "div", 44);
|
|
36285
|
-
i0.ɵɵlistener("mouseleave", function ChatbotLexComponent_div_2_div_26_ng_container_3_Template_div_mouseleave_3_listener() { i0.ɵɵrestoreView(
|
|
36308
|
+
i0.ɵɵlistener("mouseleave", function ChatbotLexComponent_div_2_div_26_ng_container_3_Template_div_mouseleave_3_listener() { i0.ɵɵrestoreView(_r32); const i_r15 = i0.ɵɵnextContext().index; const ctx_r30 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r30.onStarLeave(i_r15)); });
|
|
36286
36309
|
i0.ɵɵtemplate(4, ChatbotLexComponent_div_2_div_26_ng_container_3_button_4_Template, 2, 4, "button", 45);
|
|
36287
36310
|
i0.ɵɵelementEnd();
|
|
36288
36311
|
i0.ɵɵelementContainerEnd();
|
|
36289
36312
|
} if (rf & 2) {
|
|
36290
|
-
const
|
|
36313
|
+
const ctx_r17 = i0.ɵɵnextContext(3);
|
|
36291
36314
|
i0.ɵɵadvance(4);
|
|
36292
|
-
i0.ɵɵproperty("ngForOf",
|
|
36315
|
+
i0.ɵɵproperty("ngForOf", ctx_r17.getStars());
|
|
36293
36316
|
} }
|
|
36294
36317
|
function ChatbotLexComponent_div_2_div_26_ng_template_4_ng_container_3_br_2_Template(rf, ctx) { if (rf & 1) {
|
|
36295
36318
|
i0.ɵɵelement(0, "br");
|
|
@@ -36297,83 +36320,83 @@ function ChatbotLexComponent_div_2_div_26_ng_template_4_ng_container_3_br_2_Temp
|
|
|
36297
36320
|
function ChatbotLexComponent_div_2_div_26_ng_template_4_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
36298
36321
|
i0.ɵɵelementContainerStart(0);
|
|
36299
36322
|
i0.ɵɵtext(1);
|
|
36300
|
-
i0.ɵɵtemplate(2, ChatbotLexComponent_div_2_div_26_ng_template_4_ng_container_3_br_2_Template, 1, 0, "br",
|
|
36323
|
+
i0.ɵɵtemplate(2, ChatbotLexComponent_div_2_div_26_ng_template_4_ng_container_3_br_2_Template, 1, 0, "br", 8);
|
|
36301
36324
|
i0.ɵɵelementContainerEnd();
|
|
36302
36325
|
} if (rf & 2) {
|
|
36303
|
-
const
|
|
36304
|
-
const
|
|
36326
|
+
const line_r36 = ctx.$implicit;
|
|
36327
|
+
const last_r37 = ctx.last;
|
|
36305
36328
|
i0.ɵɵadvance(1);
|
|
36306
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
36329
|
+
i0.ɵɵtextInterpolate1(" ", line_r36, " ");
|
|
36307
36330
|
i0.ɵɵadvance(1);
|
|
36308
|
-
i0.ɵɵproperty("ngIf", !
|
|
36331
|
+
i0.ɵɵproperty("ngIf", !last_r37);
|
|
36309
36332
|
} }
|
|
36310
36333
|
function ChatbotLexComponent_div_2_div_26_ng_template_4_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
36311
|
-
const
|
|
36334
|
+
const _r41 = i0.ɵɵgetCurrentView();
|
|
36312
36335
|
i0.ɵɵelementStart(0, "div", 52)(1, "button", 53);
|
|
36313
|
-
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_div_26_ng_template_4_div_4_Template_button_click_1_listener() { i0.ɵɵrestoreView(
|
|
36336
|
+
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_div_26_ng_template_4_div_4_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r41); const i_r15 = i0.ɵɵnextContext(2).index; const ctx_r39 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r39.onYesNoClick("Yes", i_r15)); });
|
|
36314
36337
|
i0.ɵɵtext(2, "Yes");
|
|
36315
36338
|
i0.ɵɵelementEnd();
|
|
36316
36339
|
i0.ɵɵelementStart(3, "button", 54);
|
|
36317
|
-
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_div_26_ng_template_4_div_4_Template_button_click_3_listener() { i0.ɵɵrestoreView(
|
|
36340
|
+
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_div_26_ng_template_4_div_4_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r41); const i_r15 = i0.ɵɵnextContext(2).index; const ctx_r42 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r42.onYesNoClick("No", i_r15)); });
|
|
36318
36341
|
i0.ɵɵtext(4, "No");
|
|
36319
36342
|
i0.ɵɵelementEnd()();
|
|
36320
36343
|
} }
|
|
36321
36344
|
function ChatbotLexComponent_div_2_div_26_ng_template_4_div_5_div_1_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
36322
|
-
const
|
|
36345
|
+
const _r49 = i0.ɵɵgetCurrentView();
|
|
36323
36346
|
i0.ɵɵelementStart(0, "button", 53);
|
|
36324
|
-
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_div_26_ng_template_4_div_5_div_1_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
36347
|
+
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_div_26_ng_template_4_div_5_div_1_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r49); const url_r45 = i0.ɵɵnextContext().$implicit; const ctx_r47 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r47.openLink(url_r45)); });
|
|
36325
36348
|
i0.ɵɵtext(1);
|
|
36326
36349
|
i0.ɵɵelementEnd();
|
|
36327
36350
|
} if (rf & 2) {
|
|
36328
|
-
const
|
|
36351
|
+
const url_r45 = i0.ɵɵnextContext().$implicit;
|
|
36329
36352
|
i0.ɵɵadvance(1);
|
|
36330
|
-
i0.ɵɵtextInterpolate(
|
|
36353
|
+
i0.ɵɵtextInterpolate(url_r45);
|
|
36331
36354
|
} }
|
|
36332
36355
|
function ChatbotLexComponent_div_2_div_26_ng_template_4_div_5_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
36333
36356
|
i0.ɵɵelementStart(0, "div");
|
|
36334
36357
|
i0.ɵɵtemplate(1, ChatbotLexComponent_div_2_div_26_ng_template_4_div_5_div_1_button_1_Template, 2, 1, "button", 55);
|
|
36335
36358
|
i0.ɵɵelementEnd();
|
|
36336
36359
|
} if (rf & 2) {
|
|
36337
|
-
const
|
|
36360
|
+
const msg_r14 = i0.ɵɵnextContext(3).$implicit;
|
|
36338
36361
|
i0.ɵɵadvance(1);
|
|
36339
|
-
i0.ɵɵproperty("ngIf",
|
|
36362
|
+
i0.ɵɵproperty("ngIf", msg_r14.from === "bot");
|
|
36340
36363
|
} }
|
|
36341
36364
|
function ChatbotLexComponent_div_2_div_26_ng_template_4_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
36342
36365
|
i0.ɵɵelementStart(0, "div");
|
|
36343
36366
|
i0.ɵɵtemplate(1, ChatbotLexComponent_div_2_div_26_ng_template_4_div_5_div_1_Template, 2, 1, "div", 50);
|
|
36344
36367
|
i0.ɵɵelementEnd();
|
|
36345
36368
|
} if (rf & 2) {
|
|
36346
|
-
const
|
|
36369
|
+
const msg_r14 = i0.ɵɵnextContext(2).$implicit;
|
|
36347
36370
|
i0.ɵɵadvance(1);
|
|
36348
|
-
i0.ɵɵproperty("ngForOf",
|
|
36371
|
+
i0.ɵɵproperty("ngForOf", msg_r14.url);
|
|
36349
36372
|
} }
|
|
36350
36373
|
function ChatbotLexComponent_div_2_div_26_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
36351
36374
|
i0.ɵɵelementStart(0, "div", 47)(1, "div", 48)(2, "span", 49);
|
|
36352
36375
|
i0.ɵɵtemplate(3, ChatbotLexComponent_div_2_div_26_ng_template_4_ng_container_3_Template, 3, 2, "ng-container", 50);
|
|
36353
36376
|
i0.ɵɵelementEnd();
|
|
36354
|
-
i0.ɵɵtemplate(4, ChatbotLexComponent_div_2_div_26_ng_template_4_div_4_Template, 5, 0, "div", 51)(5, ChatbotLexComponent_div_2_div_26_ng_template_4_div_5_Template, 2, 1, "div",
|
|
36377
|
+
i0.ɵɵtemplate(4, ChatbotLexComponent_div_2_div_26_ng_template_4_div_4_Template, 5, 0, "div", 51)(5, ChatbotLexComponent_div_2_div_26_ng_template_4_div_5_Template, 2, 1, "div", 8);
|
|
36355
36378
|
i0.ɵɵelementEnd()();
|
|
36356
36379
|
} if (rf & 2) {
|
|
36357
|
-
const
|
|
36358
|
-
const
|
|
36359
|
-
const
|
|
36360
|
-
const
|
|
36361
|
-
i0.ɵɵclassProp("short-welcome",
|
|
36380
|
+
const ctx_r53 = i0.ɵɵnextContext();
|
|
36381
|
+
const msg_r14 = ctx_r53.$implicit;
|
|
36382
|
+
const i_r15 = ctx_r53.index;
|
|
36383
|
+
const ctx_r18 = i0.ɵɵnextContext(2);
|
|
36384
|
+
i0.ɵɵclassProp("short-welcome", msg_r14.from === "bot" && msg_r14.text === "Hi! How may I help you?");
|
|
36362
36385
|
i0.ɵɵadvance(3);
|
|
36363
|
-
i0.ɵɵproperty("ngForOf",
|
|
36386
|
+
i0.ɵɵproperty("ngForOf", ctx_r18.displayLines(msg_r14.text));
|
|
36364
36387
|
i0.ɵɵadvance(1);
|
|
36365
|
-
i0.ɵɵproperty("ngIf",
|
|
36388
|
+
i0.ɵɵproperty("ngIf", msg_r14.from === "bot" && ctx_r18.isYesNoPrompt(msg_r14.text, i_r15));
|
|
36366
36389
|
i0.ɵɵadvance(1);
|
|
36367
|
-
i0.ɵɵproperty("ngIf",
|
|
36390
|
+
i0.ɵɵproperty("ngIf", msg_r14.url && msg_r14.url.length);
|
|
36368
36391
|
} }
|
|
36369
36392
|
function ChatbotLexComponent_div_2_div_26_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
36370
|
-
const
|
|
36393
|
+
const _r56 = i0.ɵɵgetCurrentView();
|
|
36371
36394
|
i0.ɵɵelementStart(0, "div", 56)(1, "button", 57);
|
|
36372
|
-
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_div_26_div_6_Template_button_click_1_listener() { i0.ɵɵrestoreView(
|
|
36395
|
+
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_div_26_div_6_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r56); const i_r15 = i0.ɵɵnextContext().index; const ctx_r54 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r54.sendFeedback("Thumbs up", i_r15)); });
|
|
36373
36396
|
i0.ɵɵtext(2, "\uD83D\uDC4D");
|
|
36374
36397
|
i0.ɵɵelementEnd();
|
|
36375
36398
|
i0.ɵɵelementStart(3, "button", 58);
|
|
36376
|
-
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_div_26_div_6_Template_button_click_3_listener() { i0.ɵɵrestoreView(
|
|
36399
|
+
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_div_26_div_6_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r56); const i_r15 = i0.ɵɵnextContext().index; const ctx_r57 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r57.sendFeedback("Thumbs down", i_r15)); });
|
|
36377
36400
|
i0.ɵɵtext(4, "\uD83D\uDC4E");
|
|
36378
36401
|
i0.ɵɵelementEnd()();
|
|
36379
36402
|
} }
|
|
@@ -36383,10 +36406,10 @@ function ChatbotLexComponent_div_2_div_26_div_7_Template(rf, ctx) { if (rf & 1)
|
|
|
36383
36406
|
i0.ɵɵpipe(2, "date");
|
|
36384
36407
|
i0.ɵɵelementEnd();
|
|
36385
36408
|
} if (rf & 2) {
|
|
36386
|
-
const
|
|
36387
|
-
i0.ɵɵproperty("ngClass",
|
|
36409
|
+
const msg_r14 = i0.ɵɵnextContext().$implicit;
|
|
36410
|
+
i0.ɵɵproperty("ngClass", msg_r14.from === "bot" ? "message-time-bot" : "message-time");
|
|
36388
36411
|
i0.ɵɵadvance(1);
|
|
36389
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 2,
|
|
36412
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 2, msg_r14.timestamp, "EEE MMM dd yyyy 'at' hh:mm:ss a"), " ");
|
|
36390
36413
|
} }
|
|
36391
36414
|
function ChatbotLexComponent_div_2_div_26_Template(rf, ctx) { if (rf & 1) {
|
|
36392
36415
|
i0.ɵɵelementStart(0, "div", 36)(1, "div", 37);
|
|
@@ -36395,32 +36418,32 @@ function ChatbotLexComponent_div_2_div_26_Template(rf, ctx) { if (rf & 1) {
|
|
|
36395
36418
|
i0.ɵɵtemplate(7, ChatbotLexComponent_div_2_div_26_div_7_Template, 3, 5, "div", 42);
|
|
36396
36419
|
i0.ɵɵelementEnd();
|
|
36397
36420
|
} if (rf & 2) {
|
|
36398
|
-
const
|
|
36399
|
-
const
|
|
36400
|
-
const
|
|
36401
|
-
const
|
|
36402
|
-
i0.ɵɵproperty("ngClass",
|
|
36421
|
+
const msg_r14 = ctx.$implicit;
|
|
36422
|
+
const i_r15 = ctx.index;
|
|
36423
|
+
const _r19 = i0.ɵɵreference(5);
|
|
36424
|
+
const ctx_r12 = i0.ɵɵnextContext(2);
|
|
36425
|
+
i0.ɵɵproperty("ngClass", msg_r14.from);
|
|
36403
36426
|
i0.ɵɵadvance(2);
|
|
36404
|
-
i0.ɵɵproperty("ngIf",
|
|
36427
|
+
i0.ɵɵproperty("ngIf", msg_r14.from === "bot");
|
|
36405
36428
|
i0.ɵɵadvance(1);
|
|
36406
|
-
i0.ɵɵproperty("ngIf",
|
|
36429
|
+
i0.ɵɵproperty("ngIf", msg_r14.from === "bot" && ctx_r12.isStarRatingPrompt(msg_r14.text, i_r15))("ngIfElse", _r19);
|
|
36407
36430
|
i0.ɵɵadvance(3);
|
|
36408
|
-
i0.ɵɵproperty("ngIf",
|
|
36431
|
+
i0.ɵɵproperty("ngIf", msg_r14.from === "bot" && (msg_r14.text == null ? null : msg_r14.text.trim()) != "Hi! How may I help you?" && !ctx_r12.isMessageRated(i_r15) && i_r15 === ctx_r12.messages.length - 1 && !ctx_r12.isAck);
|
|
36409
36432
|
i0.ɵɵadvance(1);
|
|
36410
|
-
i0.ɵɵproperty("ngIf",
|
|
36433
|
+
i0.ɵɵproperty("ngIf", msg_r14.timestamp);
|
|
36411
36434
|
} }
|
|
36412
36435
|
function ChatbotLexComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
36413
|
-
const
|
|
36414
|
-
i0.ɵɵelementStart(0, "div",
|
|
36415
|
-
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_2_listener() { i0.ɵɵrestoreView(
|
|
36416
|
-
i0.ɵɵtemplate(3, ChatbotLexComponent_div_2_span_3_Template, 2, 0, "span",
|
|
36436
|
+
const _r61 = i0.ɵɵgetCurrentView();
|
|
36437
|
+
i0.ɵɵelementStart(0, "div", 11)(1, "div", 12)(2, "button", 13);
|
|
36438
|
+
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r61); const ctx_r60 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r60.toggleExpand()); });
|
|
36439
|
+
i0.ɵɵtemplate(3, ChatbotLexComponent_div_2_span_3_Template, 2, 0, "span", 8);
|
|
36417
36440
|
i0.ɵɵelementEnd();
|
|
36418
36441
|
i0.ɵɵelementStart(4, "button", 14);
|
|
36419
|
-
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_4_listener() { i0.ɵɵrestoreView(
|
|
36442
|
+
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r61); const ctx_r62 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r62.minimizeChat()); });
|
|
36420
36443
|
i0.ɵɵtext(5, " _ ");
|
|
36421
36444
|
i0.ɵɵelementEnd();
|
|
36422
36445
|
i0.ɵɵelementStart(6, "button", 15);
|
|
36423
|
-
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_6_listener() { i0.ɵɵrestoreView(
|
|
36446
|
+
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r61); const ctx_r63 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r63.closeChat()); });
|
|
36424
36447
|
i0.ɵɵtext(7, " \u2715 ");
|
|
36425
36448
|
i0.ɵɵelementEnd()();
|
|
36426
36449
|
i0.ɵɵelementStart(8, "div", 16)(9, "span", 17);
|
|
@@ -36434,22 +36457,22 @@ function ChatbotLexComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
36434
36457
|
i0.ɵɵtext(17);
|
|
36435
36458
|
i0.ɵɵelementEnd()()()();
|
|
36436
36459
|
i0.ɵɵelementStart(18, "div", 24)(19, "button", 25);
|
|
36437
|
-
i0.ɵɵlistener("mouseenter", function ChatbotLexComponent_div_2_Template_button_mouseenter_19_listener() { i0.ɵɵrestoreView(
|
|
36460
|
+
i0.ɵɵlistener("mouseenter", function ChatbotLexComponent_div_2_Template_button_mouseenter_19_listener() { i0.ɵɵrestoreView(_r61); const ctx_r64 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r64.getSessionID()); })("click", function ChatbotLexComponent_div_2_Template_button_click_19_listener() { i0.ɵɵrestoreView(_r61); const ctx_r65 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r65.copySessionId()); });
|
|
36438
36461
|
i0.ɵɵtext(20, " \uD83D\uDEC8 ");
|
|
36439
36462
|
i0.ɵɵelementEnd();
|
|
36440
36463
|
i0.ɵɵelementStart(21, "button", 26);
|
|
36441
|
-
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_21_listener() { i0.ɵɵrestoreView(
|
|
36464
|
+
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_21_listener() { i0.ɵɵrestoreView(_r61); const ctx_r66 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r66.refreshChat()); });
|
|
36442
36465
|
i0.ɵɵtext(22, " \u27F3 ");
|
|
36443
36466
|
i0.ɵɵelementEnd()()();
|
|
36444
36467
|
i0.ɵɵelementStart(23, "div", 27)(24, "div", 28, 29);
|
|
36445
36468
|
i0.ɵɵtemplate(26, ChatbotLexComponent_div_2_div_26_Template, 8, 6, "div", 30);
|
|
36446
36469
|
i0.ɵɵelementEnd()();
|
|
36447
36470
|
i0.ɵɵelementStart(27, "div", 31)(28, "div", 32)(29, "textarea", 33, 34);
|
|
36448
|
-
i0.ɵɵlistener("ngModelChange", function ChatbotLexComponent_div_2_Template_textarea_ngModelChange_29_listener($event) { i0.ɵɵrestoreView(
|
|
36471
|
+
i0.ɵɵlistener("ngModelChange", function ChatbotLexComponent_div_2_Template_textarea_ngModelChange_29_listener($event) { i0.ɵɵrestoreView(_r61); const ctx_r67 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r67.userInput = $event); })("input", function ChatbotLexComponent_div_2_Template_textarea_input_29_listener() { i0.ɵɵrestoreView(_r61); const ctx_r68 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r68.autoGrow()); })("keydown.enter", function ChatbotLexComponent_div_2_Template_textarea_keydown_enter_29_listener($event) { i0.ɵɵrestoreView(_r61); const ctx_r69 = i0.ɵɵnextContext(); $event.preventDefault(); return i0.ɵɵresetView(ctx_r69.handleEnter()); });
|
|
36449
36472
|
i0.ɵɵtext(31, " ");
|
|
36450
36473
|
i0.ɵɵelementEnd()();
|
|
36451
36474
|
i0.ɵɵelementStart(32, "button", 35);
|
|
36452
|
-
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_32_listener() { i0.ɵɵrestoreView(
|
|
36475
|
+
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_32_listener() { i0.ɵɵrestoreView(_r61); const ctx_r70 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r70.sendMessage()); });
|
|
36453
36476
|
i0.ɵɵtext(33, " Send ");
|
|
36454
36477
|
i0.ɵɵelementEnd()()();
|
|
36455
36478
|
} if (rf & 2) {
|
|
@@ -36508,7 +36531,8 @@ class ChatbotLexComponent {
|
|
|
36508
36531
|
this.infoVisible = false;
|
|
36509
36532
|
this.isSessionActive = true;
|
|
36510
36533
|
this.showImportantMessage = false;
|
|
36511
|
-
this.
|
|
36534
|
+
this.importantMessageAccepted = false;
|
|
36535
|
+
this.importantMessageType = 'employer';
|
|
36512
36536
|
this.clientFilter = '';
|
|
36513
36537
|
this.messages = [];
|
|
36514
36538
|
this.userInput = '';
|
|
@@ -36565,6 +36589,14 @@ class ChatbotLexComponent {
|
|
|
36565
36589
|
}
|
|
36566
36590
|
ngOnInit() {
|
|
36567
36591
|
console.log("CHATBOT ngOnItit clientFilter:", this.clientFilter);
|
|
36592
|
+
this.lexChat.importantmessage$.subscribe(type => {
|
|
36593
|
+
this.importantMessageType = type;
|
|
36594
|
+
if (!this.importantMessageAccepted) {
|
|
36595
|
+
this.showImportantMessage = true;
|
|
36596
|
+
return;
|
|
36597
|
+
}
|
|
36598
|
+
this.startAmeliaChat();
|
|
36599
|
+
});
|
|
36568
36600
|
this.lexChat.chatOpen$.subscribe(open => {
|
|
36569
36601
|
if (!open) {
|
|
36570
36602
|
this.chatOpen = false;
|
|
@@ -36579,6 +36611,9 @@ class ChatbotLexComponent {
|
|
|
36579
36611
|
// console.log("service chatID theft:", this.lexChat.chatIDtheft);
|
|
36580
36612
|
// console.log("component chatID theft before", this.chatIDtheft);
|
|
36581
36613
|
this.chatIDtheft = this.lexChat.chatIDtheft;
|
|
36614
|
+
if (this.chatIDtheft) {
|
|
36615
|
+
this.showImportantMessage = false;
|
|
36616
|
+
}
|
|
36582
36617
|
this.isSessionActive = true;
|
|
36583
36618
|
this.isDisabled = false;
|
|
36584
36619
|
this.botOffline = false;
|
|
@@ -36629,21 +36664,13 @@ class ChatbotLexComponent {
|
|
|
36629
36664
|
this.chatIDtheft = false;
|
|
36630
36665
|
}
|
|
36631
36666
|
handleCloudClick() {
|
|
36632
|
-
// console.log('handleCloudClick fired',{
|
|
36633
|
-
// isSessionactive: this.isSessionActive,
|
|
36634
|
-
// isendSession: this.is_end_session,
|
|
36635
|
-
// botOffline: this.botOffline,
|
|
36636
|
-
// messageCount: this.messages.length,
|
|
36637
|
-
// chatOpen: this.chatOpen
|
|
36638
|
-
// });
|
|
36639
36667
|
if (this.isSessionActive &&
|
|
36640
36668
|
!this.is_end_session &&
|
|
36641
36669
|
this.messages.length > 0) {
|
|
36642
36670
|
this.toggleChat();
|
|
36643
36671
|
return;
|
|
36644
36672
|
}
|
|
36645
|
-
if (!this.
|
|
36646
|
-
this.imporantMessageShown = true;
|
|
36673
|
+
if (!this.importantMessageAccepted) {
|
|
36647
36674
|
this.showImportantMessage = true;
|
|
36648
36675
|
return;
|
|
36649
36676
|
}
|
|
@@ -36661,11 +36688,9 @@ class ChatbotLexComponent {
|
|
|
36661
36688
|
this.showImportantMessage = true;
|
|
36662
36689
|
}
|
|
36663
36690
|
continueToAmelia() {
|
|
36691
|
+
this.importantMessageAccepted = true;
|
|
36664
36692
|
this.showImportantMessage = false;
|
|
36665
|
-
this.
|
|
36666
|
-
regenerateSessionId: true
|
|
36667
|
-
});
|
|
36668
|
-
this.lexChat.openChat(false);
|
|
36693
|
+
this.startAmeliaChat();
|
|
36669
36694
|
}
|
|
36670
36695
|
closeImportantMessage() {
|
|
36671
36696
|
this.showImportantMessage = false;
|
|
@@ -37030,19 +37055,19 @@ class ChatbotLexComponent {
|
|
|
37030
37055
|
let _t;
|
|
37031
37056
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.messageInput = _t.first);
|
|
37032
37057
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.chatWindow = _t.first);
|
|
37033
|
-
} }, 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"], [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"], [
|
|
37034
|
-
i0.ɵɵtemplate(0, ChatbotLexComponent_button_0_Template, 2, 0, "button", 0)(1, ChatbotLexComponent_div_1_Template, 11,
|
|
37058
|
+
} }, 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, "bubble"], ["class", "amelia-message-icon", "src", "assets/icon/amelia-new-icon.png", "alt", "Amelia", 4, "ngIf"], [4, "ngIf", "ngIfElse"], ["normalBubble", ""], ["class", "feedback", 4, "ngIf"], [3, "ngClass", 4, "ngIf"], ["src", "assets/icon/amelia-new-icon.png", "alt", "Amelia", 1, "amelia-message-icon"], [1, "star-group", 3, "mouseleave"], ["type", "button", "class", "star", 3, "filled", "title", "mouseenter", "click", 4, "ngFor", "ngForOf"], ["type", "button", 1, "star", 3, "title", "mouseenter", "click"], [1, "message-wrapper"], [1, "bubble-content"], [1, "formatted-text"], [4, "ngFor", "ngForOf"], ["class", "yn-group", 4, "ngIf"], [1, "yn-group"], [1, "yn-btn", "yes", 3, "click"], [1, "yn-btn", "no", 3, "click"], ["class", "yn-btn yes", 3, "click", 4, "ngIf"], [1, "feedback"], ["aria-label", "Thumbs up", "title", "Thumbs up", 1, "fb-btn", "up", 3, "click"], ["aria-label", "Thumbs down", "title", "Thumbs down", 1, "fb-btn", "down", 3, "click"]], template: function ChatbotLexComponent_Template(rf, ctx) { if (rf & 1) {
|
|
37059
|
+
i0.ɵɵtemplate(0, ChatbotLexComponent_button_0_Template, 2, 0, "button", 0)(1, ChatbotLexComponent_div_1_Template, 11, 2, "div", 1)(2, ChatbotLexComponent_div_2_Template, 34, 17, "div", 2);
|
|
37035
37060
|
} if (rf & 2) {
|
|
37036
37061
|
i0.ɵɵproperty("ngIf", !ctx.chatOpen);
|
|
37037
37062
|
i0.ɵɵadvance(1);
|
|
37038
37063
|
i0.ɵɵproperty("ngIf", ctx.showImportantMessage);
|
|
37039
37064
|
i0.ɵɵadvance(1);
|
|
37040
37065
|
i0.ɵɵproperty("ngIf", ctx.chatOpen);
|
|
37041
|
-
} }, dependencies: [i1$4.NgClass, i1$4.NgForOf, i1$4.NgIf, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgModel, i1$4.DatePipe], styles: [".chatbot-fab[_ngcontent-%COMP%]{position:fixed;bottom:20px;right:20px;width:56px;height:56px;border-radius:50%;background:transparent;color:#fff;border:none;font-size:24px;cursor:pointer;box-shadow:none;z-index:9998;display:flex;align-items:center;justify-content:center;overflow:visible}.chatbot-fab[_ngcontent-%COMP%]:hover{background:#00a5bb}.chatbot-fab-icon[_ngcontent-%COMP%]{width:70px;height:70px;object-fit:contain;border-radius:0;background:transparent;display:block}.chat-popup[_ngcontent-%COMP%]{position:fixed;bottom:20px;right:20px;width:380px;height:520px;max-height:80vh;display:flex;flex-direction:column;background:#fff;border:1px solid #e6e9ee;border-radius:12px;box-shadow:0 12px 24px #0000001f;overflow:visible!important;z-index:9999;padding-top:30px;overflow:visible}.chat-popup-header[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:36px;height:36px;min-width:36px;max-width:36px;border-radius:50%;object-fit:cover}.chat-popup[_ngcontent-%COMP%]:not(.expanded) .message-wrapper[_ngcontent-%COMP%]{max-width:85%!important}.chat-popup.expanded[_ngcontent-%COMP%] .bot[_ngcontent-%COMP%] .message-wrapper[_ngcontent-%COMP%]{width:max-content!important;max-width:85%!important;min-width:0!important;align-items:flex-start!important}.chat-popup.expanded[_ngcontent-%COMP%] .user[_ngcontent-%COMP%] .message-wrapper[_ngcontent-%COMP%]{width:-moz-fit-content!important;width:fit-content!important;max-width:70%!important;min-width:0!important}.chat-popup.expanded[_ngcontent-%COMP%] .bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{width:-moz-fit-content!important;width:fit-content!important;max-width:85%!important;min-width:0!important;align-self:flex-start!important;box-sizing:border-box!important}.chat-popup.expanded[_ngcontent-%COMP%] .bot[_ngcontent-%COMP%] .bubble.bubble[_ngcontent-%COMP%]:has(.star-group){width:300px!important;max-width:85%!important;min-width:0!important;align-self:flex-start!important;box-sizing:border-box!important}.chat-popup-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;background:var(--ion-color-primary)!important;color:#fff;padding:4px 12px;font-weight:600;flex-shrink:0}.icon-label[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px}.text-block[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column;line-height:1.1}.label-text[_ngcontent-%COMP%]{font-size:15px;font-weight:600}.status[_ngcontent-%COMP%]{font-size:11px;margin-top:2px;text-transform:lowercase;opacity:.95}.status.online-text[_ngcontent-%COMP%]{color:#b9f6ca}.status.offline-text[_ngcontent-%COMP%]{color:#ffcdd2}.chat-popup-actions[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px}.info-btn[_ngcontent-%COMP%], .info-btn[_ngcontent-%COMP%]:hover, .info-btn[_ngcontent-%COMP%]:focus, .info-btn[_ngcontent-%COMP%]:active{background:transparent;border:none;box-shadow:none;outline:none}.action-btn[_ngcontent-%COMP%]{background:transparent;color:#fff;border:none;font-size:16px;cursor:pointer;width:28px;height:28px;line-height:1;padding:0;border-radius:4px}.action-btn[_ngcontent-%COMP%]:hover{background:#ffffff26}.chat-body[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;overflow:hidden;min-height:0}.chat-window[_ngcontent-%COMP%]{padding:12px;flex:1;overflow-y:auto;background:#f6f8fb;min-height:0;width:100%;box-sizing:border-box}.user[_ngcontent-%COMP%], .bot[_ngcontent-%COMP%]{margin:8px 0;display:flex;width:100%;min-width:0;box-sizing:border-box}.user[_ngcontent-%COMP%]{justify-content:flex-end}.bot[_ngcontent-%COMP%]{justify-content:flex-start}.bot[_ngcontent-%COMP%], .user[_ngcontent-%COMP%]{width:100%;min-width:0;box-sizing:border-box;display:flex}.bubble[_ngcontent-%COMP%]{display:inline-block;padding:8px 12px;border-radius:14px;font-size:14px;line-height:1.3;word-wrap:break-word;position:relative}.user[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{background:#e8eaf6;color:#000;border-bottom-right-radius:4px;margin-left:auto;display:flex;justify-content:flex-end;align-self:flex-end}.chat-window[_ngcontent-%COMP%] .bot[_ngcontent-%COMP%]:first-of-type .bubble[_ngcontent-%COMP%] .feedback[_ngcontent-%COMP%]{display:none!important}.fb-btn[_ngcontent-%COMP%]{appearance:none;border:none;background:transparent;cursor:pointer;font-size:13px;line-height:1;padding:2px 4px;border-radius:4px;opacity:.9}.fb-btn[_ngcontent-%COMP%]:hover{background:#00bcd414}.fb-btn.up[_ngcontent-%COMP%]{color:#16a34a}.fb-btn.down[_ngcontent-%COMP%]{color:#dc2626}.yn-group[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;margin-top:10px}.yn-btn[_ngcontent-%COMP%]{appearance:none;border:1px solid #cfd8e3;background:#fff;color:#111827;font-size:12px;padding:4px 8px;border-radius:999px;cursor:pointer;margin-right:6px}.yn-btn[_ngcontent-%COMP%]:hover{background:#f3f4f6}.yn-btn.yes[_ngcontent-%COMP%]{border-color:#16a34a33}.yn-btn.no[_ngcontent-%COMP%]{border-color:#dc262633}.star-group[_ngcontent-%COMP%]{display:inline-flex;gap:6px;align-items:center;vertical-align:middle;margin-left:2px;margin-top:2px}.star-group[_ngcontent-%COMP%] .star[_ngcontent-%COMP%]{appearance:none;border:none;background:transparent;cursor:pointer;font-size:18px;line-height:1;color:#444547;padding:0 1px;transition:transform .08s ease,color .08s ease}.star-group[_ngcontent-%COMP%] .star.filled[_ngcontent-%COMP%]{color:#f59e0b}.star-group[_ngcontent-%COMP%] .star[_ngcontent-%COMP%]:hover{transform:scale(1.08)}.input-row[_ngcontent-%COMP%]{display:flex;gap:8px;padding:10px;background:#fff;border-top:1px solid #e6e9ee;align-items:flex-end;flex-shrink:0}.chat-input-wrapper[_ngcontent-%COMP%]{flex:1;border-radius:8px;border:1px solid #d1d5db;overflow:hidden;background:#fff;display:flex}.chat-input[_ngcontent-%COMP%]{width:100%;resize:none;border:none;outline:none;padding:8px 10px;font-size:14px;line-height:1.2;min-height:20px;max-height:100px;overflow-y:auto;box-sizing:border-box;background:transparent}.chat-input[_ngcontent-%COMP%]:focus{outline:none;box-shadow:none}.send-btn[_ngcontent-%COMP%]{height:36px;align-self:flex-end;padding:0 14px;background:var(--ion-color-primary)!important;color:#fff!important;border:none;border-radius:8px;cursor:pointer;white-space:nowrap;font-size:14px}.send-btn[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.icon-label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.amelia-header-icon[_ngcontent-%COMP%]{width:56px;height:56px;border-radius:0;object-fit:contain;background:transparent;flex-shrink:0}.text-block[_ngcontent-%COMP%]{display:flex;flex-direction:column;line-height:1.1}.bubble.bot[_ngcontent-%COMP%], .bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%] .feedback-block[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;flex:1;min-width:0}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%] .feedback[_ngcontent-%COMP%]{position:absolute;right:0;bottom:-24px;display:inline-flex;gap:6px;align-items:center;width:auto;margin:0}.feedback-message[_ngcontent-%COMP%]{width:100%;display:block;white-space:normal;overflow-wrap:anywhere}.feedback-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;width:100%;justify-content:flex-start}.feedback-actions[_ngcontent-%COMP%] .yn-btn[_ngcontent-%COMP%]{flex:0 0 auto}.bot[_ngcontent-%COMP%] .feedback[_ngcontent-%COMP%] .fb-btn[_ngcontent-%COMP%]{border:none;background:transparent;padding:2px;margin:0;cursor:pointer;flex:0 0 auto}.bubble-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;flex:0 1 auto;width:auto;max-width:100%;min-width:0;overflow:hidden;box-sizing:border-box}.formatted-text[_ngcontent-%COMP%]{display:block;white-space:normal;overflow-wrap:anywhere;word-break:break-word;box-sizing:border-box}.feedback[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-top:8px;width:100%}.amelia-message-icon[_ngcontent-%COMP%]{width:28px;height:28px;border-radius:50%;object-fit:cover;background:#fff;flex-shrink:0;flex:0 0 auto}.chat-popup.expanded[_ngcontent-%COMP%]{width:650px!important;height:86vh!important;position:fixed!important;bottom:16px!important;right:40px!important;left:auto!important;max-width:650px!important;max-height:calc(100vh - 80px)!important;border-radius:8px!important;display:flex!important;flex-direction:column!important;visibility:visible!important;opacity:1!important;z-index:9999!important}.chat-popup.expanded[_ngcontent-%COMP%] .chat-body[_ngcontent-%COMP%]{width:100%!important;align-self:stretch!important}.chat-popup.expanded[_ngcontent-%COMP%] .short-welcome[_ngcontent-%COMP%]{width:-moz-fit-content!important;width:fit-content!important;max-width:100%!important;min-width:0!important;flex:0 0 auto!important}.chat-popup.expanded[_ngcontent-%COMP%] .bot[_ngcontent-%COMP%]:has(.short-welcome) .bubble[_ngcontent-%COMP%]{width:-moz-fit-content!important;width:fit-content!important;max-width:none!important;overflow:visible!important;box-sizing:border-box!important}.chat-popup.expanded[_ngcontent-%COMP%] .short-welcome[_ngcontent-%COMP%] .bubble-content[_ngcontent-%COMP%]{width:auto!important;max-width:100%!important;min-width:0!important;flex:0 1 auto!important}.bot[_ngcontent-%COMP%] .formatted-text[_ngcontent-%COMP%]{white-space:normal;overflow-wrap:anywhere;word-break:break-word;display:block;width:auto;max-width:100%;min-width:0}.chat-popup.expanded[_ngcontent-%COMP%] .short-welcome[_ngcontent-%COMP%] .formatted-text[_ngcontent-%COMP%]{display:inline-block!important;width:auto!important;max-width:100%!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}.chat-top-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex=end;align-items:center;gap:6px;padding:4px 8px;background:transparent;flex-shrink:0;position:absolute;top:-1px;right:0!important;width:auto!important;z-index:10000;position:absolute!important}.top-action-btn[_ngcontent-%COMP%]{border:none;background:transparent!important;color:#000!important;font-size:16px;font-weight:700;line-height:22px;cursor:pointer;padding:0;border-radius:none!important;width:24px;height:24px;text-align:center}.top-action-btn[_ngcontent-%COMP%]:hover{background:#eee;border-radius:4px}.top-action-btn[_ngcontent-%COMP%] .pi[_ngcontent-%COMP%]{font-size:16px}.chat-top-actions.top-action-btn[_ngcontent-%COMP%]{color:#000!important;background:transparent!important;border:none!important;font-size:16px;font-weight:700;cursor:pointer;width:24px;height:24px;line-height:24px;padding:0;border-radius:5px 0 0}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.star-group){display:grid!important;grid-template-columns:32px max-content!important;grid-template-rows:auto auto!important;column-gap:8px!important;row-gap:6px!important;align-items:start!important;padding:12px!important;box-sizing:border-box!important;overflow:visible!important;width:300px!important;min-width:0!important;max-width:calc(100% - 24px)!important}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.star-group) .amelia-message-icon[_ngcontent-%COMP%]{grid-column:1!important;grid-row:1 / span 2!important;margin-top:0!important}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.star-group) > div[_ngcontent-%COMP%]:first-of-type{grid-column:2!important;grid-row:1!important;white-space:nowrap!important;min-width:0}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.star-group) .star-group[_ngcontent-%COMP%]{grid-column:2!important;grid-row:2!important;display:flex!important;flex-direction:row!important;gap:8px!important;margin:0!important;padding:0!important;position:static!important;inset:auto!important}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.yn-group){display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;grid-template-rows:auto auto!important;column-gap:8px!important;row-gap:8px!important;align-items:start!important;width:-moz-fit-content!important;width:fit-content!important;max-width:100%!important;min-width:0!important;padding:10px!important;box-sizing:border-box!important;overflow:hidden!important}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.yn-group) .amelia-message-icon[_ngcontent-%COMP%]{grid-column:1!important;grid-row:1 / span 2!important}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.yn-group) .formatted-text[_ngcontent-%COMP%]{display:block!important;width:auto!important;max-width:100%!important;min-width:0!important;grid-column:2!important;grid-row:1!important;white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.yn-group) .yn-group[_ngcontent-%COMP%]{grid-column:2!important;grid-row:2!important;display:flex!important;flex-direction:row!important;gap:6px!important;margin:10px 0 0!important;padding:0!important;position:static!important}.message-time[_ngcontent-%COMP%]{font-size:11px;color:#6b7280;margin-top:3px;padding:0 6px;text-align:right;white-space:nowrap}.message-time-bot[_ngcontent-%COMP%]{font-size:11px;color:#6b7280;margin-left:10px;padding:0 6px;margin-right:auto;white-space:nowrap}.message-wrapper[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column;width:max-content;max-width:78%}.bot[_ngcontent-%COMP%] .message-wrapper[_ngcontent-%COMP%]{align-items:flex-start}.user[_ngcontent-%COMP%] .message-wrapper[_ngcontent-%COMP%]{align-items:flex-end;margin-left:auto}.bot[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;width:-moz-fit-content;width:fit-content;max-width:85%;min-width:0}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{background:#fff;color:#111827;border:1px solid #e6e9ee;border-bottom-left-radius:4px;margin-bottom:30px;margin-right:auto;display:inline-flex;align-items:flex-start;width:-moz-fit-content!important;width:fit-content!important;max-width:100%!important;min-width:0;box-sizing:border-box;overflow:visible!important;position:relative}.bot[_ngcontent-%COMP%] .bubble-content[_ngcontent-%COMP%]{min-width:0;width:auto;max-width:100%;box-sizing:border-box;display:block;overflow-wrap:anywhere;word-break:break-word}.bot[_ngcontent-%COMP%] .message-time-bot[_ngcontent-%COMP%]{width:0;min-width:0;white-space:nowrap;overflow:visible;align-self:flex-start;text-align:left;margin-top:-26px;margin-left:0}.user[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end;width:100%;min-width:0}.user[_ngcontent-%COMP%] .bubble-content[_ngcontent-%COMP%]{width:auto;min-width:0;max-width:280px;width:max-content;text-align:left;white-space:normal;display:inline-block;overflow-wrap:break-word;box-sizing:border-box;word-break:normal}.user[_ngcontent-%COMP%] .formatted-text[_ngcontent-%COMP%]{white-space:normal;word-break:normal;overflow-wrap:break-word;max-width:100%}.status-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px}.status-dot[_ngcontent-%COMP%]{width:7px;height:7px;border-radius:50%;background-color:#2ecc71!important;flex-shrink:0}.status-dot.offline[_ngcontent-%COMP%]{background:#9e9e9e!important}.online-text[_ngcontent-%COMP%], .offline-text[_ngcontent-%COMP%]{text-transform:none!important}.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%]{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;top:12px;right:16px;z-index:2;padding:0;border:0;background:transparent;color:#fff!important;font-size:38px;line-height:1;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}}"] }); }
|
|
37066
|
+
} }, dependencies: [i1$4.NgClass, i1$4.NgForOf, i1$4.NgIf, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgModel, i1$4.DatePipe], styles: [".chatbot-fab[_ngcontent-%COMP%]{position:fixed;bottom:20px;right:20px;width:56px;height:56px;border-radius:50%;background:transparent;color:#fff;border:none;font-size:24px;cursor:pointer;box-shadow:none;z-index:9998;display:flex;align-items:center;justify-content:center;overflow:visible}.chatbot-fab[_ngcontent-%COMP%]:hover{background:#00a5bb}.chatbot-fab-icon[_ngcontent-%COMP%]{width:70px;height:70px;object-fit:contain;border-radius:0;background:transparent;display:block}.chat-popup[_ngcontent-%COMP%]{position:fixed;bottom:20px;right:20px;width:380px;height:520px;max-height:80vh;display:flex;flex-direction:column;background:#fff;border:1px solid #e6e9ee;border-radius:12px;box-shadow:0 12px 24px #0000001f;overflow:visible!important;z-index:9999;padding-top:30px;overflow:visible}.chat-popup-header[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:36px;height:36px;min-width:36px;max-width:36px;border-radius:50%;object-fit:cover}.chat-popup[_ngcontent-%COMP%]:not(.expanded) .message-wrapper[_ngcontent-%COMP%]{max-width:85%!important}.chat-popup.expanded[_ngcontent-%COMP%] .bot[_ngcontent-%COMP%] .message-wrapper[_ngcontent-%COMP%]{width:max-content!important;max-width:85%!important;min-width:0!important;align-items:flex-start!important}.chat-popup.expanded[_ngcontent-%COMP%] .user[_ngcontent-%COMP%] .message-wrapper[_ngcontent-%COMP%]{width:-moz-fit-content!important;width:fit-content!important;max-width:70%!important;min-width:0!important}.chat-popup.expanded[_ngcontent-%COMP%] .bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{width:-moz-fit-content!important;width:fit-content!important;max-width:85%!important;min-width:0!important;align-self:flex-start!important;box-sizing:border-box!important}.chat-popup.expanded[_ngcontent-%COMP%] .bot[_ngcontent-%COMP%] .bubble.bubble[_ngcontent-%COMP%]:has(.star-group){width:300px!important;max-width:85%!important;min-width:0!important;align-self:flex-start!important;box-sizing:border-box!important}.chat-popup-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;background:var(--ion-color-primary)!important;color:#fff;padding:4px 12px;font-weight:600;flex-shrink:0}.icon-label[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px}.text-block[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column;line-height:1.1}.label-text[_ngcontent-%COMP%]{font-size:15px;font-weight:600}.status[_ngcontent-%COMP%]{font-size:11px;margin-top:2px;text-transform:lowercase;opacity:.95}.status.online-text[_ngcontent-%COMP%]{color:#b9f6ca}.status.offline-text[_ngcontent-%COMP%]{color:#ffcdd2}.chat-popup-actions[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px}.info-btn[_ngcontent-%COMP%], .info-btn[_ngcontent-%COMP%]:hover, .info-btn[_ngcontent-%COMP%]:focus, .info-btn[_ngcontent-%COMP%]:active{background:transparent;border:none;box-shadow:none;outline:none}.action-btn[_ngcontent-%COMP%]{background:transparent;color:#fff;border:none;font-size:16px;cursor:pointer;width:28px;height:28px;line-height:1;padding:0;border-radius:4px}.action-btn[_ngcontent-%COMP%]:hover{background:#ffffff26}.chat-body[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;overflow:hidden;min-height:0}.chat-window[_ngcontent-%COMP%]{padding:12px;flex:1;overflow-y:auto;background:#f6f8fb;min-height:0;width:100%;box-sizing:border-box}.user[_ngcontent-%COMP%], .bot[_ngcontent-%COMP%]{margin:8px 0;display:flex;width:100%;min-width:0;box-sizing:border-box}.user[_ngcontent-%COMP%]{justify-content:flex-end}.bot[_ngcontent-%COMP%]{justify-content:flex-start}.bot[_ngcontent-%COMP%], .user[_ngcontent-%COMP%]{width:100%;min-width:0;box-sizing:border-box;display:flex}.bubble[_ngcontent-%COMP%]{display:inline-block;padding:8px 12px;border-radius:14px;font-size:14px;line-height:1.3;word-wrap:break-word;position:relative}.user[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{background:#e8eaf6;color:#000;border-bottom-right-radius:4px;margin-left:auto;display:flex;justify-content:flex-end;align-self:flex-end}.chat-window[_ngcontent-%COMP%] .bot[_ngcontent-%COMP%]:first-of-type .bubble[_ngcontent-%COMP%] .feedback[_ngcontent-%COMP%]{display:none!important}.fb-btn[_ngcontent-%COMP%]{appearance:none;border:none;background:transparent;cursor:pointer;font-size:13px;line-height:1;padding:2px 4px;border-radius:4px;opacity:.9}.fb-btn[_ngcontent-%COMP%]:hover{background:#00bcd414}.fb-btn.up[_ngcontent-%COMP%]{color:#16a34a}.fb-btn.down[_ngcontent-%COMP%]{color:#dc2626}.yn-group[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;margin-top:10px}.yn-btn[_ngcontent-%COMP%]{appearance:none;border:1px solid #cfd8e3;background:#fff;color:#111827;font-size:12px;padding:4px 8px;border-radius:999px;cursor:pointer;margin-right:6px}.yn-btn[_ngcontent-%COMP%]:hover{background:#f3f4f6}.yn-btn.yes[_ngcontent-%COMP%]{border-color:#16a34a33}.yn-btn.no[_ngcontent-%COMP%]{border-color:#dc262633}.star-group[_ngcontent-%COMP%]{display:inline-flex;gap:6px;align-items:center;vertical-align:middle;margin-left:2px;margin-top:2px}.star-group[_ngcontent-%COMP%] .star[_ngcontent-%COMP%]{appearance:none;border:none;background:transparent;cursor:pointer;font-size:18px;line-height:1;color:#444547;padding:0 1px;transition:transform .08s ease,color .08s ease}.star-group[_ngcontent-%COMP%] .star.filled[_ngcontent-%COMP%]{color:#f59e0b}.star-group[_ngcontent-%COMP%] .star[_ngcontent-%COMP%]:hover{transform:scale(1.08)}.input-row[_ngcontent-%COMP%]{display:flex;gap:8px;padding:10px;background:#fff;border-top:1px solid #e6e9ee;align-items:flex-end;flex-shrink:0}.chat-input-wrapper[_ngcontent-%COMP%]{flex:1;border-radius:8px;border:1px solid #d1d5db;overflow:hidden;background:#fff;display:flex}.chat-input[_ngcontent-%COMP%]{width:100%;resize:none;border:none;outline:none;padding:8px 10px;font-size:14px;line-height:1.2;min-height:20px;max-height:100px;overflow-y:auto;box-sizing:border-box;background:transparent}.chat-input[_ngcontent-%COMP%]:focus{outline:none;box-shadow:none}.send-btn[_ngcontent-%COMP%]{height:36px;align-self:flex-end;padding:0 14px;background:var(--ion-color-primary)!important;color:#fff!important;border:none;border-radius:8px;cursor:pointer;white-space:nowrap;font-size:14px}.send-btn[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.icon-label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.amelia-header-icon[_ngcontent-%COMP%]{width:56px;height:56px;border-radius:0;object-fit:contain;background:transparent;flex-shrink:0}.text-block[_ngcontent-%COMP%]{display:flex;flex-direction:column;line-height:1.1}.bubble.bot[_ngcontent-%COMP%], .bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%] .feedback-block[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;flex:1;min-width:0}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%] .feedback[_ngcontent-%COMP%]{position:absolute;right:0;bottom:-24px;display:inline-flex;gap:6px;align-items:center;width:auto;margin:0}.feedback-message[_ngcontent-%COMP%]{width:100%;display:block;white-space:normal;overflow-wrap:anywhere}.feedback-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;width:100%;justify-content:flex-start}.feedback-actions[_ngcontent-%COMP%] .yn-btn[_ngcontent-%COMP%]{flex:0 0 auto}.bot[_ngcontent-%COMP%] .feedback[_ngcontent-%COMP%] .fb-btn[_ngcontent-%COMP%]{border:none;background:transparent;padding:2px;margin:0;cursor:pointer;flex:0 0 auto}.bubble-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;flex:0 1 auto;width:auto;max-width:100%;min-width:0;overflow:hidden;box-sizing:border-box}.formatted-text[_ngcontent-%COMP%]{display:block;white-space:normal;overflow-wrap:anywhere;word-break:break-word;box-sizing:border-box}.feedback[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-top:8px;width:100%}.amelia-message-icon[_ngcontent-%COMP%]{width:28px;height:28px;border-radius:50%;object-fit:cover;background:#fff;flex-shrink:0;flex:0 0 auto}.chat-popup.expanded[_ngcontent-%COMP%]{width:650px!important;height:86vh!important;position:fixed!important;bottom:16px!important;right:40px!important;left:auto!important;max-width:650px!important;max-height:calc(100vh - 80px)!important;border-radius:8px!important;display:flex!important;flex-direction:column!important;visibility:visible!important;opacity:1!important;z-index:9999!important}.chat-popup.expanded[_ngcontent-%COMP%] .chat-body[_ngcontent-%COMP%]{width:100%!important;align-self:stretch!important}.chat-popup.expanded[_ngcontent-%COMP%] .short-welcome[_ngcontent-%COMP%]{width:-moz-fit-content!important;width:fit-content!important;max-width:100%!important;min-width:0!important;flex:0 0 auto!important}.chat-popup.expanded[_ngcontent-%COMP%] .bot[_ngcontent-%COMP%]:has(.short-welcome) .bubble[_ngcontent-%COMP%]{width:-moz-fit-content!important;width:fit-content!important;max-width:none!important;overflow:visible!important;box-sizing:border-box!important}.chat-popup.expanded[_ngcontent-%COMP%] .short-welcome[_ngcontent-%COMP%] .bubble-content[_ngcontent-%COMP%]{width:auto!important;max-width:100%!important;min-width:0!important;flex:0 1 auto!important}.bot[_ngcontent-%COMP%] .formatted-text[_ngcontent-%COMP%]{white-space:normal;overflow-wrap:anywhere;word-break:break-word;display:block;width:auto;max-width:100%;min-width:0}.chat-popup.expanded[_ngcontent-%COMP%] .short-welcome[_ngcontent-%COMP%] .formatted-text[_ngcontent-%COMP%]{display:inline-block!important;width:auto!important;max-width:100%!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}.chat-top-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex=end;align-items:center;gap:6px;padding:4px 8px;background:transparent;flex-shrink:0;position:absolute;top:-1px;right:0!important;width:auto!important;z-index:10000;position:absolute!important}.top-action-btn[_ngcontent-%COMP%]{border:none;background:transparent!important;color:#000!important;font-size:16px;font-weight:700;line-height:22px;cursor:pointer;padding:0;border-radius:none!important;width:24px;height:24px;text-align:center}.top-action-btn[_ngcontent-%COMP%]:hover{background:#eee;border-radius:4px}.top-action-btn[_ngcontent-%COMP%] .pi[_ngcontent-%COMP%]{font-size:16px}.chat-top-actions.top-action-btn[_ngcontent-%COMP%]{color:#000!important;background:transparent!important;border:none!important;font-size:16px;font-weight:700;cursor:pointer;width:24px;height:24px;line-height:24px;padding:0;border-radius:5px 0 0}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.star-group){display:grid!important;grid-template-columns:32px max-content!important;grid-template-rows:auto auto!important;column-gap:8px!important;row-gap:6px!important;align-items:start!important;padding:12px!important;box-sizing:border-box!important;overflow:visible!important;width:300px!important;min-width:0!important;max-width:calc(100% - 24px)!important}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.star-group) .amelia-message-icon[_ngcontent-%COMP%]{grid-column:1!important;grid-row:1 / span 2!important;margin-top:0!important}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.star-group) > div[_ngcontent-%COMP%]:first-of-type{grid-column:2!important;grid-row:1!important;white-space:nowrap!important;min-width:0}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.star-group) .star-group[_ngcontent-%COMP%]{grid-column:2!important;grid-row:2!important;display:flex!important;flex-direction:row!important;gap:8px!important;margin:0!important;padding:0!important;position:static!important;inset:auto!important}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.yn-group){display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;grid-template-rows:auto auto!important;column-gap:8px!important;row-gap:8px!important;align-items:start!important;width:-moz-fit-content!important;width:fit-content!important;max-width:100%!important;min-width:0!important;padding:10px!important;box-sizing:border-box!important;overflow:hidden!important}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.yn-group) .amelia-message-icon[_ngcontent-%COMP%]{grid-column:1!important;grid-row:1 / span 2!important}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.yn-group) .formatted-text[_ngcontent-%COMP%]{display:block!important;width:auto!important;max-width:100%!important;min-width:0!important;grid-column:2!important;grid-row:1!important;white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.yn-group) .yn-group[_ngcontent-%COMP%]{grid-column:2!important;grid-row:2!important;display:flex!important;flex-direction:row!important;gap:6px!important;margin:10px 0 0!important;padding:0!important;position:static!important}.message-time[_ngcontent-%COMP%]{font-size:11px;color:#6b7280;margin-top:3px;padding:0 6px;text-align:right;white-space:nowrap}.message-time-bot[_ngcontent-%COMP%]{font-size:11px;color:#6b7280;margin-left:10px;padding:0 6px;margin-right:auto;white-space:nowrap}.message-wrapper[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column;width:max-content;max-width:78%}.bot[_ngcontent-%COMP%] .message-wrapper[_ngcontent-%COMP%]{align-items:flex-start}.user[_ngcontent-%COMP%] .message-wrapper[_ngcontent-%COMP%]{align-items:flex-end;margin-left:auto}.bot[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;width:-moz-fit-content;width:fit-content;max-width:85%;min-width:0}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{background:#fff;color:#111827;border:1px solid #e6e9ee;border-bottom-left-radius:4px;margin-bottom:30px;margin-right:auto;display:inline-flex;align-items:flex-start;width:-moz-fit-content!important;width:fit-content!important;max-width:100%!important;min-width:0;box-sizing:border-box;overflow:visible!important;position:relative}.bot[_ngcontent-%COMP%] .bubble-content[_ngcontent-%COMP%]{min-width:0;width:auto;max-width:100%;box-sizing:border-box;display:block;overflow-wrap:anywhere;word-break:break-word}.bot[_ngcontent-%COMP%] .message-time-bot[_ngcontent-%COMP%]{width:0;min-width:0;white-space:nowrap;overflow:visible;align-self:flex-start;text-align:left;margin-top:-26px;margin-left:0}.user[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end;width:100%;min-width:0}.user[_ngcontent-%COMP%] .bubble-content[_ngcontent-%COMP%]{width:auto;min-width:0;max-width:280px;width:max-content;text-align:left;white-space:normal;display:inline-block;overflow-wrap:break-word;box-sizing:border-box;word-break:normal}.user[_ngcontent-%COMP%] .formatted-text[_ngcontent-%COMP%]{white-space:normal;word-break:normal;overflow-wrap:break-word;max-width:100%}.status-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px}.status-dot[_ngcontent-%COMP%]{width:7px;height:7px;border-radius:50%;background-color:#2ecc71!important;flex-shrink:0}.status-dot.offline[_ngcontent-%COMP%]{background:#9e9e9e!important}.online-text[_ngcontent-%COMP%], .offline-text[_ngcontent-%COMP%]{text-transform:none!important}.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}}"] }); }
|
|
37042
37067
|
}
|
|
37043
37068
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ChatbotLexComponent, [{
|
|
37044
37069
|
type: Component,
|
|
37045
|
-
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 <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 <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 *ngFor=\"let msg of messages; let i = index\" [ngClass]=\"msg.from\">\r\n <div class=\"bubble\">\r\n <img\r\n *ngIf=\"msg.from === 'bot'\"\r\n class=\"amelia-message-icon\"\r\n src=\"assets/icon/amelia-new-icon.png\"\r\n alt=\"Amelia\"/>\r\n <!-- Star rating prompt -->\r\n <ng-container *ngIf=\"msg.from === 'bot' && isStarRatingPrompt(msg.text, i); else normalBubble\">\r\n <div>Your feedback matters to us</div>\r\n <div class=\"star-group\" (mouseleave)=\"onStarLeave(i)\">\r\n <button\r\n *ngFor=\"let s of getStars()\"\r\n type=\"button\"\r\n class=\"star\"\r\n [class.filled]=\"isStarFilled(i, s)\"\r\n (mouseenter)=\"onStarEnter(i, s)\"\r\n (click)=\"onStarClick(s, i)\"\r\n [attr.aria-label]=\"'Rate ' + s + ' star(s)'\"\r\n title=\"Rate {{s}} star(s)\">\r\n \u2605\r\n </button>\r\n </div>\r\n </ng-container>\r\n\r\n <!-- Normal bubble -->\r\n <ng-template #normalBubble>\r\n <div class=\"message-wrapper\"\r\n [class.short-welcome]=\"\r\n msg.from === 'bot' &&\r\n msg.text === 'Hi! How may I help you?'\r\n \"\r\n >\r\n <div class=\"bubble-content\">\r\n <span class=\"formatted-text\">\r\n <ng-container *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 \r\n \r\n\r\n <!-- Yes/No buttons -->\r\n <div class=\"yn-group\" *ngIf=\"msg.from === 'bot' && isYesNoPrompt(msg.text, i)\">\r\n <button class=\"yn-btn yes\" (click)=\"onYesNoClick('Yes', i)\">Yes</button>\r\n <button class=\"yn-btn no\" (click)=\"onYesNoClick('No', i)\">No</button>\r\n </div>\r\n\r\n \r\n \r\n\r\n <!-- Links -->\r\n <div *ngIf=\"msg.url && msg.url.length\">\r\n <div *ngFor=\"let url of msg.url\">\r\n <button *ngIf=\"msg.from === 'bot'\" class=\"yn-btn yes\" (click)=\"openLink(url)\">{{url}}</button>\r\n </div>\r\n </div>\r\n </div> <!--closes bubble content -->\r\n \r\n </div>\r\n </ng-template>\r\n \r\n <!-- Feedback thumbs -->\r\n <div\r\n class=\"feedback\"\r\n *ngIf=\"msg.from === 'bot'\r\n && msg.text?.trim() !='Hi! How may I help you?'\r\n && !isMessageRated(i)\r\n && i === messages.length - 1\r\n && !isAck\">\r\n \r\n <button class=\"fb-btn up\" (click)=\"sendFeedback('Thumbs up', i)\" aria-label=\"Thumbs up\" title=\"Thumbs up\">\uD83D\uDC4D</button>\r\n <button class=\"fb-btn down\" (click)=\"sendFeedback('Thumbs down', i)\" aria-label=\"Thumbs down\" title=\"Thumbs down\">\uD83D\uDC4E</button>\r\n </div>\r\n </div> <!--closes bubble --> \r\n <div\r\n *ngIf=\"msg.timestamp\"\r\n [ngClass]=\"msg.from === 'bot' ? 'message-time-bot' : 'message-time'\">\r\n {{msg.timestamp | date:\"EEE MMM dd yyyy 'at' hh:mm:ss a\"}}\r\n </div>\r\n \r\n \r\n \r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"input-row\">\r\n <div class=\"chat-input-wrapper\">\r\n <textarea\r\n #messageInput\r\n class=\"chat-input\"\r\n [(ngModel)]=\"userInput\"\r\n (input)=\"autoGrow()\"\r\n (keydown.enter)=\"$event.preventDefault(); handleEnter()\"\r\n [disabled]=\"sending || isDisabled\"\r\n placeholder=\"Type your message...\"\r\n rows=\"1\">\r\n </textarea>\r\n </div>\r\n <button\r\n class=\"send-btn\"\r\n (click)=\"sendMessage()\"\r\n [disabled]=\"sending || isDisabled\">\r\n Send\r\n </button>\r\n </div>\r\n</div>\r\n", styles: [".chatbot-fab{position:fixed;bottom:20px;right:20px;width:56px;height:56px;border-radius:50%;background:transparent;color:#fff;border:none;font-size:24px;cursor:pointer;box-shadow:none;z-index:9998;display:flex;align-items:center;justify-content:center;overflow:visible}.chatbot-fab:hover{background:#00a5bb}.chatbot-fab-icon{width:70px;height:70px;object-fit:contain;border-radius:0;background:transparent;display:block}.chat-popup{position:fixed;bottom:20px;right:20px;width:380px;height:520px;max-height:80vh;display:flex;flex-direction:column;background:#fff;border:1px solid #e6e9ee;border-radius:12px;box-shadow:0 12px 24px #0000001f;overflow:visible!important;z-index:9999;padding-top:30px;overflow:visible}.chat-popup-header img{width:36px;height:36px;min-width:36px;max-width:36px;border-radius:50%;object-fit:cover}.chat-popup:not(.expanded) .message-wrapper{max-width:85%!important}.chat-popup.expanded .bot .message-wrapper{width:max-content!important;max-width:85%!important;min-width:0!important;align-items:flex-start!important}.chat-popup.expanded .user .message-wrapper{width:-moz-fit-content!important;width:fit-content!important;max-width:70%!important;min-width:0!important}.chat-popup.expanded .bot .bubble{width:-moz-fit-content!important;width:fit-content!important;max-width:85%!important;min-width:0!important;align-self:flex-start!important;box-sizing:border-box!important}.chat-popup.expanded .bot .bubble.bubble:has(.star-group){width:300px!important;max-width:85%!important;min-width:0!important;align-self:flex-start!important;box-sizing:border-box!important}.chat-popup-header{display:flex;align-items:center;justify-content:space-between;background:var(--ion-color-primary)!important;color:#fff;padding:4px 12px;font-weight:600;flex-shrink:0}.icon-label{display:inline-flex;align-items:center;gap:8px}.text-block{display:inline-flex;flex-direction:column;line-height:1.1}.label-text{font-size:15px;font-weight:600}.status{font-size:11px;margin-top:2px;text-transform:lowercase;opacity:.95}.status.online-text{color:#b9f6ca}.status.offline-text{color:#ffcdd2}.chat-popup-actions{display:inline-flex;align-items:center;gap:6px}.info-btn,.info-btn:hover,.info-btn:focus,.info-btn:active{background:transparent;border:none;box-shadow:none;outline:none}.action-btn{background:transparent;color:#fff;border:none;font-size:16px;cursor:pointer;width:28px;height:28px;line-height:1;padding:0;border-radius:4px}.action-btn:hover{background:#ffffff26}.chat-body{flex:1;display:flex;flex-direction:column;overflow:hidden;min-height:0}.chat-window{padding:12px;flex:1;overflow-y:auto;background:#f6f8fb;min-height:0;width:100%;box-sizing:border-box}.user,.bot{margin:8px 0;display:flex;width:100%;min-width:0;box-sizing:border-box}.user{justify-content:flex-end}.bot{justify-content:flex-start}.bot,.user{width:100%;min-width:0;box-sizing:border-box;display:flex}.bubble{display:inline-block;padding:8px 12px;border-radius:14px;font-size:14px;line-height:1.3;word-wrap:break-word;position:relative}.user .bubble{background:#e8eaf6;color:#000;border-bottom-right-radius:4px;margin-left:auto;display:flex;justify-content:flex-end;align-self:flex-end}.chat-window .bot:first-of-type .bubble .feedback{display:none!important}.fb-btn{appearance:none;border:none;background:transparent;cursor:pointer;font-size:13px;line-height:1;padding:2px 4px;border-radius:4px;opacity:.9}.fb-btn:hover{background:#00bcd414}.fb-btn.up{color:#16a34a}.fb-btn.down{color:#dc2626}.yn-group{display:flex;align-items:center;gap:4px;margin-top:10px}.yn-btn{appearance:none;border:1px solid #cfd8e3;background:#fff;color:#111827;font-size:12px;padding:4px 8px;border-radius:999px;cursor:pointer;margin-right:6px}.yn-btn:hover{background:#f3f4f6}.yn-btn.yes{border-color:#16a34a33}.yn-btn.no{border-color:#dc262633}.star-group{display:inline-flex;gap:6px;align-items:center;vertical-align:middle;margin-left:2px;margin-top:2px}.star-group .star{appearance:none;border:none;background:transparent;cursor:pointer;font-size:18px;line-height:1;color:#444547;padding:0 1px;transition:transform .08s ease,color .08s ease}.star-group .star.filled{color:#f59e0b}.star-group .star:hover{transform:scale(1.08)}.input-row{display:flex;gap:8px;padding:10px;background:#fff;border-top:1px solid #e6e9ee;align-items:flex-end;flex-shrink:0}.chat-input-wrapper{flex:1;border-radius:8px;border:1px solid #d1d5db;overflow:hidden;background:#fff;display:flex}.chat-input{width:100%;resize:none;border:none;outline:none;padding:8px 10px;font-size:14px;line-height:1.2;min-height:20px;max-height:100px;overflow-y:auto;box-sizing:border-box;background:transparent}.chat-input:focus{outline:none;box-shadow:none}.send-btn{height:36px;align-self:flex-end;padding:0 14px;background:var(--ion-color-primary)!important;color:#fff!important;border:none;border-radius:8px;cursor:pointer;white-space:nowrap;font-size:14px}.send-btn:disabled{opacity:.6;cursor:not-allowed}.icon-label{display:flex;align-items:center;gap:8px}.amelia-header-icon{width:56px;height:56px;border-radius:0;object-fit:contain;background:transparent;flex-shrink:0}.text-block{display:flex;flex-direction:column;line-height:1.1}.bubble.bot,.bot .bubble{display:flex;align-items:flex-start;gap:8px}.bot .bubble .feedback-block{display:flex;flex-direction:column;align-items:flex-start;flex:1;min-width:0}.bot .bubble .feedback{position:absolute;right:0;bottom:-24px;display:inline-flex;gap:6px;align-items:center;width:auto;margin:0}.feedback-message{width:100%;display:block;white-space:normal;overflow-wrap:anywhere}.feedback-actions{display:flex;align-items:center;gap:8px;width:100%;justify-content:flex-start}.feedback-actions .yn-btn{flex:0 0 auto}.bot .feedback .fb-btn{border:none;background:transparent;padding:2px;margin:0;cursor:pointer;flex:0 0 auto}.bubble-content{display:flex;flex-direction:column;align-items:flex-start;flex:0 1 auto;width:auto;max-width:100%;min-width:0;overflow:hidden;box-sizing:border-box}.formatted-text{display:block;white-space:normal;overflow-wrap:anywhere;word-break:break-word;box-sizing:border-box}.feedback{display:flex;align-items:center;gap:8px;margin-top:8px;width:100%}.amelia-message-icon{width:28px;height:28px;border-radius:50%;object-fit:cover;background:#fff;flex-shrink:0;flex:0 0 auto}.chat-popup.expanded{width:650px!important;height:86vh!important;position:fixed!important;bottom:16px!important;right:40px!important;left:auto!important;max-width:650px!important;max-height:calc(100vh - 80px)!important;border-radius:8px!important;display:flex!important;flex-direction:column!important;visibility:visible!important;opacity:1!important;z-index:9999!important}.chat-popup.expanded .chat-body{width:100%!important;align-self:stretch!important}.chat-popup.expanded .short-welcome{width:-moz-fit-content!important;width:fit-content!important;max-width:100%!important;min-width:0!important;flex:0 0 auto!important}.chat-popup.expanded .bot:has(.short-welcome) .bubble{width:-moz-fit-content!important;width:fit-content!important;max-width:none!important;overflow:visible!important;box-sizing:border-box!important}.chat-popup.expanded .short-welcome .bubble-content{width:auto!important;max-width:100%!important;min-width:0!important;flex:0 1 auto!important}.bot .formatted-text{white-space:normal;overflow-wrap:anywhere;word-break:break-word;display:block;width:auto;max-width:100%;min-width:0}.chat-popup.expanded .short-welcome .formatted-text{display:inline-block!important;width:auto!important;max-width:100%!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}.chat-top-actions{display:flex;justify-content:flex=end;align-items:center;gap:6px;padding:4px 8px;background:transparent;flex-shrink:0;position:absolute;top:-1px;right:0!important;width:auto!important;z-index:10000;position:absolute!important}.top-action-btn{border:none;background:transparent!important;color:#000!important;font-size:16px;font-weight:700;line-height:22px;cursor:pointer;padding:0;border-radius:none!important;width:24px;height:24px;text-align:center}.top-action-btn:hover{background:#eee;border-radius:4px}.top-action-btn .pi{font-size:16px}.chat-top-actions.top-action-btn{color:#000!important;background:transparent!important;border:none!important;font-size:16px;font-weight:700;cursor:pointer;width:24px;height:24px;line-height:24px;padding:0;border-radius:5px 0 0}.bot .bubble:has(.star-group){display:grid!important;grid-template-columns:32px max-content!important;grid-template-rows:auto auto!important;column-gap:8px!important;row-gap:6px!important;align-items:start!important;padding:12px!important;box-sizing:border-box!important;overflow:visible!important;width:300px!important;min-width:0!important;max-width:calc(100% - 24px)!important}.bot .bubble:has(.star-group) .amelia-message-icon{grid-column:1!important;grid-row:1 / span 2!important;margin-top:0!important}.bot .bubble:has(.star-group)>div:first-of-type{grid-column:2!important;grid-row:1!important;white-space:nowrap!important;min-width:0}.bot .bubble:has(.star-group) .star-group{grid-column:2!important;grid-row:2!important;display:flex!important;flex-direction:row!important;gap:8px!important;margin:0!important;padding:0!important;position:static!important;inset:auto!important}.bot .bubble:has(.yn-group){display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;grid-template-rows:auto auto!important;column-gap:8px!important;row-gap:8px!important;align-items:start!important;width:-moz-fit-content!important;width:fit-content!important;max-width:100%!important;min-width:0!important;padding:10px!important;box-sizing:border-box!important;overflow:hidden!important}.bot .bubble:has(.yn-group) .amelia-message-icon{grid-column:1!important;grid-row:1 / span 2!important}.bot .bubble:has(.yn-group) .formatted-text{display:block!important;width:auto!important;max-width:100%!important;min-width:0!important;grid-column:2!important;grid-row:1!important;white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important}.bot .bubble:has(.yn-group) .yn-group{grid-column:2!important;grid-row:2!important;display:flex!important;flex-direction:row!important;gap:6px!important;margin:10px 0 0!important;padding:0!important;position:static!important}.message-time{font-size:11px;color:#6b7280;margin-top:3px;padding:0 6px;text-align:right;white-space:nowrap}.message-time-bot{font-size:11px;color:#6b7280;margin-left:10px;padding:0 6px;margin-right:auto;white-space:nowrap}.message-wrapper{display:inline-flex;flex-direction:column;width:max-content;max-width:78%}.bot .message-wrapper{align-items:flex-start}.user .message-wrapper{align-items:flex-end;margin-left:auto}.bot{display:flex;flex-direction:column;align-items:flex-start;width:-moz-fit-content;width:fit-content;max-width:85%;min-width:0}.bot .bubble{background:#fff;color:#111827;border:1px solid #e6e9ee;border-bottom-left-radius:4px;margin-bottom:30px;margin-right:auto;display:inline-flex;align-items:flex-start;width:-moz-fit-content!important;width:fit-content!important;max-width:100%!important;min-width:0;box-sizing:border-box;overflow:visible!important;position:relative}.bot .bubble-content{min-width:0;width:auto;max-width:100%;box-sizing:border-box;display:block;overflow-wrap:anywhere;word-break:break-word}.bot .message-time-bot{width:0;min-width:0;white-space:nowrap;overflow:visible;align-self:flex-start;text-align:left;margin-top:-26px;margin-left:0}.user{display:flex;flex-direction:column;align-items:flex-end;width:100%;min-width:0}.user .bubble-content{width:auto;min-width:0;max-width:280px;width:max-content;text-align:left;white-space:normal;display:inline-block;overflow-wrap:break-word;box-sizing:border-box;word-break:normal}.user .formatted-text{white-space:normal;word-break:normal;overflow-wrap:break-word;max-width:100%}.status-wrapper{display:flex;align-items:center;gap:6px}.status-dot{width:7px;height:7px;border-radius:50%;background-color:#2ecc71!important;flex-shrink:0}.status-dot.offline{background:#9e9e9e!important}.online-text,.offline-text{text-transform:none!important}.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{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;top:12px;right:16px;z-index:2;padding:0;border:0;background:transparent;color:#fff!important;font-size:38px;line-height:1;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}}\n"] }]
|
|
37070
|
+
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 *ngFor=\"let msg of messages; let i = index\" [ngClass]=\"msg.from\">\r\n <div class=\"bubble\">\r\n <img\r\n *ngIf=\"msg.from === 'bot'\"\r\n class=\"amelia-message-icon\"\r\n src=\"assets/icon/amelia-new-icon.png\"\r\n alt=\"Amelia\"/>\r\n <!-- Star rating prompt -->\r\n <ng-container *ngIf=\"msg.from === 'bot' && isStarRatingPrompt(msg.text, i); else normalBubble\">\r\n <div>Your feedback matters to us</div>\r\n <div class=\"star-group\" (mouseleave)=\"onStarLeave(i)\">\r\n <button\r\n *ngFor=\"let s of getStars()\"\r\n type=\"button\"\r\n class=\"star\"\r\n [class.filled]=\"isStarFilled(i, s)\"\r\n (mouseenter)=\"onStarEnter(i, s)\"\r\n (click)=\"onStarClick(s, i)\"\r\n [attr.aria-label]=\"'Rate ' + s + ' star(s)'\"\r\n title=\"Rate {{s}} star(s)\">\r\n \u2605\r\n </button>\r\n </div>\r\n </ng-container>\r\n\r\n <!-- Normal bubble -->\r\n <ng-template #normalBubble>\r\n <div class=\"message-wrapper\"\r\n [class.short-welcome]=\"\r\n msg.from === 'bot' &&\r\n msg.text === 'Hi! How may I help you?'\r\n \"\r\n >\r\n <div class=\"bubble-content\">\r\n <span class=\"formatted-text\">\r\n <ng-container *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 \r\n \r\n\r\n <!-- Yes/No buttons -->\r\n <div class=\"yn-group\" *ngIf=\"msg.from === 'bot' && isYesNoPrompt(msg.text, i)\">\r\n <button class=\"yn-btn yes\" (click)=\"onYesNoClick('Yes', i)\">Yes</button>\r\n <button class=\"yn-btn no\" (click)=\"onYesNoClick('No', i)\">No</button>\r\n </div>\r\n\r\n \r\n \r\n\r\n <!-- Links -->\r\n <div *ngIf=\"msg.url && msg.url.length\">\r\n <div *ngFor=\"let url of msg.url\">\r\n <button *ngIf=\"msg.from === 'bot'\" class=\"yn-btn yes\" (click)=\"openLink(url)\">{{url}}</button>\r\n </div>\r\n </div>\r\n </div> <!--closes bubble content -->\r\n \r\n </div>\r\n </ng-template>\r\n \r\n <!-- Feedback thumbs -->\r\n <div\r\n class=\"feedback\"\r\n *ngIf=\"msg.from === 'bot'\r\n && msg.text?.trim() !='Hi! How may I help you?'\r\n && !isMessageRated(i)\r\n && i === messages.length - 1\r\n && !isAck\">\r\n \r\n <button class=\"fb-btn up\" (click)=\"sendFeedback('Thumbs up', i)\" aria-label=\"Thumbs up\" title=\"Thumbs up\">\uD83D\uDC4D</button>\r\n <button class=\"fb-btn down\" (click)=\"sendFeedback('Thumbs down', i)\" aria-label=\"Thumbs down\" title=\"Thumbs down\">\uD83D\uDC4E</button>\r\n </div>\r\n </div> <!--closes bubble --> \r\n <div\r\n *ngIf=\"msg.timestamp\"\r\n [ngClass]=\"msg.from === 'bot' ? 'message-time-bot' : 'message-time'\">\r\n {{msg.timestamp | date:\"EEE MMM dd yyyy 'at' hh:mm:ss a\"}}\r\n </div>\r\n \r\n \r\n \r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"input-row\">\r\n <div class=\"chat-input-wrapper\">\r\n <textarea\r\n #messageInput\r\n class=\"chat-input\"\r\n [(ngModel)]=\"userInput\"\r\n (input)=\"autoGrow()\"\r\n (keydown.enter)=\"$event.preventDefault(); handleEnter()\"\r\n [disabled]=\"sending || isDisabled\"\r\n placeholder=\"Type your message...\"\r\n rows=\"1\">\r\n </textarea>\r\n </div>\r\n <button\r\n class=\"send-btn\"\r\n (click)=\"sendMessage()\"\r\n [disabled]=\"sending || isDisabled\">\r\n Send\r\n </button>\r\n </div>\r\n</div>\r\n", styles: [".chatbot-fab{position:fixed;bottom:20px;right:20px;width:56px;height:56px;border-radius:50%;background:transparent;color:#fff;border:none;font-size:24px;cursor:pointer;box-shadow:none;z-index:9998;display:flex;align-items:center;justify-content:center;overflow:visible}.chatbot-fab:hover{background:#00a5bb}.chatbot-fab-icon{width:70px;height:70px;object-fit:contain;border-radius:0;background:transparent;display:block}.chat-popup{position:fixed;bottom:20px;right:20px;width:380px;height:520px;max-height:80vh;display:flex;flex-direction:column;background:#fff;border:1px solid #e6e9ee;border-radius:12px;box-shadow:0 12px 24px #0000001f;overflow:visible!important;z-index:9999;padding-top:30px;overflow:visible}.chat-popup-header img{width:36px;height:36px;min-width:36px;max-width:36px;border-radius:50%;object-fit:cover}.chat-popup:not(.expanded) .message-wrapper{max-width:85%!important}.chat-popup.expanded .bot .message-wrapper{width:max-content!important;max-width:85%!important;min-width:0!important;align-items:flex-start!important}.chat-popup.expanded .user .message-wrapper{width:-moz-fit-content!important;width:fit-content!important;max-width:70%!important;min-width:0!important}.chat-popup.expanded .bot .bubble{width:-moz-fit-content!important;width:fit-content!important;max-width:85%!important;min-width:0!important;align-self:flex-start!important;box-sizing:border-box!important}.chat-popup.expanded .bot .bubble.bubble:has(.star-group){width:300px!important;max-width:85%!important;min-width:0!important;align-self:flex-start!important;box-sizing:border-box!important}.chat-popup-header{display:flex;align-items:center;justify-content:space-between;background:var(--ion-color-primary)!important;color:#fff;padding:4px 12px;font-weight:600;flex-shrink:0}.icon-label{display:inline-flex;align-items:center;gap:8px}.text-block{display:inline-flex;flex-direction:column;line-height:1.1}.label-text{font-size:15px;font-weight:600}.status{font-size:11px;margin-top:2px;text-transform:lowercase;opacity:.95}.status.online-text{color:#b9f6ca}.status.offline-text{color:#ffcdd2}.chat-popup-actions{display:inline-flex;align-items:center;gap:6px}.info-btn,.info-btn:hover,.info-btn:focus,.info-btn:active{background:transparent;border:none;box-shadow:none;outline:none}.action-btn{background:transparent;color:#fff;border:none;font-size:16px;cursor:pointer;width:28px;height:28px;line-height:1;padding:0;border-radius:4px}.action-btn:hover{background:#ffffff26}.chat-body{flex:1;display:flex;flex-direction:column;overflow:hidden;min-height:0}.chat-window{padding:12px;flex:1;overflow-y:auto;background:#f6f8fb;min-height:0;width:100%;box-sizing:border-box}.user,.bot{margin:8px 0;display:flex;width:100%;min-width:0;box-sizing:border-box}.user{justify-content:flex-end}.bot{justify-content:flex-start}.bot,.user{width:100%;min-width:0;box-sizing:border-box;display:flex}.bubble{display:inline-block;padding:8px 12px;border-radius:14px;font-size:14px;line-height:1.3;word-wrap:break-word;position:relative}.user .bubble{background:#e8eaf6;color:#000;border-bottom-right-radius:4px;margin-left:auto;display:flex;justify-content:flex-end;align-self:flex-end}.chat-window .bot:first-of-type .bubble .feedback{display:none!important}.fb-btn{appearance:none;border:none;background:transparent;cursor:pointer;font-size:13px;line-height:1;padding:2px 4px;border-radius:4px;opacity:.9}.fb-btn:hover{background:#00bcd414}.fb-btn.up{color:#16a34a}.fb-btn.down{color:#dc2626}.yn-group{display:flex;align-items:center;gap:4px;margin-top:10px}.yn-btn{appearance:none;border:1px solid #cfd8e3;background:#fff;color:#111827;font-size:12px;padding:4px 8px;border-radius:999px;cursor:pointer;margin-right:6px}.yn-btn:hover{background:#f3f4f6}.yn-btn.yes{border-color:#16a34a33}.yn-btn.no{border-color:#dc262633}.star-group{display:inline-flex;gap:6px;align-items:center;vertical-align:middle;margin-left:2px;margin-top:2px}.star-group .star{appearance:none;border:none;background:transparent;cursor:pointer;font-size:18px;line-height:1;color:#444547;padding:0 1px;transition:transform .08s ease,color .08s ease}.star-group .star.filled{color:#f59e0b}.star-group .star:hover{transform:scale(1.08)}.input-row{display:flex;gap:8px;padding:10px;background:#fff;border-top:1px solid #e6e9ee;align-items:flex-end;flex-shrink:0}.chat-input-wrapper{flex:1;border-radius:8px;border:1px solid #d1d5db;overflow:hidden;background:#fff;display:flex}.chat-input{width:100%;resize:none;border:none;outline:none;padding:8px 10px;font-size:14px;line-height:1.2;min-height:20px;max-height:100px;overflow-y:auto;box-sizing:border-box;background:transparent}.chat-input:focus{outline:none;box-shadow:none}.send-btn{height:36px;align-self:flex-end;padding:0 14px;background:var(--ion-color-primary)!important;color:#fff!important;border:none;border-radius:8px;cursor:pointer;white-space:nowrap;font-size:14px}.send-btn:disabled{opacity:.6;cursor:not-allowed}.icon-label{display:flex;align-items:center;gap:8px}.amelia-header-icon{width:56px;height:56px;border-radius:0;object-fit:contain;background:transparent;flex-shrink:0}.text-block{display:flex;flex-direction:column;line-height:1.1}.bubble.bot,.bot .bubble{display:flex;align-items:flex-start;gap:8px}.bot .bubble .feedback-block{display:flex;flex-direction:column;align-items:flex-start;flex:1;min-width:0}.bot .bubble .feedback{position:absolute;right:0;bottom:-24px;display:inline-flex;gap:6px;align-items:center;width:auto;margin:0}.feedback-message{width:100%;display:block;white-space:normal;overflow-wrap:anywhere}.feedback-actions{display:flex;align-items:center;gap:8px;width:100%;justify-content:flex-start}.feedback-actions .yn-btn{flex:0 0 auto}.bot .feedback .fb-btn{border:none;background:transparent;padding:2px;margin:0;cursor:pointer;flex:0 0 auto}.bubble-content{display:flex;flex-direction:column;align-items:flex-start;flex:0 1 auto;width:auto;max-width:100%;min-width:0;overflow:hidden;box-sizing:border-box}.formatted-text{display:block;white-space:normal;overflow-wrap:anywhere;word-break:break-word;box-sizing:border-box}.feedback{display:flex;align-items:center;gap:8px;margin-top:8px;width:100%}.amelia-message-icon{width:28px;height:28px;border-radius:50%;object-fit:cover;background:#fff;flex-shrink:0;flex:0 0 auto}.chat-popup.expanded{width:650px!important;height:86vh!important;position:fixed!important;bottom:16px!important;right:40px!important;left:auto!important;max-width:650px!important;max-height:calc(100vh - 80px)!important;border-radius:8px!important;display:flex!important;flex-direction:column!important;visibility:visible!important;opacity:1!important;z-index:9999!important}.chat-popup.expanded .chat-body{width:100%!important;align-self:stretch!important}.chat-popup.expanded .short-welcome{width:-moz-fit-content!important;width:fit-content!important;max-width:100%!important;min-width:0!important;flex:0 0 auto!important}.chat-popup.expanded .bot:has(.short-welcome) .bubble{width:-moz-fit-content!important;width:fit-content!important;max-width:none!important;overflow:visible!important;box-sizing:border-box!important}.chat-popup.expanded .short-welcome .bubble-content{width:auto!important;max-width:100%!important;min-width:0!important;flex:0 1 auto!important}.bot .formatted-text{white-space:normal;overflow-wrap:anywhere;word-break:break-word;display:block;width:auto;max-width:100%;min-width:0}.chat-popup.expanded .short-welcome .formatted-text{display:inline-block!important;width:auto!important;max-width:100%!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}.chat-top-actions{display:flex;justify-content:flex=end;align-items:center;gap:6px;padding:4px 8px;background:transparent;flex-shrink:0;position:absolute;top:-1px;right:0!important;width:auto!important;z-index:10000;position:absolute!important}.top-action-btn{border:none;background:transparent!important;color:#000!important;font-size:16px;font-weight:700;line-height:22px;cursor:pointer;padding:0;border-radius:none!important;width:24px;height:24px;text-align:center}.top-action-btn:hover{background:#eee;border-radius:4px}.top-action-btn .pi{font-size:16px}.chat-top-actions.top-action-btn{color:#000!important;background:transparent!important;border:none!important;font-size:16px;font-weight:700;cursor:pointer;width:24px;height:24px;line-height:24px;padding:0;border-radius:5px 0 0}.bot .bubble:has(.star-group){display:grid!important;grid-template-columns:32px max-content!important;grid-template-rows:auto auto!important;column-gap:8px!important;row-gap:6px!important;align-items:start!important;padding:12px!important;box-sizing:border-box!important;overflow:visible!important;width:300px!important;min-width:0!important;max-width:calc(100% - 24px)!important}.bot .bubble:has(.star-group) .amelia-message-icon{grid-column:1!important;grid-row:1 / span 2!important;margin-top:0!important}.bot .bubble:has(.star-group)>div:first-of-type{grid-column:2!important;grid-row:1!important;white-space:nowrap!important;min-width:0}.bot .bubble:has(.star-group) .star-group{grid-column:2!important;grid-row:2!important;display:flex!important;flex-direction:row!important;gap:8px!important;margin:0!important;padding:0!important;position:static!important;inset:auto!important}.bot .bubble:has(.yn-group){display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;grid-template-rows:auto auto!important;column-gap:8px!important;row-gap:8px!important;align-items:start!important;width:-moz-fit-content!important;width:fit-content!important;max-width:100%!important;min-width:0!important;padding:10px!important;box-sizing:border-box!important;overflow:hidden!important}.bot .bubble:has(.yn-group) .amelia-message-icon{grid-column:1!important;grid-row:1 / span 2!important}.bot .bubble:has(.yn-group) .formatted-text{display:block!important;width:auto!important;max-width:100%!important;min-width:0!important;grid-column:2!important;grid-row:1!important;white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important}.bot .bubble:has(.yn-group) .yn-group{grid-column:2!important;grid-row:2!important;display:flex!important;flex-direction:row!important;gap:6px!important;margin:10px 0 0!important;padding:0!important;position:static!important}.message-time{font-size:11px;color:#6b7280;margin-top:3px;padding:0 6px;text-align:right;white-space:nowrap}.message-time-bot{font-size:11px;color:#6b7280;margin-left:10px;padding:0 6px;margin-right:auto;white-space:nowrap}.message-wrapper{display:inline-flex;flex-direction:column;width:max-content;max-width:78%}.bot .message-wrapper{align-items:flex-start}.user .message-wrapper{align-items:flex-end;margin-left:auto}.bot{display:flex;flex-direction:column;align-items:flex-start;width:-moz-fit-content;width:fit-content;max-width:85%;min-width:0}.bot .bubble{background:#fff;color:#111827;border:1px solid #e6e9ee;border-bottom-left-radius:4px;margin-bottom:30px;margin-right:auto;display:inline-flex;align-items:flex-start;width:-moz-fit-content!important;width:fit-content!important;max-width:100%!important;min-width:0;box-sizing:border-box;overflow:visible!important;position:relative}.bot .bubble-content{min-width:0;width:auto;max-width:100%;box-sizing:border-box;display:block;overflow-wrap:anywhere;word-break:break-word}.bot .message-time-bot{width:0;min-width:0;white-space:nowrap;overflow:visible;align-self:flex-start;text-align:left;margin-top:-26px;margin-left:0}.user{display:flex;flex-direction:column;align-items:flex-end;width:100%;min-width:0}.user .bubble-content{width:auto;min-width:0;max-width:280px;width:max-content;text-align:left;white-space:normal;display:inline-block;overflow-wrap:break-word;box-sizing:border-box;word-break:normal}.user .formatted-text{white-space:normal;word-break:normal;overflow-wrap:break-word;max-width:100%}.status-wrapper{display:flex;align-items:center;gap:6px}.status-dot{width:7px;height:7px;border-radius:50%;background-color:#2ecc71!important;flex-shrink:0}.status-dot.offline{background:#9e9e9e!important}.online-text,.offline-text{text-transform:none!important}.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}}\n"] }]
|
|
37046
37071
|
}], () => [{ type: LexChatService }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }], { clientFilter: [{
|
|
37047
37072
|
type: Input
|
|
37048
37073
|
}], messageInput: [{
|