@ksremp/ngx-ksremp-app-lib 2.0.5 → 2.0.7

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.
@@ -36230,231 +36230,248 @@ class LexChatService {
36230
36230
  const _c0 = ["messageInput"];
36231
36231
  const _c1 = ["chatWindow"];
36232
36232
  function ChatbotLexComponent_button_0_Template(rf, ctx) { if (rf & 1) {
36233
- const _r3 = i0.ɵɵgetCurrentView();
36234
- i0.ɵɵelementStart(0, "button", 2);
36235
- i0.ɵɵlistener("click", function ChatbotLexComponent_button_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.toggleChat()); });
36236
- i0.ɵɵelement(1, "img", 3);
36233
+ const _r4 = i0.ɵɵgetCurrentView();
36234
+ i0.ɵɵelementStart(0, "button", 3);
36235
+ i0.ɵɵlistener("click", function ChatbotLexComponent_button_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.handleCloudClick()); });
36236
+ i0.ɵɵelement(1, "img", 4);
36237
+ i0.ɵɵelementEnd();
36238
+ } }
36239
+ function ChatbotLexComponent_div_1_Template(rf, ctx) { if (rf & 1) {
36240
+ const _r6 = i0.ɵɵgetCurrentView();
36241
+ 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(_r6); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.closeImportantMessage()); });
36243
+ i0.ɵɵtext(3, " \u00D7 ");
36237
36244
  i0.ɵɵelementEnd();
36245
+ i0.ɵɵelementStart(4, "h2");
36246
+ i0.ɵɵtext(5, "Important Message");
36247
+ i0.ɵɵelementEnd();
36248
+ i0.ɵɵelementStart(6, "p");
36249
+ i0.ɵɵtext(7, " 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. ");
36250
+ i0.ɵɵelementEnd();
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()); });
36253
+ i0.ɵɵtext(10, " Continue ");
36254
+ i0.ɵɵelementEnd()()()();
36238
36255
  } }
36239
- function ChatbotLexComponent_div_1_span_3_Template(rf, ctx) { if (rf & 1) {
36256
+ function ChatbotLexComponent_div_2_span_3_Template(rf, ctx) { if (rf & 1) {
36240
36257
  i0.ɵɵelementStart(0, "span");
36241
36258
  i0.ɵɵtext(1, "\u26F6");
36242
36259
  i0.ɵɵelementEnd();
36243
36260
  } }
36244
- function ChatbotLexComponent_div_1_div_26_img_2_Template(rf, ctx) { if (rf & 1) {
36245
- i0.ɵɵelement(0, "img", 37);
36261
+ function ChatbotLexComponent_div_2_div_26_img_2_Template(rf, ctx) { if (rf & 1) {
36262
+ i0.ɵɵelement(0, "img", 43);
36246
36263
  } }
36247
- function ChatbotLexComponent_div_1_div_26_ng_container_3_button_4_Template(rf, ctx) { if (rf & 1) {
36248
- const _r20 = i0.ɵɵgetCurrentView();
36249
- i0.ɵɵelementStart(0, "button", 40);
36250
- i0.ɵɵlistener("mouseenter", function ChatbotLexComponent_div_1_div_26_ng_container_3_button_4_Template_button_mouseenter_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r20); const s_r17 = restoredCtx.$implicit; const i_r9 = i0.ɵɵnextContext(2).index; const ctx_r18 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r18.onStarEnter(i_r9, s_r17)); })("click", function ChatbotLexComponent_div_1_div_26_ng_container_3_button_4_Template_button_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r20); const s_r17 = restoredCtx.$implicit; const i_r9 = i0.ɵɵnextContext(2).index; const ctx_r21 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r21.onStarClick(s_r17, i_r9)); });
36264
+ function ChatbotLexComponent_div_2_div_26_ng_container_3_button_4_Template(rf, ctx) { if (rf & 1) {
36265
+ const _r24 = i0.ɵɵgetCurrentView();
36266
+ 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(_r24); const s_r21 = restoredCtx.$implicit; const i_r13 = i0.ɵɵnextContext(2).index; const ctx_r22 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r22.onStarEnter(i_r13, s_r21)); })("click", function ChatbotLexComponent_div_2_div_26_ng_container_3_button_4_Template_button_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r24); const s_r21 = restoredCtx.$implicit; const i_r13 = i0.ɵɵnextContext(2).index; const ctx_r25 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r25.onStarClick(s_r21, i_r13)); });
36251
36268
  i0.ɵɵtext(1, " \u2605 ");
36252
36269
  i0.ɵɵelementEnd();
36253
36270
  } if (rf & 2) {
36254
- const s_r17 = ctx.$implicit;
36255
- const i_r9 = i0.ɵɵnextContext(2).index;
36256
- const ctx_r16 = i0.ɵɵnextContext(2);
36257
- i0.ɵɵclassProp("filled", ctx_r16.isStarFilled(i_r9, s_r17));
36258
- i0.ɵɵpropertyInterpolate1("title", "Rate ", s_r17, " star(s)");
36259
- i0.ɵɵattribute("aria-label", "Rate " + s_r17 + " star(s)");
36271
+ const s_r21 = ctx.$implicit;
36272
+ const i_r13 = i0.ɵɵnextContext(2).index;
36273
+ const ctx_r20 = i0.ɵɵnextContext(2);
36274
+ i0.ɵɵclassProp("filled", ctx_r20.isStarFilled(i_r13, s_r21));
36275
+ i0.ɵɵpropertyInterpolate1("title", "Rate ", s_r21, " star(s)");
36276
+ i0.ɵɵattribute("aria-label", "Rate " + s_r21 + " star(s)");
36260
36277
  } }
36261
- function ChatbotLexComponent_div_1_div_26_ng_container_3_Template(rf, ctx) { if (rf & 1) {
36262
- const _r26 = i0.ɵɵgetCurrentView();
36278
+ function ChatbotLexComponent_div_2_div_26_ng_container_3_Template(rf, ctx) { if (rf & 1) {
36279
+ const _r30 = i0.ɵɵgetCurrentView();
36263
36280
  i0.ɵɵelementContainerStart(0);
36264
36281
  i0.ɵɵelementStart(1, "div");
36265
36282
  i0.ɵɵtext(2, "Your feedback matters to us");
36266
36283
  i0.ɵɵelementEnd();
36267
- i0.ɵɵelementStart(3, "div", 38);
36268
- i0.ɵɵlistener("mouseleave", function ChatbotLexComponent_div_1_div_26_ng_container_3_Template_div_mouseleave_3_listener() { i0.ɵɵrestoreView(_r26); const i_r9 = i0.ɵɵnextContext().index; const ctx_r24 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r24.onStarLeave(i_r9)); });
36269
- i0.ɵɵtemplate(4, ChatbotLexComponent_div_1_div_26_ng_container_3_button_4_Template, 2, 4, "button", 39);
36284
+ 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(_r30); const i_r13 = i0.ɵɵnextContext().index; const ctx_r28 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r28.onStarLeave(i_r13)); });
36286
+ i0.ɵɵtemplate(4, ChatbotLexComponent_div_2_div_26_ng_container_3_button_4_Template, 2, 4, "button", 45);
36270
36287
  i0.ɵɵelementEnd();
36271
36288
  i0.ɵɵelementContainerEnd();
36272
36289
  } if (rf & 2) {
36273
- const ctx_r11 = i0.ɵɵnextContext(3);
36290
+ const ctx_r15 = i0.ɵɵnextContext(3);
36274
36291
  i0.ɵɵadvance(4);
36275
- i0.ɵɵproperty("ngForOf", ctx_r11.getStars());
36292
+ i0.ɵɵproperty("ngForOf", ctx_r15.getStars());
36276
36293
  } }
36277
- function ChatbotLexComponent_div_1_div_26_ng_template_4_ng_container_3_br_2_Template(rf, ctx) { if (rf & 1) {
36294
+ function ChatbotLexComponent_div_2_div_26_ng_template_4_ng_container_3_br_2_Template(rf, ctx) { if (rf & 1) {
36278
36295
  i0.ɵɵelement(0, "br");
36279
36296
  } }
36280
- function ChatbotLexComponent_div_1_div_26_ng_template_4_ng_container_3_Template(rf, ctx) { if (rf & 1) {
36297
+ function ChatbotLexComponent_div_2_div_26_ng_template_4_ng_container_3_Template(rf, ctx) { if (rf & 1) {
36281
36298
  i0.ɵɵelementContainerStart(0);
36282
36299
  i0.ɵɵtext(1);
36283
- i0.ɵɵtemplate(2, ChatbotLexComponent_div_1_div_26_ng_template_4_ng_container_3_br_2_Template, 1, 0, "br", 7);
36300
+ i0.ɵɵtemplate(2, ChatbotLexComponent_div_2_div_26_ng_template_4_ng_container_3_br_2_Template, 1, 0, "br", 13);
36284
36301
  i0.ɵɵelementContainerEnd();
36285
36302
  } if (rf & 2) {
36286
- const line_r30 = ctx.$implicit;
36287
- const last_r31 = ctx.last;
36303
+ const line_r34 = ctx.$implicit;
36304
+ const last_r35 = ctx.last;
36288
36305
  i0.ɵɵadvance(1);
36289
- i0.ɵɵtextInterpolate1(" ", line_r30, " ");
36306
+ i0.ɵɵtextInterpolate1(" ", line_r34, " ");
36290
36307
  i0.ɵɵadvance(1);
36291
- i0.ɵɵproperty("ngIf", !last_r31);
36308
+ i0.ɵɵproperty("ngIf", !last_r35);
36292
36309
  } }
36293
- function ChatbotLexComponent_div_1_div_26_ng_template_4_div_4_Template(rf, ctx) { if (rf & 1) {
36294
- const _r35 = i0.ɵɵgetCurrentView();
36295
- i0.ɵɵelementStart(0, "div", 46)(1, "button", 47);
36296
- i0.ɵɵlistener("click", function ChatbotLexComponent_div_1_div_26_ng_template_4_div_4_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r35); const i_r9 = i0.ɵɵnextContext(2).index; const ctx_r33 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r33.onYesNoClick("Yes", i_r9)); });
36310
+ function ChatbotLexComponent_div_2_div_26_ng_template_4_div_4_Template(rf, ctx) { if (rf & 1) {
36311
+ const _r39 = i0.ɵɵgetCurrentView();
36312
+ 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(_r39); const i_r13 = i0.ɵɵnextContext(2).index; const ctx_r37 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r37.onYesNoClick("Yes", i_r13)); });
36297
36314
  i0.ɵɵtext(2, "Yes");
36298
36315
  i0.ɵɵelementEnd();
36299
- i0.ɵɵelementStart(3, "button", 48);
36300
- i0.ɵɵlistener("click", function ChatbotLexComponent_div_1_div_26_ng_template_4_div_4_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r35); const i_r9 = i0.ɵɵnextContext(2).index; const ctx_r36 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r36.onYesNoClick("No", i_r9)); });
36316
+ 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(_r39); const i_r13 = i0.ɵɵnextContext(2).index; const ctx_r40 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r40.onYesNoClick("No", i_r13)); });
36301
36318
  i0.ɵɵtext(4, "No");
36302
36319
  i0.ɵɵelementEnd()();
36303
36320
  } }
36304
- function ChatbotLexComponent_div_1_div_26_ng_template_4_div_5_div_1_button_1_Template(rf, ctx) { if (rf & 1) {
36305
- const _r43 = i0.ɵɵgetCurrentView();
36306
- i0.ɵɵelementStart(0, "button", 47);
36307
- i0.ɵɵlistener("click", function ChatbotLexComponent_div_1_div_26_ng_template_4_div_5_div_1_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r43); const url_r39 = i0.ɵɵnextContext().$implicit; const ctx_r41 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r41.openLink(url_r39)); });
36321
+ function ChatbotLexComponent_div_2_div_26_ng_template_4_div_5_div_1_button_1_Template(rf, ctx) { if (rf & 1) {
36322
+ const _r47 = i0.ɵɵgetCurrentView();
36323
+ 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(_r47); const url_r43 = i0.ɵɵnextContext().$implicit; const ctx_r45 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r45.openLink(url_r43)); });
36308
36325
  i0.ɵɵtext(1);
36309
36326
  i0.ɵɵelementEnd();
36310
36327
  } if (rf & 2) {
36311
- const url_r39 = i0.ɵɵnextContext().$implicit;
36328
+ const url_r43 = i0.ɵɵnextContext().$implicit;
36312
36329
  i0.ɵɵadvance(1);
36313
- i0.ɵɵtextInterpolate(url_r39);
36330
+ i0.ɵɵtextInterpolate(url_r43);
36314
36331
  } }
36315
- function ChatbotLexComponent_div_1_div_26_ng_template_4_div_5_div_1_Template(rf, ctx) { if (rf & 1) {
36332
+ function ChatbotLexComponent_div_2_div_26_ng_template_4_div_5_div_1_Template(rf, ctx) { if (rf & 1) {
36316
36333
  i0.ɵɵelementStart(0, "div");
36317
- i0.ɵɵtemplate(1, ChatbotLexComponent_div_1_div_26_ng_template_4_div_5_div_1_button_1_Template, 2, 1, "button", 49);
36334
+ i0.ɵɵtemplate(1, ChatbotLexComponent_div_2_div_26_ng_template_4_div_5_div_1_button_1_Template, 2, 1, "button", 55);
36318
36335
  i0.ɵɵelementEnd();
36319
36336
  } if (rf & 2) {
36320
- const msg_r8 = i0.ɵɵnextContext(3).$implicit;
36337
+ const msg_r12 = i0.ɵɵnextContext(3).$implicit;
36321
36338
  i0.ɵɵadvance(1);
36322
- i0.ɵɵproperty("ngIf", msg_r8.from === "bot");
36339
+ i0.ɵɵproperty("ngIf", msg_r12.from === "bot");
36323
36340
  } }
36324
- function ChatbotLexComponent_div_1_div_26_ng_template_4_div_5_Template(rf, ctx) { if (rf & 1) {
36341
+ function ChatbotLexComponent_div_2_div_26_ng_template_4_div_5_Template(rf, ctx) { if (rf & 1) {
36325
36342
  i0.ɵɵelementStart(0, "div");
36326
- i0.ɵɵtemplate(1, ChatbotLexComponent_div_1_div_26_ng_template_4_div_5_div_1_Template, 2, 1, "div", 44);
36343
+ i0.ɵɵtemplate(1, ChatbotLexComponent_div_2_div_26_ng_template_4_div_5_div_1_Template, 2, 1, "div", 50);
36327
36344
  i0.ɵɵelementEnd();
36328
36345
  } if (rf & 2) {
36329
- const msg_r8 = i0.ɵɵnextContext(2).$implicit;
36346
+ const msg_r12 = i0.ɵɵnextContext(2).$implicit;
36330
36347
  i0.ɵɵadvance(1);
36331
- i0.ɵɵproperty("ngForOf", msg_r8.url);
36348
+ i0.ɵɵproperty("ngForOf", msg_r12.url);
36332
36349
  } }
36333
- function ChatbotLexComponent_div_1_div_26_ng_template_4_Template(rf, ctx) { if (rf & 1) {
36334
- i0.ɵɵelementStart(0, "div", 41)(1, "div", 42)(2, "span", 43);
36335
- i0.ɵɵtemplate(3, ChatbotLexComponent_div_1_div_26_ng_template_4_ng_container_3_Template, 3, 2, "ng-container", 44);
36350
+ function ChatbotLexComponent_div_2_div_26_ng_template_4_Template(rf, ctx) { if (rf & 1) {
36351
+ i0.ɵɵelementStart(0, "div", 47)(1, "div", 48)(2, "span", 49);
36352
+ i0.ɵɵtemplate(3, ChatbotLexComponent_div_2_div_26_ng_template_4_ng_container_3_Template, 3, 2, "ng-container", 50);
36336
36353
  i0.ɵɵelementEnd();
36337
- i0.ɵɵtemplate(4, ChatbotLexComponent_div_1_div_26_ng_template_4_div_4_Template, 5, 0, "div", 45)(5, ChatbotLexComponent_div_1_div_26_ng_template_4_div_5_Template, 2, 1, "div", 7);
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", 13);
36338
36355
  i0.ɵɵelementEnd()();
36339
36356
  } if (rf & 2) {
36340
- const ctx_r47 = i0.ɵɵnextContext();
36341
- const msg_r8 = ctx_r47.$implicit;
36342
- const i_r9 = ctx_r47.index;
36343
- const ctx_r12 = i0.ɵɵnextContext(2);
36344
- i0.ɵɵclassProp("short-welcome", msg_r8.from === "bot" && msg_r8.text === "Hi! How may I help you?");
36357
+ const ctx_r51 = i0.ɵɵnextContext();
36358
+ const msg_r12 = ctx_r51.$implicit;
36359
+ const i_r13 = ctx_r51.index;
36360
+ const ctx_r16 = i0.ɵɵnextContext(2);
36361
+ i0.ɵɵclassProp("short-welcome", msg_r12.from === "bot" && msg_r12.text === "Hi! How may I help you?");
36345
36362
  i0.ɵɵadvance(3);
36346
- i0.ɵɵproperty("ngForOf", ctx_r12.displayLines(msg_r8.text));
36363
+ i0.ɵɵproperty("ngForOf", ctx_r16.displayLines(msg_r12.text));
36347
36364
  i0.ɵɵadvance(1);
36348
- i0.ɵɵproperty("ngIf", msg_r8.from === "bot" && ctx_r12.isYesNoPrompt(msg_r8.text, i_r9));
36365
+ i0.ɵɵproperty("ngIf", msg_r12.from === "bot" && ctx_r16.isYesNoPrompt(msg_r12.text, i_r13));
36349
36366
  i0.ɵɵadvance(1);
36350
- i0.ɵɵproperty("ngIf", msg_r8.url && msg_r8.url.length);
36367
+ i0.ɵɵproperty("ngIf", msg_r12.url && msg_r12.url.length);
36351
36368
  } }
36352
- function ChatbotLexComponent_div_1_div_26_div_6_Template(rf, ctx) { if (rf & 1) {
36353
- const _r50 = i0.ɵɵgetCurrentView();
36354
- i0.ɵɵelementStart(0, "div", 50)(1, "button", 51);
36355
- i0.ɵɵlistener("click", function ChatbotLexComponent_div_1_div_26_div_6_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r50); const i_r9 = i0.ɵɵnextContext().index; const ctx_r48 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r48.sendFeedback("Thumbs up", i_r9)); });
36369
+ function ChatbotLexComponent_div_2_div_26_div_6_Template(rf, ctx) { if (rf & 1) {
36370
+ const _r54 = i0.ɵɵgetCurrentView();
36371
+ 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(_r54); const i_r13 = i0.ɵɵnextContext().index; const ctx_r52 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r52.sendFeedback("Thumbs up", i_r13)); });
36356
36373
  i0.ɵɵtext(2, "\uD83D\uDC4D");
36357
36374
  i0.ɵɵelementEnd();
36358
- i0.ɵɵelementStart(3, "button", 52);
36359
- i0.ɵɵlistener("click", function ChatbotLexComponent_div_1_div_26_div_6_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r50); const i_r9 = i0.ɵɵnextContext().index; const ctx_r51 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r51.sendFeedback("Thumbs down", i_r9)); });
36375
+ i0.ɵɵelementStart(3, "button", 58);
36376
+ i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_div_26_div_6_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r54); const i_r13 = i0.ɵɵnextContext().index; const ctx_r55 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r55.sendFeedback("Thumbs down", i_r13)); });
36360
36377
  i0.ɵɵtext(4, "\uD83D\uDC4E");
36361
36378
  i0.ɵɵelementEnd()();
36362
36379
  } }
36363
- function ChatbotLexComponent_div_1_div_26_div_7_Template(rf, ctx) { if (rf & 1) {
36364
- i0.ɵɵelementStart(0, "div", 30);
36380
+ function ChatbotLexComponent_div_2_div_26_div_7_Template(rf, ctx) { if (rf & 1) {
36381
+ i0.ɵɵelementStart(0, "div", 36);
36365
36382
  i0.ɵɵtext(1);
36366
36383
  i0.ɵɵpipe(2, "date");
36367
36384
  i0.ɵɵelementEnd();
36368
36385
  } if (rf & 2) {
36369
- const msg_r8 = i0.ɵɵnextContext().$implicit;
36370
- i0.ɵɵproperty("ngClass", msg_r8.from === "bot" ? "message-time-bot" : "message-time");
36386
+ const msg_r12 = i0.ɵɵnextContext().$implicit;
36387
+ i0.ɵɵproperty("ngClass", msg_r12.from === "bot" ? "message-time-bot" : "message-time");
36371
36388
  i0.ɵɵadvance(1);
36372
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 2, msg_r8.timestamp, "EEE MMM dd yyyy 'at' hh:mm:ss a"), " ");
36389
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 2, msg_r12.timestamp, "EEE MMM dd yyyy 'at' hh:mm:ss a"), " ");
36373
36390
  } }
36374
- function ChatbotLexComponent_div_1_div_26_Template(rf, ctx) { if (rf & 1) {
36375
- i0.ɵɵelementStart(0, "div", 30)(1, "div", 31);
36376
- i0.ɵɵtemplate(2, ChatbotLexComponent_div_1_div_26_img_2_Template, 1, 0, "img", 32)(3, ChatbotLexComponent_div_1_div_26_ng_container_3_Template, 5, 1, "ng-container", 33)(4, ChatbotLexComponent_div_1_div_26_ng_template_4_Template, 6, 5, "ng-template", null, 34, i0.ɵɵtemplateRefExtractor)(6, ChatbotLexComponent_div_1_div_26_div_6_Template, 5, 0, "div", 35);
36391
+ function ChatbotLexComponent_div_2_div_26_Template(rf, ctx) { if (rf & 1) {
36392
+ i0.ɵɵelementStart(0, "div", 36)(1, "div", 37);
36393
+ i0.ɵɵtemplate(2, ChatbotLexComponent_div_2_div_26_img_2_Template, 1, 0, "img", 38)(3, ChatbotLexComponent_div_2_div_26_ng_container_3_Template, 5, 1, "ng-container", 39)(4, ChatbotLexComponent_div_2_div_26_ng_template_4_Template, 6, 5, "ng-template", null, 40, i0.ɵɵtemplateRefExtractor)(6, ChatbotLexComponent_div_2_div_26_div_6_Template, 5, 0, "div", 41);
36377
36394
  i0.ɵɵelementEnd();
36378
- i0.ɵɵtemplate(7, ChatbotLexComponent_div_1_div_26_div_7_Template, 3, 5, "div", 36);
36395
+ i0.ɵɵtemplate(7, ChatbotLexComponent_div_2_div_26_div_7_Template, 3, 5, "div", 42);
36379
36396
  i0.ɵɵelementEnd();
36380
36397
  } if (rf & 2) {
36381
- const msg_r8 = ctx.$implicit;
36382
- const i_r9 = ctx.index;
36383
- const _r13 = i0.ɵɵreference(5);
36384
- const ctx_r6 = i0.ɵɵnextContext(2);
36385
- i0.ɵɵproperty("ngClass", msg_r8.from);
36398
+ const msg_r12 = ctx.$implicit;
36399
+ const i_r13 = ctx.index;
36400
+ const _r17 = i0.ɵɵreference(5);
36401
+ const ctx_r10 = i0.ɵɵnextContext(2);
36402
+ i0.ɵɵproperty("ngClass", msg_r12.from);
36386
36403
  i0.ɵɵadvance(2);
36387
- i0.ɵɵproperty("ngIf", msg_r8.from === "bot");
36404
+ i0.ɵɵproperty("ngIf", msg_r12.from === "bot");
36388
36405
  i0.ɵɵadvance(1);
36389
- i0.ɵɵproperty("ngIf", msg_r8.from === "bot" && ctx_r6.isStarRatingPrompt(msg_r8.text, i_r9))("ngIfElse", _r13);
36406
+ i0.ɵɵproperty("ngIf", msg_r12.from === "bot" && ctx_r10.isStarRatingPrompt(msg_r12.text, i_r13))("ngIfElse", _r17);
36390
36407
  i0.ɵɵadvance(3);
36391
- i0.ɵɵproperty("ngIf", msg_r8.from === "bot" && (msg_r8.text == null ? null : msg_r8.text.trim()) != "Hi! How may I help you?" && !ctx_r6.isMessageRated(i_r9) && i_r9 === ctx_r6.messages.length - 1 && !ctx_r6.isAck);
36408
+ i0.ɵɵproperty("ngIf", msg_r12.from === "bot" && (msg_r12.text == null ? null : msg_r12.text.trim()) != "Hi! How may I help you?" && !ctx_r10.isMessageRated(i_r13) && i_r13 === ctx_r10.messages.length - 1 && !ctx_r10.isAck);
36392
36409
  i0.ɵɵadvance(1);
36393
- i0.ɵɵproperty("ngIf", msg_r8.timestamp);
36410
+ i0.ɵɵproperty("ngIf", msg_r12.timestamp);
36394
36411
  } }
36395
- function ChatbotLexComponent_div_1_Template(rf, ctx) { if (rf & 1) {
36396
- const _r55 = i0.ɵɵgetCurrentView();
36397
- i0.ɵɵelementStart(0, "div", 4)(1, "div", 5)(2, "button", 6);
36398
- i0.ɵɵlistener("click", function ChatbotLexComponent_div_1_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r55); const ctx_r54 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r54.toggleExpand()); });
36399
- i0.ɵɵtemplate(3, ChatbotLexComponent_div_1_span_3_Template, 2, 0, "span", 7);
36412
+ function ChatbotLexComponent_div_2_Template(rf, ctx) { if (rf & 1) {
36413
+ const _r59 = i0.ɵɵgetCurrentView();
36414
+ i0.ɵɵelementStart(0, "div", 10)(1, "div", 11)(2, "button", 12);
36415
+ i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r59); const ctx_r58 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r58.toggleExpand()); });
36416
+ i0.ɵɵtemplate(3, ChatbotLexComponent_div_2_span_3_Template, 2, 0, "span", 13);
36400
36417
  i0.ɵɵelementEnd();
36401
- i0.ɵɵelementStart(4, "button", 8);
36402
- i0.ɵɵlistener("click", function ChatbotLexComponent_div_1_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r55); const ctx_r56 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r56.minimizeChat()); });
36418
+ i0.ɵɵelementStart(4, "button", 14);
36419
+ i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r59); const ctx_r60 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r60.minimizeChat()); });
36403
36420
  i0.ɵɵtext(5, " _ ");
36404
36421
  i0.ɵɵelementEnd();
36405
- i0.ɵɵelementStart(6, "button", 9);
36406
- i0.ɵɵlistener("click", function ChatbotLexComponent_div_1_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r55); const ctx_r57 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r57.closeChat()); });
36422
+ i0.ɵɵelementStart(6, "button", 15);
36423
+ i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r59); const ctx_r61 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r61.closeChat()); });
36407
36424
  i0.ɵɵtext(7, " \u2715 ");
36408
36425
  i0.ɵɵelementEnd()();
36409
- i0.ɵɵelementStart(8, "div", 10)(9, "span", 11);
36410
- i0.ɵɵelement(10, "img", 12);
36411
- i0.ɵɵelementStart(11, "span", 13)(12, "span", 14);
36426
+ i0.ɵɵelementStart(8, "div", 16)(9, "span", 17);
36427
+ i0.ɵɵelement(10, "img", 18);
36428
+ i0.ɵɵelementStart(11, "span", 19)(12, "span", 20);
36412
36429
  i0.ɵɵtext(13, "Amelia");
36413
36430
  i0.ɵɵelementEnd();
36414
- i0.ɵɵelementStart(14, "span", 15);
36415
- i0.ɵɵelement(15, "span", 16);
36416
- i0.ɵɵelementStart(16, "span", 17);
36431
+ i0.ɵɵelementStart(14, "span", 21);
36432
+ i0.ɵɵelement(15, "span", 22);
36433
+ i0.ɵɵelementStart(16, "span", 23);
36417
36434
  i0.ɵɵtext(17);
36418
36435
  i0.ɵɵelementEnd()()()();
36419
- i0.ɵɵelementStart(18, "div", 18)(19, "button", 19);
36420
- i0.ɵɵlistener("mouseenter", function ChatbotLexComponent_div_1_Template_button_mouseenter_19_listener() { i0.ɵɵrestoreView(_r55); const ctx_r58 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r58.getSessionID()); })("click", function ChatbotLexComponent_div_1_Template_button_click_19_listener() { i0.ɵɵrestoreView(_r55); const ctx_r59 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r59.copySessionId()); });
36436
+ i0.ɵɵelementStart(18, "div", 24)(19, "button", 25);
36437
+ i0.ɵɵlistener("mouseenter", function ChatbotLexComponent_div_2_Template_button_mouseenter_19_listener() { i0.ɵɵrestoreView(_r59); const ctx_r62 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r62.getSessionID()); })("click", function ChatbotLexComponent_div_2_Template_button_click_19_listener() { i0.ɵɵrestoreView(_r59); const ctx_r63 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r63.copySessionId()); });
36421
36438
  i0.ɵɵtext(20, " \uD83D\uDEC8 ");
36422
36439
  i0.ɵɵelementEnd();
36423
- i0.ɵɵelementStart(21, "button", 20);
36424
- i0.ɵɵlistener("click", function ChatbotLexComponent_div_1_Template_button_click_21_listener() { i0.ɵɵrestoreView(_r55); const ctx_r60 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r60.refreshChat()); });
36440
+ i0.ɵɵelementStart(21, "button", 26);
36441
+ i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_21_listener() { i0.ɵɵrestoreView(_r59); const ctx_r64 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r64.refreshChat()); });
36425
36442
  i0.ɵɵtext(22, " \u27F3 ");
36426
36443
  i0.ɵɵelementEnd()()();
36427
- i0.ɵɵelementStart(23, "div", 21)(24, "div", 22, 23);
36428
- i0.ɵɵtemplate(26, ChatbotLexComponent_div_1_div_26_Template, 8, 6, "div", 24);
36444
+ i0.ɵɵelementStart(23, "div", 27)(24, "div", 28, 29);
36445
+ i0.ɵɵtemplate(26, ChatbotLexComponent_div_2_div_26_Template, 8, 6, "div", 30);
36429
36446
  i0.ɵɵelementEnd()();
36430
- i0.ɵɵelementStart(27, "div", 25)(28, "div", 26)(29, "textarea", 27, 28);
36431
- i0.ɵɵlistener("ngModelChange", function ChatbotLexComponent_div_1_Template_textarea_ngModelChange_29_listener($event) { i0.ɵɵrestoreView(_r55); const ctx_r61 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r61.userInput = $event); })("input", function ChatbotLexComponent_div_1_Template_textarea_input_29_listener() { i0.ɵɵrestoreView(_r55); const ctx_r62 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r62.autoGrow()); })("keydown.enter", function ChatbotLexComponent_div_1_Template_textarea_keydown_enter_29_listener($event) { i0.ɵɵrestoreView(_r55); const ctx_r63 = i0.ɵɵnextContext(); $event.preventDefault(); return i0.ɵɵresetView(ctx_r63.handleEnter()); });
36447
+ 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(_r59); const ctx_r65 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r65.userInput = $event); })("input", function ChatbotLexComponent_div_2_Template_textarea_input_29_listener() { i0.ɵɵrestoreView(_r59); const ctx_r66 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r66.autoGrow()); })("keydown.enter", function ChatbotLexComponent_div_2_Template_textarea_keydown_enter_29_listener($event) { i0.ɵɵrestoreView(_r59); const ctx_r67 = i0.ɵɵnextContext(); $event.preventDefault(); return i0.ɵɵresetView(ctx_r67.handleEnter()); });
36432
36449
  i0.ɵɵtext(31, " ");
36433
36450
  i0.ɵɵelementEnd()();
36434
- i0.ɵɵelementStart(32, "button", 29);
36435
- i0.ɵɵlistener("click", function ChatbotLexComponent_div_1_Template_button_click_32_listener() { i0.ɵɵrestoreView(_r55); const ctx_r64 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r64.sendMessage()); });
36451
+ i0.ɵɵelementStart(32, "button", 35);
36452
+ i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_32_listener() { i0.ɵɵrestoreView(_r59); const ctx_r68 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r68.sendMessage()); });
36436
36453
  i0.ɵɵtext(33, " Send ");
36437
36454
  i0.ɵɵelementEnd()()();
36438
36455
  } if (rf & 2) {
36439
- const ctx_r1 = i0.ɵɵnextContext();
36440
- i0.ɵɵclassProp("expanded", ctx_r1.isExpanded);
36456
+ const ctx_r2 = i0.ɵɵnextContext();
36457
+ i0.ɵɵclassProp("expanded", ctx_r2.isExpanded);
36441
36458
  i0.ɵɵadvance(3);
36442
- i0.ɵɵproperty("ngIf", !ctx_r1.isExpanded);
36459
+ i0.ɵɵproperty("ngIf", !ctx_r2.isExpanded);
36443
36460
  i0.ɵɵadvance(12);
36444
- i0.ɵɵclassProp("offline", ctx_r1.botOffline);
36461
+ i0.ɵɵclassProp("offline", ctx_r2.botOffline);
36445
36462
  i0.ɵɵadvance(1);
36446
- i0.ɵɵclassProp("online-text", !ctx_r1.botOffline)("offline-text", ctx_r1.botOffline);
36463
+ i0.ɵɵclassProp("online-text", !ctx_r2.botOffline)("offline-text", ctx_r2.botOffline);
36447
36464
  i0.ɵɵadvance(1);
36448
- i0.ɵɵtextInterpolate1(" ", ctx_r1.botOffline ? "Offline" : "Online", " ");
36465
+ i0.ɵɵtextInterpolate1(" ", ctx_r2.botOffline ? "Offline" : "Online", " ");
36449
36466
  i0.ɵɵadvance(2);
36450
- i0.ɵɵstyleProp("visibility", ctx_r1.infoVisible ? "visible" : "hidden");
36451
- i0.ɵɵpropertyInterpolate("title", ctx_r1.sessionId);
36467
+ i0.ɵɵstyleProp("visibility", ctx_r2.infoVisible ? "visible" : "hidden");
36468
+ i0.ɵɵpropertyInterpolate("title", ctx_r2.sessionId);
36452
36469
  i0.ɵɵadvance(7);
36453
- i0.ɵɵproperty("ngForOf", ctx_r1.messages);
36470
+ i0.ɵɵproperty("ngForOf", ctx_r2.messages);
36454
36471
  i0.ɵɵadvance(3);
36455
- i0.ɵɵproperty("ngModel", ctx_r1.userInput)("disabled", ctx_r1.sending || ctx_r1.isDisabled);
36472
+ i0.ɵɵproperty("ngModel", ctx_r2.userInput)("disabled", ctx_r2.sending || ctx_r2.isDisabled);
36456
36473
  i0.ɵɵadvance(3);
36457
- i0.ɵɵproperty("disabled", ctx_r1.sending || ctx_r1.isDisabled);
36474
+ i0.ɵɵproperty("disabled", ctx_r2.sending || ctx_r2.isDisabled);
36458
36475
  } }
36459
36476
  class ChatbotLexComponent {
36460
36477
  toggleExpand() {
@@ -36490,6 +36507,8 @@ class ChatbotLexComponent {
36490
36507
  this.sessionId = '';
36491
36508
  this.infoVisible = false;
36492
36509
  this.isSessionActive = true;
36510
+ this.showImportantMessage = false;
36511
+ this.importantMessageShown = false;
36493
36512
  this.clientFilter = '';
36494
36513
  this.messages = [];
36495
36514
  this.userInput = '';
@@ -36514,7 +36533,7 @@ class ChatbotLexComponent {
36514
36533
  this.starHover = {};
36515
36534
  this.starLocked = new Set();
36516
36535
  this.feedbackPromptShown = false;
36517
- this.waitForStarRating = false;
36536
+ this.imporantMessageShown = false;
36518
36537
  }
36519
36538
  setWelcomeMessage() {
36520
36539
  const welcomeText = this.chatIDtheft
@@ -36560,7 +36579,7 @@ class ChatbotLexComponent {
36560
36579
  // console.log("service chatID theft:", this.lexChat.chatIDtheft);
36561
36580
  // console.log("component chatID theft before", this.chatIDtheft);
36562
36581
  this.chatIDtheft = this.lexChat.chatIDtheft;
36563
- //console.log("component chatID theft after:", this.chatIDtheft);
36582
+ this.isSessionActive = true;
36564
36583
  this.isDisabled = false;
36565
36584
  this.botOffline = false;
36566
36585
  this.is_end_session = false;
@@ -36599,12 +36618,57 @@ class ChatbotLexComponent {
36599
36618
  this.isSessionActive = false;
36600
36619
  this.isAck = false;
36601
36620
  this.endedByIdleCounter = false;
36602
- this.is_end_session = false;
36621
+ this.is_end_session = true;
36603
36622
  this.isIdle = false;
36604
36623
  this.idleRequestInFlight = false;
36605
36624
  this.idleDetectCount = 0;
36606
36625
  this.lexChat.closeChat();
36607
36626
  this.feedbackPromptShown = false;
36627
+ this.is_end_session = true;
36628
+ this.messages = [];
36629
+ this.chatIDtheft = false;
36630
+ }
36631
+ 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
+ if (this.isSessionActive &&
36640
+ !this.is_end_session &&
36641
+ this.messages.length > 0) {
36642
+ this.toggleChat();
36643
+ return;
36644
+ }
36645
+ if (!this.imporantMessageShown) {
36646
+ this.imporantMessageShown = true;
36647
+ this.showImportantMessage = true;
36648
+ return;
36649
+ }
36650
+ this.startAmeliaChat();
36651
+ }
36652
+ startAmeliaChat() {
36653
+ this.showImportantMessage = false;
36654
+ this.lexChat.resetSession({
36655
+ regenerateSessionId: true
36656
+ });
36657
+ this.lexChat.openChat(false);
36658
+ }
36659
+ openChatbotFromCloud() {
36660
+ console.log('openRequested received in AppComponent');
36661
+ this.showImportantMessage = true;
36662
+ }
36663
+ continueToAmelia() {
36664
+ this.showImportantMessage = false;
36665
+ this.lexChat.resetSession({
36666
+ regenerateSessionId: true
36667
+ });
36668
+ this.lexChat.openChat(false);
36669
+ }
36670
+ closeImportantMessage() {
36671
+ this.showImportantMessage = false;
36608
36672
  }
36609
36673
  async sendMessage(hideUserMessage = false) {
36610
36674
  const trimmed = this.userInput.trim();
@@ -36924,6 +36988,7 @@ class ChatbotLexComponent {
36924
36988
  this.endedByIdleCounter = true;
36925
36989
  this.botOffline = true;
36926
36990
  this.isSessionActive = false;
36991
+ this.is_end_session = true;
36927
36992
  }
36928
36993
  }
36929
36994
  catch (err) {
@@ -36965,17 +37030,19 @@ class ChatbotLexComponent {
36965
37030
  let _t;
36966
37031
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.messageInput = _t.first);
36967
37032
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.chatWindow = _t.first);
36968
- } }, inputs: { clientFilter: "clientFilter" }, decls: 2, vars: 2, consts: [["class", "chatbot-fab", "aria-label", "Open chat", "title", "Chat with us", 3, "click", 4, "ngIf"], ["class", "chat-popup", 3, "expanded", 4, "ngIf"], ["aria-label", "Open chat", "title", "Chat with us", 1, "chatbot-fab", 3, "click"], ["src", "assets/icon/amelia-new-icon.png", "alt", "Amelia", 1, "chatbot-fab-icon"], [1, "chat-popup"], [1, "chat-top-actions"], ["type", "button", "title", "Expand", 1, "top-action-btn", 3, "click"], [4, "ngIf"], ["type", "button", "title", "Minimize", "aria-label", "Minimize", 1, "top-action-btn", 3, "click"], ["type", "button", "title", "Close", "aria-label", "Close", 1, "top-action-btn", 3, "click"], [1, "chat-popup-header"], [1, "icon-label"], ["src", "assets/icon/amelia-new-icon.png", "alt", "Amelia", 1, "amelia-header-icon"], [1, "text-block"], [1, "label-text"], [1, "status-wrapper"], [1, "status-dot"], [1, "status"], [1, "chat-popup-actions"], ["type", "button", "aria-label", "Info", 1, "action-btn", "info-btn", 3, "title", "mouseenter", "click"], ["type", "button", "title", "Refresh", "aria-label", "Refresh", 1, "action-btn", 3, "click"], [1, "chat-body"], ["role", "log", "aria-live", "polite", 1, "chat-window"], ["chatWindow", ""], [3, "ngClass", 4, "ngFor", "ngForOf"], [1, "input-row"], [1, "chat-input-wrapper"], ["placeholder", "Type your message...", "rows", "1", 1, "chat-input", 3, "ngModel", "disabled", "ngModelChange", "input", "keydown.enter"], ["messageInput", ""], [1, "send-btn", 3, "disabled", "click"], [3, "ngClass"], [1, "bubble"], ["class", "amelia-message-icon", "src", "assets/icon/amelia-new-icon.png", "alt", "Amelia", 4, "ngIf"], [4, "ngIf", "ngIfElse"], ["normalBubble", ""], ["class", "feedback", 4, "ngIf"], [3, "ngClass", 4, "ngIf"], ["src", "assets/icon/amelia-new-icon.png", "alt", "Amelia", 1, "amelia-message-icon"], [1, "star-group", 3, "mouseleave"], ["type", "button", "class", "star", 3, "filled", "title", "mouseenter", "click", 4, "ngFor", "ngForOf"], ["type", "button", 1, "star", 3, "title", "mouseenter", "click"], [1, "message-wrapper"], [1, "bubble-content"], [1, "formatted-text"], [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) {
36969
- i0.ɵɵtemplate(0, ChatbotLexComponent_button_0_Template, 2, 0, "button", 0)(1, ChatbotLexComponent_div_1_Template, 34, 17, "div", 1);
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"], [4, "ngIf"], ["type", "button", "title", "Minimize", "aria-label", "Minimize", 1, "top-action-btn", 3, "click"], ["type", "button", "title", "Close", "aria-label", "Close", 1, "top-action-btn", 3, "click"], [1, "chat-popup-header"], [1, "icon-label"], ["src", "assets/icon/amelia-new-icon.png", "alt", "Amelia", 1, "amelia-header-icon"], [1, "text-block"], [1, "label-text"], [1, "status-wrapper"], [1, "status-dot"], [1, "status"], [1, "chat-popup-actions"], ["type", "button", "aria-label", "Info", 1, "action-btn", "info-btn", 3, "title", "mouseenter", "click"], ["type", "button", "title", "Refresh", "aria-label", "Refresh", 1, "action-btn", 3, "click"], [1, "chat-body"], ["role", "log", "aria-live", "polite", 1, "chat-window"], ["chatWindow", ""], [3, "ngClass", 4, "ngFor", "ngForOf"], [1, "input-row"], [1, "chat-input-wrapper"], ["placeholder", "Type your message...", "rows", "1", 1, "chat-input", 3, "ngModel", "disabled", "ngModelChange", "input", "keydown.enter"], ["messageInput", ""], [1, "send-btn", 3, "disabled", "click"], [3, "ngClass"], [1, "bubble"], ["class", "amelia-message-icon", "src", "assets/icon/amelia-new-icon.png", "alt", "Amelia", 4, "ngIf"], [4, "ngIf", "ngIfElse"], ["normalBubble", ""], ["class", "feedback", 4, "ngIf"], [3, "ngClass", 4, "ngIf"], ["src", "assets/icon/amelia-new-icon.png", "alt", "Amelia", 1, "amelia-message-icon"], [1, "star-group", 3, "mouseleave"], ["type", "button", "class", "star", 3, "filled", "title", "mouseenter", "click", 4, "ngFor", "ngForOf"], ["type", "button", 1, "star", 3, "title", "mouseenter", "click"], [1, "message-wrapper"], [1, "bubble-content"], [1, "formatted-text"], [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) {
37034
+ i0.ɵɵtemplate(0, ChatbotLexComponent_button_0_Template, 2, 0, "button", 0)(1, ChatbotLexComponent_div_1_Template, 11, 0, "div", 1)(2, ChatbotLexComponent_div_2_Template, 34, 17, "div", 2);
36970
37035
  } if (rf & 2) {
36971
37036
  i0.ɵɵproperty("ngIf", !ctx.chatOpen);
36972
37037
  i0.ɵɵadvance(1);
37038
+ i0.ɵɵproperty("ngIf", ctx.showImportantMessage);
37039
+ i0.ɵɵadvance(1);
36973
37040
  i0.ɵɵproperty("ngIf", ctx.chatOpen);
36974
- } }, 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}@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}}"] }); }
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}}"] }); }
36975
37042
  }
36976
37043
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ChatbotLexComponent, [{
36977
37044
  type: Component,
36978
- args: [{ selector: 'app-chatbot-lex', template: "\r\n\r\n\r\n<!-- Floating chat toggle button -->\r\n<button\r\n class=\"chatbot-fab\"\r\n (click)=\"toggleChat()\"\r\n *ngIf=\"!chatOpen\"\r\n aria-label=\"Open chat\"\r\n title=\"Chat with us\">\r\n <img\r\n class=\"chatbot-fab-icon\"\r\n src=\"assets/icon/amelia-new-icon.png\"\r\n alt=\"Amelia\"\r\n />\r\n</button>\r\n\r\n<!-- Chat popup -->\r\n<div class=\"chat-popup\" *ngIf=\"chatOpen\" [class.expanded]=\"isExpanded\">\r\n <div class=\"chat-top-actions\">\r\n <button\r\n class=\"top-action-btn\"\r\n type=\"button\"\r\n (click)=\"toggleExpand()\"\r\n title=\"Expand\">\r\n <span *ngIf=\"!isExpanded\">\u26F6</span>\r\n </button>\r\n <button \r\n class=\"top-action-btn\" \r\n type=\"button\" \r\n (click)=\"minimizeChat()\" \r\n title=\"Minimize\" \r\n aria-label=\"Minimize\">\r\n _\r\n </button> \r\n <button \r\n class=\"top-action-btn\" \r\n type=\"button\" \r\n (click)=\"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}@media (max-width: 480px){.chat-popup{width:calc(100vw - 16px);right:8px;bottom:8px;height:70vh}.bubble{max-width:90%;font-size:13px}}\n"] }]
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 &times;\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"] }]
36979
37046
  }], () => [{ type: LexChatService }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }], { clientFilter: [{
36980
37047
  type: Input
36981
37048
  }], messageInput: [{
@@ -36985,7 +37052,7 @@ class ChatbotLexComponent {
36985
37052
  type: ViewChild,
36986
37053
  args: ['chatWindow']
36987
37054
  }] }); })();
36988
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ChatbotLexComponent, { className: "ChatbotLexComponent", filePath: "lib\\components\\chatbot-lex\\chatbot-lex.component.ts", lineNumber: 27 }); })();
37055
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ChatbotLexComponent, { className: "ChatbotLexComponent", filePath: "lib\\components\\chatbot-lex\\chatbot-lex.component.ts", lineNumber: 28 }); })();
36989
37056
 
36990
37057
  function createTranslateLoader(http) {
36991
37058
  // return new TranslateHttpLoader(http, `./assets/i18n/${environment.state}/`, ".json");