@ksremp/ngx-ksremp-app-lib 1.0.37 → 1.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/components/chatbot-lex/chatbot-lex.component.mjs +163 -91
- package/esm2022/lib/components/header/header.component.mjs +23 -14
- package/esm2022/lib/components/user-login/user-login.component.mjs +27 -17
- package/esm2022/lib/services/lex-chat/lex-chat.service.mjs +35 -2
- package/fesm2022/ksremp-ngx-ksremp-app-lib.mjs +343 -220
- package/fesm2022/ksremp-ngx-ksremp-app-lib.mjs.map +1 -1
- package/lib/components/chatbot-lex/chatbot-lex.component.d.ts +8 -0
- package/lib/components/chatbot-lex/chatbot-lex.component.d.ts.map +1 -1
- package/lib/components/header/header.component.d.ts +1 -0
- package/lib/components/header/header.component.d.ts.map +1 -1
- package/lib/components/questionnaire/dynamic-form-question.component.d.ts +1 -1
- package/lib/components/user-login/user-login.component.d.ts +3 -1
- package/lib/components/user-login/user-login.component.d.ts.map +1 -1
- package/lib/services/lex-chat/lex-chat.service.d.ts +6 -2
- package/lib/services/lex-chat/lex-chat.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -21,7 +21,7 @@ import * as i5 from '@ngx-loading-bar/core';
|
|
|
21
21
|
import { LoadingBarModule } from '@ngx-loading-bar/core';
|
|
22
22
|
import * as i1$1 from 'ngx-logger';
|
|
23
23
|
import * as i6 from '@angular/platform-browser';
|
|
24
|
-
import { BehaviorSubject, interval, throwError, catchError, of, tap, from, timer, firstValueFrom, finalize, combineLatest
|
|
24
|
+
import { BehaviorSubject, interval, throwError, catchError, of, tap, from, timer, Subject, firstValueFrom, finalize, combineLatest } from 'rxjs';
|
|
25
25
|
import * as i2$1 from 'ngx-joyride';
|
|
26
26
|
import { JoyrideModule } from 'ngx-joyride';
|
|
27
27
|
import { LoadingBarHttpClientModule } from '@ngx-loading-bar/http-client';
|
|
@@ -79,7 +79,7 @@ import * as i10 from '@fortawesome/angular-fontawesome';
|
|
|
79
79
|
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
80
80
|
import * as i15$1 from 'primeng/password';
|
|
81
81
|
import { PasswordModule } from 'primeng/password';
|
|
82
|
-
import * as
|
|
82
|
+
import * as i16$2 from 'primeng/inputtext';
|
|
83
83
|
import { InputTextModule } from 'primeng/inputtext';
|
|
84
84
|
import * as i8$3 from 'primeng/table';
|
|
85
85
|
import { TableModule } from 'primeng/table';
|
|
@@ -112,7 +112,7 @@ import * as i5$7 from 'primeng/overlay';
|
|
|
112
112
|
import { OverlayModule } from 'primeng/overlay';
|
|
113
113
|
import * as i6$6 from 'primeng/scroller';
|
|
114
114
|
import { ScrollerModule } from 'primeng/scroller';
|
|
115
|
-
import * as i7$
|
|
115
|
+
import * as i7$3 from 'primeng/autofocus';
|
|
116
116
|
import { AutoFocusModule } from 'primeng/autofocus';
|
|
117
117
|
import * as i8$5 from 'primeng/icons/chevrondown';
|
|
118
118
|
import { ChevronDownIcon } from 'primeng/icons/chevrondown';
|
|
@@ -5917,6 +5917,10 @@ function HeaderComponent_ion_buttons_13_Template(rf, ctx) { if (rf & 1) {
|
|
|
5917
5917
|
i0.ɵɵlistener("click", function HeaderComponent_ion_buttons_13_Template_ion_button_click_3_listener($event) { i0.ɵɵrestoreView(_r44); const _r42 = i0.ɵɵreference(2); return i0.ɵɵresetView(_r42.toggle($event)); });
|
|
5918
5918
|
i0.ɵɵpipe(4, "translate");
|
|
5919
5919
|
i0.ɵɵelement(5, "ion-icon", 36);
|
|
5920
|
+
i0.ɵɵelementStart(6, "span", 37);
|
|
5921
|
+
i0.ɵɵtext(7);
|
|
5922
|
+
i0.ɵɵelementEnd();
|
|
5923
|
+
i0.ɵɵelement(8, "ion-icon", 38);
|
|
5920
5924
|
i0.ɵɵelementEnd()();
|
|
5921
5925
|
} if (rf & 2) {
|
|
5922
5926
|
const ctx_r6 = i0.ɵɵnextContext();
|
|
@@ -5924,10 +5928,12 @@ function HeaderComponent_ion_buttons_13_Template(rf, ctx) { if (rf & 1) {
|
|
|
5924
5928
|
i0.ɵɵadvance(1);
|
|
5925
5929
|
i0.ɵɵproperty("popup", true)("model", ctx_r6.items);
|
|
5926
5930
|
i0.ɵɵadvance(2);
|
|
5927
|
-
i0.ɵɵpropertyInterpolate("pTooltip", i0.ɵɵpipeBind1(4,
|
|
5931
|
+
i0.ɵɵpropertyInterpolate("pTooltip", i0.ɵɵpipeBind1(4, 5, "header.language"));
|
|
5932
|
+
i0.ɵɵadvance(4);
|
|
5933
|
+
i0.ɵɵtextInterpolate(ctx_r6.selectedLanguage);
|
|
5928
5934
|
} }
|
|
5929
5935
|
function HeaderComponent_ion_toolbar_14_ion_title_3_Template(rf, ctx) { if (rf & 1) {
|
|
5930
|
-
i0.ɵɵelementStart(0, "ion-title",
|
|
5936
|
+
i0.ɵɵelementStart(0, "ion-title", 43);
|
|
5931
5937
|
i0.ɵɵtext(1);
|
|
5932
5938
|
i0.ɵɵelementEnd();
|
|
5933
5939
|
} if (rf & 2) {
|
|
@@ -5936,7 +5942,7 @@ function HeaderComponent_ion_toolbar_14_ion_title_3_Template(rf, ctx) { if (rf &
|
|
|
5936
5942
|
i0.ɵɵtextInterpolate(ctx_r45.title);
|
|
5937
5943
|
} }
|
|
5938
5944
|
function HeaderComponent_ion_toolbar_14_ion_title_6_Template(rf, ctx) { if (rf & 1) {
|
|
5939
|
-
i0.ɵɵelementStart(0, "ion-title",
|
|
5945
|
+
i0.ɵɵelementStart(0, "ion-title", 44);
|
|
5940
5946
|
i0.ɵɵtext(1);
|
|
5941
5947
|
i0.ɵɵelementEnd();
|
|
5942
5948
|
} if (rf & 2) {
|
|
@@ -5945,13 +5951,13 @@ function HeaderComponent_ion_toolbar_14_ion_title_6_Template(rf, ctx) { if (rf &
|
|
|
5945
5951
|
i0.ɵɵtextInterpolate1(" ", ctx_r46.pageId, "");
|
|
5946
5952
|
} }
|
|
5947
5953
|
function HeaderComponent_ion_toolbar_14_Template(rf, ctx) { if (rf & 1) {
|
|
5948
|
-
i0.ɵɵelementStart(0, "ion-toolbar",
|
|
5949
|
-
i0.ɵɵelement(2, "ion-back-button",
|
|
5950
|
-
i0.ɵɵtemplate(3, HeaderComponent_ion_toolbar_14_ion_title_3_Template, 2, 1, "ion-title",
|
|
5954
|
+
i0.ɵɵelementStart(0, "ion-toolbar", 39)(1, "ion-buttons", 15);
|
|
5955
|
+
i0.ɵɵelement(2, "ion-back-button", 40);
|
|
5956
|
+
i0.ɵɵtemplate(3, HeaderComponent_ion_toolbar_14_ion_title_3_Template, 2, 1, "ion-title", 41);
|
|
5951
5957
|
i0.ɵɵelementEnd();
|
|
5952
5958
|
i0.ɵɵprojection(4, 1);
|
|
5953
5959
|
i0.ɵɵelementStart(5, "ion-buttons", 24);
|
|
5954
|
-
i0.ɵɵtemplate(6, HeaderComponent_ion_toolbar_14_ion_title_6_Template, 2, 1, "ion-title",
|
|
5960
|
+
i0.ɵɵtemplate(6, HeaderComponent_ion_toolbar_14_ion_title_6_Template, 2, 1, "ion-title", 42);
|
|
5955
5961
|
i0.ɵɵelementEnd()();
|
|
5956
5962
|
} if (rf & 2) {
|
|
5957
5963
|
const ctx_r7 = i0.ɵɵnextContext();
|
|
@@ -5964,7 +5970,7 @@ function HeaderComponent_ion_toolbar_14_Template(rf, ctx) { if (rf & 1) {
|
|
|
5964
5970
|
} }
|
|
5965
5971
|
function HeaderComponent_app_profile_16_Template(rf, ctx) { if (rf & 1) {
|
|
5966
5972
|
const _r48 = i0.ɵɵgetCurrentView();
|
|
5967
|
-
i0.ɵɵelementStart(0, "app-profile",
|
|
5973
|
+
i0.ɵɵelementStart(0, "app-profile", 45);
|
|
5968
5974
|
i0.ɵɵlistener("onCancel", function HeaderComponent_app_profile_16_Template_app_profile_onCancel_0_listener() { i0.ɵɵrestoreView(_r48); const ctx_r47 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r47.showProfilePopup = false); });
|
|
5969
5975
|
i0.ɵɵelementEnd();
|
|
5970
5976
|
} }
|
|
@@ -5993,7 +5999,9 @@ class HeaderComponent extends BasePage {
|
|
|
5993
5999
|
}
|
|
5994
6000
|
ngOnInit() {
|
|
5995
6001
|
//this.loadNotificationCount();
|
|
6002
|
+
const language = localStorage.getItem("language") || 'en';
|
|
5996
6003
|
this.translateService.use(localStorage.getItem("language"));
|
|
6004
|
+
this.selectedLanguage = language === 'es' ? 'Español' : 'English';
|
|
5997
6005
|
this.setMenuItems(localStorage.getItem("language"));
|
|
5998
6006
|
}
|
|
5999
6007
|
presentJobSearchResultPopup() {
|
|
@@ -6016,7 +6024,7 @@ class HeaderComponent extends BasePage {
|
|
|
6016
6024
|
label: 'Español',
|
|
6017
6025
|
icon: this.getIcon(language, 'es'),
|
|
6018
6026
|
command: () => {
|
|
6019
|
-
this.setLanguage('es', '
|
|
6027
|
+
this.setLanguage('es', 'Español');
|
|
6020
6028
|
}
|
|
6021
6029
|
}]
|
|
6022
6030
|
}];
|
|
@@ -6032,6 +6040,7 @@ class HeaderComponent extends BasePage {
|
|
|
6032
6040
|
setLanguage(language, name) {
|
|
6033
6041
|
this.translateService.use(language);
|
|
6034
6042
|
localStorage.setItem('language', language);
|
|
6043
|
+
this.selectedLanguage = name;
|
|
6035
6044
|
this.util.toast('Language preference changed to ' + name);
|
|
6036
6045
|
this.setMenuItems(language);
|
|
6037
6046
|
}
|
|
@@ -6157,7 +6166,7 @@ class HeaderComponent extends BasePage {
|
|
|
6157
6166
|
return this.translateService.instant('common.history');
|
|
6158
6167
|
}
|
|
6159
6168
|
static { this.ɵfac = function HeaderComponent_Factory(t) { return new (t || HeaderComponent)(i0.ɵɵdirectiveInject(LoginService), i0.ɵɵdirectiveInject(UtilService), i0.ɵɵdirectiveInject(i4.Router), i0.ɵɵdirectiveInject(i1$3.PopoverController), i0.ɵɵdirectiveInject(ClaimantService$1), i0.ɵɵdirectiveInject(i1$3.NavController), i0.ɵɵdirectiveInject(i1$3.ModalController), i0.ɵɵdirectiveInject(NotificationService), i0.ɵɵdirectiveInject(HelpService), i0.ɵɵdirectiveInject(i6$1.TranslateService)); }; }
|
|
6160
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HeaderComponent, selectors: [["app-header"]], inputs: { title: "title", pageId: "pageId", secondToolbar: "secondToolbar", displayLogo: "displayLogo", showHistory: "showHistory", backPage: "backPage", isEmployer: "isEmployer" }, features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$I, decls: 17, vars: 16, consts: [["mode", "determinate", 3, "value", 4, "ngIf"], ["slot", "start", 2, "margin-left", "-5px"], ["autoHide", "false", "tooltipPosition", "bottom", 3, "pTooltip", 4, "ngIf"], ["slot", "start", 3, "ngClass"], ["alt", "Logo of the Kansas Department of Labor", "tooltipPosition", "bottom", "aria-label", "Logo of the Kansas Department of Labor", "id", "header_reemployme_logo", "src", "assets/icon/kdol_logo.png", 3, "pTooltip", "ngClass"], ["slot", "start", 4, "ngIf"], ["class", "toolbar-content hide-xs", 4, "ngIf"], ["slot", "end", 4, "ngIf"], ["slot", "secondary", 4, "ngIf"], ["slot", "end", 3, "disabled", 4, "ngIf"], ["color", "light", "id", "secondToolbar", 4, "ngIf"], ["position", "top-center"], [3, "onCancel", 4, "ngIf"], ["mode", "determinate", 3, "value"], ["autoHide", "false", "tooltipPosition", "bottom", 3, "pTooltip"], ["slot", "start"], ["tooltipPosition", "bottom", 3, "pTooltip", "ngClass", "click"], ["tooltipPosition", "bottom", "class", "hide-xs hide-md", 3, "pTooltip", "ngClass", "click", 4, "ngIf"], ["tooltipPosition", "bottom", 3, "pTooltip", "ngClass", "click", 4, "ngIf"], ["tooltipPosition", "bottom", 1, "hide-xs", "hide-md", 3, "pTooltip", "ngClass", "click"], [1, "toolbar-content", "hide-xs"], ["appendTo", "body", "placeholder", "Search Claimants", "emptyMessage", "No Results Found.", "size", "25", 3, "ngModel", "suggestions", "ngModelChange", "completeMethod", "onSelect"], ["pTemplate", "item"], ["size", "4"], ["slot", "end"], ["aria-label", "user icon", "slot", "end", "name", "person-circle-outline"], ["tooltipPosition", "bottom", 3, "pTooltip", "click", 4, "ngIf"], ["aria-label", "documents", "name", "document-text-outline"], ["tooltipPosition", "bottom", 3, "pTooltip", "click"], ["aria-label", "help", "name", "help-circle-outline"], ["slot", "secondary"], ["name", "log-out-sharp"], ["slot", "end", 3, "disabled"], ["appendTo", "body", 3, "popup", "model"], ["menu", ""], ["aria-label", "language", "tooltipPosition", "bottom", 3, "pTooltip", "click"], ["
|
|
6169
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HeaderComponent, selectors: [["app-header"]], inputs: { title: "title", pageId: "pageId", secondToolbar: "secondToolbar", displayLogo: "displayLogo", showHistory: "showHistory", backPage: "backPage", isEmployer: "isEmployer" }, features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$I, decls: 17, vars: 16, consts: [["mode", "determinate", 3, "value", 4, "ngIf"], ["slot", "start", 2, "margin-left", "-5px"], ["autoHide", "false", "tooltipPosition", "bottom", 3, "pTooltip", 4, "ngIf"], ["slot", "start", 3, "ngClass"], ["alt", "Logo of the Kansas Department of Labor", "tooltipPosition", "bottom", "aria-label", "Logo of the Kansas Department of Labor", "id", "header_reemployme_logo", "src", "assets/icon/kdol_logo.png", 3, "pTooltip", "ngClass"], ["slot", "start", 4, "ngIf"], ["class", "toolbar-content hide-xs", 4, "ngIf"], ["slot", "end", 4, "ngIf"], ["slot", "secondary", 4, "ngIf"], ["slot", "end", 3, "disabled", 4, "ngIf"], ["color", "light", "id", "secondToolbar", 4, "ngIf"], ["position", "top-center"], [3, "onCancel", 4, "ngIf"], ["mode", "determinate", 3, "value"], ["autoHide", "false", "tooltipPosition", "bottom", 3, "pTooltip"], ["slot", "start"], ["tooltipPosition", "bottom", 3, "pTooltip", "ngClass", "click"], ["tooltipPosition", "bottom", "class", "hide-xs hide-md", 3, "pTooltip", "ngClass", "click", 4, "ngIf"], ["tooltipPosition", "bottom", 3, "pTooltip", "ngClass", "click", 4, "ngIf"], ["tooltipPosition", "bottom", 1, "hide-xs", "hide-md", 3, "pTooltip", "ngClass", "click"], [1, "toolbar-content", "hide-xs"], ["appendTo", "body", "placeholder", "Search Claimants", "emptyMessage", "No Results Found.", "size", "25", 3, "ngModel", "suggestions", "ngModelChange", "completeMethod", "onSelect"], ["pTemplate", "item"], ["size", "4"], ["slot", "end"], ["aria-label", "user icon", "slot", "end", "name", "person-circle-outline"], ["tooltipPosition", "bottom", 3, "pTooltip", "click", 4, "ngIf"], ["aria-label", "documents", "name", "document-text-outline"], ["tooltipPosition", "bottom", 3, "pTooltip", "click"], ["aria-label", "help", "name", "help-circle-outline"], ["slot", "secondary"], ["name", "log-out-sharp"], ["slot", "end", 3, "disabled"], ["appendTo", "body", 3, "popup", "model"], ["menu", ""], ["aria-label", "language", "tooltipPosition", "bottom", 1, "language-button", 3, "pTooltip", "click"], ["name", "globe-outline"], [1, "language-label"], ["name", "chevron-down-outline"], ["color", "light", "id", "secondToolbar"], ["pTooltip", "Back", "alt", "Back", "tooltipPosition", "bottom", 3, "defaultHref"], ["color", "primary", "style", "font-size: 18px", 4, "ngIf"], ["color", "primary", "style", "font-size: xx-small; float: right; padding-right: 8px;", 4, "ngIf"], ["color", "primary", 2, "font-size", "18px"], ["color", "primary", 2, "font-size", "xx-small", "float", "right", "padding-right", "8px"], [3, "onCancel"]], template: function HeaderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
6161
6170
|
i0.ɵɵprojectionDef(_c0$I);
|
|
6162
6171
|
i0.ɵɵtemplate(0, HeaderComponent_mat_progress_bar_0_Template, 2, 3, "mat-progress-bar", 0);
|
|
6163
6172
|
i0.ɵɵpipe(1, "async");
|
|
@@ -6169,7 +6178,7 @@ class HeaderComponent extends BasePage {
|
|
|
6169
6178
|
i0.ɵɵpipe(7, "translate");
|
|
6170
6179
|
i0.ɵɵelementEnd();
|
|
6171
6180
|
i0.ɵɵprojection(8);
|
|
6172
|
-
i0.ɵɵtemplate(9, HeaderComponent_ion_buttons_9_Template, 8, 9, "ion-buttons", 5)(10, HeaderComponent_div_10_Template, 3, 2, "div", 6)(11, HeaderComponent_ion_buttons_11_Template, 11, 12, "ion-buttons", 7)(12, HeaderComponent_ion_buttons_12_Template, 4, 3, "ion-buttons", 8)(13, HeaderComponent_ion_buttons_13_Template,
|
|
6181
|
+
i0.ɵɵtemplate(9, HeaderComponent_ion_buttons_9_Template, 8, 9, "ion-buttons", 5)(10, HeaderComponent_div_10_Template, 3, 2, "div", 6)(11, HeaderComponent_ion_buttons_11_Template, 11, 12, "ion-buttons", 7)(12, HeaderComponent_ion_buttons_12_Template, 4, 3, "ion-buttons", 8)(13, HeaderComponent_ion_buttons_13_Template, 9, 7, "ion-buttons", 9);
|
|
6173
6182
|
i0.ɵɵelementEnd();
|
|
6174
6183
|
i0.ɵɵtemplate(14, HeaderComponent_ion_toolbar_14_Template, 7, 3, "ion-toolbar", 10);
|
|
6175
6184
|
i0.ɵɵelement(15, "p-toast", 11);
|
|
@@ -6197,11 +6206,11 @@ class HeaderComponent extends BasePage {
|
|
|
6197
6206
|
i0.ɵɵproperty("ngIf", ctx.secondToolbar);
|
|
6198
6207
|
i0.ɵɵadvance(2);
|
|
6199
6208
|
i0.ɵɵproperty("ngIf", ctx.showProfilePopup);
|
|
6200
|
-
} }, dependencies: [i1$3.IonButton, i1$3.IonButtons, i1$3.IonCol, i1$3.IonIcon, i1$3.IonMenuButton, i1$3.IonRow, i1$3.IonText, i1$3.IonTitle, i1$3.IonToolbar, i1$3.IonBackButton, i1$4.NgClass, i1$4.NgIf, i4$1.PrimeTemplate, i8.Tooltip, i12$1.MatProgressBar, i1$6.NgControlStatus, i1$6.NgModel, i8$2.AutoComplete, i15.Toast, i16.Menu, ProfileComponent, i1$4.AsyncPipe, i6$1.TranslatePipe, ProperCasePipe], styles: ["#secondToolbar[_ngcontent-%COMP%]{--min-height: 45px !important}#header_reemployms_logo[_ngcontent-%COMP%]{margin-right:10px;margin-left:-5px;padding:5px;height:40px}.header_logo[_ngcontent-%COMP%]{height:35px}.app-logo[_ngcontent-%COMP%]{height:55px}.header_button_white[_ngcontent-%COMP%]{height:60px;margin:0 0 4px;padding:8px}.header_button[_ngcontent-%COMP%]{height:56px;margin:0 0 4px;padding:8px}.toolbar-content[_ngcontent-%COMP%]{text-align:center}ion-toolbar[_ngcontent-%COMP%]{padding-right:10px;--ion-toolbar-background: var(--ion-color-primary) !important;--color: white !important;--font-weight: 500;--font-size: 13px;--position: relative;--z-index: 10;--text-align: center;--letter-spacing: .004em}ion-button[_ngcontent-%COMP%]{--color-hover: var(---yellow-300);text-transform:none!important;font-size:20px}.header-button[_ngcontent-%COMP%]{text-transform:none!important;font-weight:700;font-size:20px}.ios[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]::part(native){color:#fff!important}ion-menu-button[_ngcontent-%COMP%]::part(native){color:#fff!important}ion-popover[_ngcontent-%COMP%]{--width: 40% !important}img[_ngcontent-%COMP%]{visibility:visible;position:relative}[_nghost-%COMP%] p-autoComplete .p-inputtext{height:40px;color:#000}[_nghost-%COMP%] p-autoComplete .p-autocomplete-item{padding:.5rem!important}[_nghost-%COMP%] .p-toast-bottom-center, [_nghost-%COMP%] .p-toast-top-center{transform:none!important;z-index:100001!important}@media (min-width: 768px){[_nghost-%COMP%] .header-popover{--width: 55%}}@media (min-width: 992px){[_nghost-%COMP%] .header-popover{--width: 40%}}@media (min-width: 1200px){[_nghost-%COMP%] .header-popover{--width: 35%}}@media (min-width: 1400px){[_nghost-%COMP%] .header-popover{--width: 30%}}"] }); }
|
|
6209
|
+
} }, dependencies: [i1$3.IonButton, i1$3.IonButtons, i1$3.IonCol, i1$3.IonIcon, i1$3.IonMenuButton, i1$3.IonRow, i1$3.IonText, i1$3.IonTitle, i1$3.IonToolbar, i1$3.IonBackButton, i1$4.NgClass, i1$4.NgIf, i4$1.PrimeTemplate, i8.Tooltip, i12$1.MatProgressBar, i1$6.NgControlStatus, i1$6.NgModel, i8$2.AutoComplete, i15.Toast, i16.Menu, ProfileComponent, i1$4.AsyncPipe, i6$1.TranslatePipe, ProperCasePipe], styles: ["#secondToolbar[_ngcontent-%COMP%]{--min-height: 45px !important}#header_reemployms_logo[_ngcontent-%COMP%]{margin-right:10px;margin-left:-5px;padding:5px;height:40px}.header_logo[_ngcontent-%COMP%]{height:35px}.app-logo[_ngcontent-%COMP%]{height:55px}.header_button_white[_ngcontent-%COMP%]{height:60px;margin:0 0 4px;padding:8px}.header_button[_ngcontent-%COMP%]{height:56px;margin:0 0 4px;padding:8px}.toolbar-content[_ngcontent-%COMP%]{text-align:center}ion-toolbar[_ngcontent-%COMP%]{padding-right:10px;--ion-toolbar-background: var(--ion-color-primary) !important;--color: white !important;--font-weight: 500;--font-size: 13px;--position: relative;--z-index: 10;--text-align: center;--letter-spacing: .004em}ion-button[_ngcontent-%COMP%]{--color-hover: var(---yellow-300);text-transform:none!important;font-size:20px}.header-button[_ngcontent-%COMP%]{text-transform:none!important;font-weight:700;font-size:20px}.ios[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]::part(native){color:#fff!important}ion-menu-button[_ngcontent-%COMP%]::part(native){color:#fff!important}ion-popover[_ngcontent-%COMP%]{--width: 40% !important}img[_ngcontent-%COMP%]{visibility:visible;position:relative}[_nghost-%COMP%] p-autoComplete .p-inputtext{height:40px;color:#000}[_nghost-%COMP%] p-autoComplete .p-autocomplete-item{padding:.5rem!important}[_nghost-%COMP%] .p-toast-bottom-center, [_nghost-%COMP%] .p-toast-top-center{transform:none!important;z-index:100001!important}@media (min-width: 768px){[_nghost-%COMP%] .header-popover{--width: 55%}}@media (min-width: 992px){[_nghost-%COMP%] .header-popover{--width: 40%}}@media (min-width: 1200px){[_nghost-%COMP%] .header-popover{--width: 35%}}@media (min-width: 1400px){[_nghost-%COMP%] .header-popover{--width: 30%}}.language-button[_ngcontent-%COMP%]{--border-radius: 25px;--padding-start: 16px;--padding-end: 16px;--background: transparent;border:1.5px solid #999;border-radius:20px}.language-button[_ngcontent-%COMP%] .language-label[_ngcontent-%COMP%]{margin-left:8px;margin-right:8px}"] }); }
|
|
6201
6210
|
}
|
|
6202
6211
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HeaderComponent, [{
|
|
6203
6212
|
type: Component,
|
|
6204
|
-
args: [{ selector: 'app-header', template: "<mat-progress-bar mode=\"determinate\" [value]=\"util.loader.value$ | async\" *ngIf=\"(util.loader.value$ | async) != 0\">\r\n</mat-progress-bar>\r\n<ion-toolbar>\r\n <ion-buttons slot=\"start\" style=\"margin-left: -5px;\">\r\n <ion-menu-button autoHide=\"false\" pTooltip=\"{{'header.menu' | translate}}\" tooltipPosition=\"bottom\"\r\n *ngIf=\"ls.isLoggedIn()\"></ion-menu-button>\r\n </ion-buttons>\r\n <ion-buttons slot=\"start\" [ngClass]=\"displayLogo ? 'header_button_white' : 'header_button hide-xs hide-md'\">\r\n <img alt=\"Logo of the Kansas Department of Labor\" pTooltip=\"{{'header.kdol-logo' | translate}}\" tooltipPosition=\"bottom\"\r\n aria-label=\"Logo of the Kansas Department of Labor\" id=\"header_reemployme_logo\" src=\"assets/icon/kdol_logo.png\" [ngClass]=\"displayLogo ? 'app-logo' : 'app-logo hide-xs hide-md'\"/>\r\n </ion-buttons>\r\n <ng-content></ng-content>\r\n <ion-buttons slot=\"start\" *ngIf=\"ls.isLoggedIn()\">\r\n <ion-button (click)=\"openHome()\" pTooltip=\"{{'header.home' | translate}}\" tooltipPosition=\"bottom\" [ngClass]=\"r.url.replace('/', '').includes('welcome') ? 'header-button' : ''\">{{homeLabel}}</ion-button>\r\n \r\n <ion-button pTooltip=\"{{'header.weekly.tooltip' | translate}}\" tooltipPosition=\"bottom\" [ngClass]=\"r.url.replace('/', '').includes('weeklies') ? 'header-button' : ''\" *ngIf=\"ls.isClaimant() && legacyMenu == 'false'\" (click)=\"openWeeklies()\" class=\"hide-xs hide-md\">{{legacyMenu == 'true' ? 'Weekly Cert' :weeklyLabel }}</ion-button>\r\n <ion-button pTooltip=\"{{'header.weekly.tooltip' | translate}}\" tooltipPosition=\"bottom\" [ngClass]=\"r.url.replace('/', '').includes('weeklies') ? 'header-button' : ''\" *ngIf=\"ls.isClaimant() && legacyMenu == 'true' && !util.isState('ME')\" (click)=\"openWeeklies()\">{{legacyMenu == 'true' ? 'Weekly Cert' : weeklyLabel }}</ion-button>\r\n <ion-button pTooltip=\"{{'header.weekly.tooltip' | translate}}\" tooltipPosition=\"bottom\" [ngClass]=\"r.url.replace('/', '').includes('weeklies') ? 'header-button' : ''\" *ngIf=\"ls.isClaimant() && legacyMenu == 'true' && util.isState('ME')\" (click)=\"openWeeklies()\">{{legacyMenu == 'true' ? 'Weekly Claim' : weeklyLabel }}</ion-button>\r\n \r\n <ion-button pTooltip=\"{{'header.history' | translate}}\" tooltipPosition=\"bottom\" [ngClass]=\"r.url.replace('/', '') == 'history' ? 'header-button' : ''\" *ngIf=\"ls.isClaimant() && legacyMenu == 'false'\" (click)=\"openPage('cp', 'history')\" class=\"hide-xs hide-md\">{{historyLabel}}</ion-button>\r\n </ion-buttons>\r\n <div class=\"toolbar-content hide-xs\" *ngIf=\"ls.isLoggedIn() && ls.isCsr()\">\r\n <p-autoComplete appendTo=\"body\" [(ngModel)]=\"searchText\" [suggestions]=\"results\"\r\n (completeMethod)=\"search($event)\" placeholder=\"Search Claimants\" (onSelect)=\"onSelectAction($event)\"\r\n emptyMessage=\"No Results Found.\" size=\"25\">\r\n <ng-template let-user pTemplate=\"item\">\r\n <ion-row>\r\n <ion-col size=\"4\">\r\n <ion-text>{{user.firstName | properCase}} {{user.lastName | properCase}}</ion-text>\r\n </ion-col>\r\n <ion-col size=\"4\">\r\n <ion-text>{{user.userId}}</ion-text>\r\n </ion-col>\r\n <ion-col size=\"4\">\r\n <ion-text>{{util.maskSsn(user.ssn)}}</ion-text>\r\n </ion-col>\r\n </ion-row>\r\n </ng-template>\r\n </p-autoComplete>\r\n </div>\r\n <ion-buttons slot=\"end\" *ngIf=\"ls.isLoggedIn()\" >\r\n <ion-button (click)=\"presentMyProfilePopover($event)\" pTooltip=\"{{'header.my-account' | translate}}\" tooltipPosition=\"bottom\" [ngClass]=\"legacyMenu == 'false' && ls.isClaimant() && showProfilePopup ? 'hide-xs hide-md header-button' : (legacyMenu == 'false' && ls.isClaimant() ? 'hide-xs hide-md' : '')\">\r\n <h4>{{ls.getFullName() | properCase}}</h4>\r\n <ion-icon aria-label=\"user icon\" slot=\"end\" name=\"person-circle-outline\"></ion-icon>\r\n </ion-button>\r\n <ion-button (click)=\"openPage('cp', 'documents')\" pTooltip=\"{{'header.my-documents' | translate}}\" tooltipPosition=\"bottom\" *ngIf=\"!ls.isCsr() && legacyMenu == 'false' && !util.isState('ME')\" [ngClass]=\"r.url.replace('/', '') == 'documents' ? 'header-button hide-xs hide-md' : 'hide-xs hide-md'\">\r\n <ion-icon aria-label=\"documents\" name=\"document-text-outline\"></ion-icon>\r\n </ion-button>\r\n <ion-button (click)=\"openPage('cp', 'documents')\" pTooltip=\"{{'header.my-documents' | translate}}\" tooltipPosition=\"bottom\" *ngIf=\"!ls.isCsr() && legacyMenu == 'true'\">\r\n <ion-icon aria-label=\"documents\" name=\"document-text-outline\"></ion-icon>\r\n </ion-button>\r\n\r\n \r\n\r\n <ion-button (click)=\"this.hs.show()\" pTooltip=\"{{'header.help' | translate}}\" tooltipPosition=\"bottom\" *ngIf=\"ls.isClaimant() && legacyMenu == 'false' && (hs.shouldDisplayHelpButton() | async)\">\r\n <ion-icon aria-label=\"help\" name=\"help-circle-outline\"></ion-icon>\r\n </ion-button>\r\n </ion-buttons>\r\n\r\n <ion-buttons slot=\"secondary\" *ngIf=\"!ls.isLoggedIn() && ls.getUser()\">\r\n <ion-button (click)=\"logout()\" pTooltip=\"{{'header.logout' | translate}}\" tooltipPosition=\"bottom\">\r\n <ion-icon name=\"log-out-sharp\"></ion-icon>\r\n </ion-button>\r\n </ion-buttons>\r\n\r\n <ion-buttons slot=\"end\" *ngIf=\"!ls.isLoggedIn() && !isEmployer\" [disabled] = \"isEmployer\">\r\n <p-menu #menu [popup]=\"true\" [model]=\"items\" appendTo=\"body\"></p-menu>\r\n <ion-button aria-label=\"language\" (click)=\"menu.toggle($event)\" pTooltip=\"{{'header.language' | translate}}\" tooltipPosition=\"bottom\">\r\n <ion-icon
|
|
6213
|
+
args: [{ selector: 'app-header', template: "<mat-progress-bar mode=\"determinate\" [value]=\"util.loader.value$ | async\" *ngIf=\"(util.loader.value$ | async) != 0\">\r\n</mat-progress-bar>\r\n<ion-toolbar>\r\n <ion-buttons slot=\"start\" style=\"margin-left: -5px;\">\r\n <ion-menu-button autoHide=\"false\" pTooltip=\"{{'header.menu' | translate}}\" tooltipPosition=\"bottom\"\r\n *ngIf=\"ls.isLoggedIn()\"></ion-menu-button>\r\n </ion-buttons>\r\n <ion-buttons slot=\"start\" [ngClass]=\"displayLogo ? 'header_button_white' : 'header_button hide-xs hide-md'\">\r\n <img alt=\"Logo of the Kansas Department of Labor\" pTooltip=\"{{'header.kdol-logo' | translate}}\" tooltipPosition=\"bottom\"\r\n aria-label=\"Logo of the Kansas Department of Labor\" id=\"header_reemployme_logo\" src=\"assets/icon/kdol_logo.png\" [ngClass]=\"displayLogo ? 'app-logo' : 'app-logo hide-xs hide-md'\"/>\r\n </ion-buttons>\r\n <ng-content></ng-content>\r\n <ion-buttons slot=\"start\" *ngIf=\"ls.isLoggedIn()\">\r\n <ion-button (click)=\"openHome()\" pTooltip=\"{{'header.home' | translate}}\" tooltipPosition=\"bottom\" [ngClass]=\"r.url.replace('/', '').includes('welcome') ? 'header-button' : ''\">{{homeLabel}}</ion-button>\r\n \r\n <ion-button pTooltip=\"{{'header.weekly.tooltip' | translate}}\" tooltipPosition=\"bottom\" [ngClass]=\"r.url.replace('/', '').includes('weeklies') ? 'header-button' : ''\" *ngIf=\"ls.isClaimant() && legacyMenu == 'false'\" (click)=\"openWeeklies()\" class=\"hide-xs hide-md\">{{legacyMenu == 'true' ? 'Weekly Cert' :weeklyLabel }}</ion-button>\r\n <ion-button pTooltip=\"{{'header.weekly.tooltip' | translate}}\" tooltipPosition=\"bottom\" [ngClass]=\"r.url.replace('/', '').includes('weeklies') ? 'header-button' : ''\" *ngIf=\"ls.isClaimant() && legacyMenu == 'true' && !util.isState('ME')\" (click)=\"openWeeklies()\">{{legacyMenu == 'true' ? 'Weekly Cert' : weeklyLabel }}</ion-button>\r\n <ion-button pTooltip=\"{{'header.weekly.tooltip' | translate}}\" tooltipPosition=\"bottom\" [ngClass]=\"r.url.replace('/', '').includes('weeklies') ? 'header-button' : ''\" *ngIf=\"ls.isClaimant() && legacyMenu == 'true' && util.isState('ME')\" (click)=\"openWeeklies()\">{{legacyMenu == 'true' ? 'Weekly Claim' : weeklyLabel }}</ion-button>\r\n \r\n <ion-button pTooltip=\"{{'header.history' | translate}}\" tooltipPosition=\"bottom\" [ngClass]=\"r.url.replace('/', '') == 'history' ? 'header-button' : ''\" *ngIf=\"ls.isClaimant() && legacyMenu == 'false'\" (click)=\"openPage('cp', 'history')\" class=\"hide-xs hide-md\">{{historyLabel}}</ion-button>\r\n </ion-buttons>\r\n <div class=\"toolbar-content hide-xs\" *ngIf=\"ls.isLoggedIn() && ls.isCsr()\">\r\n <p-autoComplete appendTo=\"body\" [(ngModel)]=\"searchText\" [suggestions]=\"results\"\r\n (completeMethod)=\"search($event)\" placeholder=\"Search Claimants\" (onSelect)=\"onSelectAction($event)\"\r\n emptyMessage=\"No Results Found.\" size=\"25\">\r\n <ng-template let-user pTemplate=\"item\">\r\n <ion-row>\r\n <ion-col size=\"4\">\r\n <ion-text>{{user.firstName | properCase}} {{user.lastName | properCase}}</ion-text>\r\n </ion-col>\r\n <ion-col size=\"4\">\r\n <ion-text>{{user.userId}}</ion-text>\r\n </ion-col>\r\n <ion-col size=\"4\">\r\n <ion-text>{{util.maskSsn(user.ssn)}}</ion-text>\r\n </ion-col>\r\n </ion-row>\r\n </ng-template>\r\n </p-autoComplete>\r\n </div>\r\n <ion-buttons slot=\"end\" *ngIf=\"ls.isLoggedIn()\" >\r\n <ion-button (click)=\"presentMyProfilePopover($event)\" pTooltip=\"{{'header.my-account' | translate}}\" tooltipPosition=\"bottom\" [ngClass]=\"legacyMenu == 'false' && ls.isClaimant() && showProfilePopup ? 'hide-xs hide-md header-button' : (legacyMenu == 'false' && ls.isClaimant() ? 'hide-xs hide-md' : '')\">\r\n <h4>{{ls.getFullName() | properCase}}</h4>\r\n <ion-icon aria-label=\"user icon\" slot=\"end\" name=\"person-circle-outline\"></ion-icon>\r\n </ion-button>\r\n <ion-button (click)=\"openPage('cp', 'documents')\" pTooltip=\"{{'header.my-documents' | translate}}\" tooltipPosition=\"bottom\" *ngIf=\"!ls.isCsr() && legacyMenu == 'false' && !util.isState('ME')\" [ngClass]=\"r.url.replace('/', '') == 'documents' ? 'header-button hide-xs hide-md' : 'hide-xs hide-md'\">\r\n <ion-icon aria-label=\"documents\" name=\"document-text-outline\"></ion-icon>\r\n </ion-button>\r\n <ion-button (click)=\"openPage('cp', 'documents')\" pTooltip=\"{{'header.my-documents' | translate}}\" tooltipPosition=\"bottom\" *ngIf=\"!ls.isCsr() && legacyMenu == 'true'\">\r\n <ion-icon aria-label=\"documents\" name=\"document-text-outline\"></ion-icon>\r\n </ion-button>\r\n\r\n \r\n\r\n <ion-button (click)=\"this.hs.show()\" pTooltip=\"{{'header.help' | translate}}\" tooltipPosition=\"bottom\" *ngIf=\"ls.isClaimant() && legacyMenu == 'false' && (hs.shouldDisplayHelpButton() | async)\">\r\n <ion-icon aria-label=\"help\" name=\"help-circle-outline\"></ion-icon>\r\n </ion-button>\r\n </ion-buttons>\r\n\r\n <ion-buttons slot=\"secondary\" *ngIf=\"!ls.isLoggedIn() && ls.getUser()\">\r\n <ion-button (click)=\"logout()\" pTooltip=\"{{'header.logout' | translate}}\" tooltipPosition=\"bottom\">\r\n <ion-icon name=\"log-out-sharp\"></ion-icon>\r\n </ion-button>\r\n </ion-buttons>\r\n\r\n <ion-buttons slot=\"end\" *ngIf=\"!ls.isLoggedIn() && !isEmployer\" [disabled] = \"isEmployer\">\r\n <p-menu #menu [popup]=\"true\" [model]=\"items\" appendTo=\"body\"></p-menu>\r\n <ion-button aria-label=\"language\" (click)=\"menu.toggle($event)\" pTooltip=\"{{'header.language' | translate}}\" tooltipPosition=\"bottom\" class=\"language-button\">\r\n <ion-icon name=\"globe-outline\"></ion-icon>\r\n <span class=\"language-label\">{{ selectedLanguage }}</span>\r\n <ion-icon name=\"chevron-down-outline\"></ion-icon>\r\n\r\n </ion-button>\r\n </ion-buttons>\r\n\r\n</ion-toolbar>\r\n<ion-toolbar color=\"light\" id=\"secondToolbar\" *ngIf=\"secondToolbar\">\r\n <ion-buttons slot=\"start\">\r\n <ion-back-button pTooltip=\"Back\" alt=\"Back\" tooltipPosition=\"bottom\" [defaultHref]=\"backPage ? backPage : '/welcome'\"></ion-back-button>\r\n <ion-title color=\"primary\" *ngIf=\"title\" style=\"font-size: 18px\">{{title}}</ion-title>\r\n </ion-buttons>\r\n <ng-content></ng-content>\r\n <ion-buttons slot=\"end\">\r\n <ion-title color=\"primary\" style=\"font-size: xx-small; float: right; padding-right: 8px;\" *ngIf=\"pageId\">\r\n {{pageId}}</ion-title>\r\n </ion-buttons>\r\n</ion-toolbar>\r\n<p-toast position=\"top-center\" ></p-toast>\r\n\r\n<app-profile *ngIf=\"showProfilePopup\" (onCancel)=\"showProfilePopup = false\"></app-profile>\r\n\r\n\r\n", styles: ["#secondToolbar{--min-height: 45px !important}#header_reemployms_logo{margin-right:10px;margin-left:-5px;padding:5px;height:40px}.header_logo{height:35px}.app-logo{height:55px}.header_button_white{height:60px;margin:0 0 4px;padding:8px}.header_button{height:56px;margin:0 0 4px;padding:8px}.toolbar-content{text-align:center}ion-toolbar{padding-right:10px;--ion-toolbar-background: var(--ion-color-primary) !important;--color: white !important;--font-weight: 500;--font-size: 13px;--position: relative;--z-index: 10;--text-align: center;--letter-spacing: .004em}ion-button{--color-hover: var(---yellow-300);text-transform:none!important;font-size:20px}.header-button{text-transform:none!important;font-weight:700;font-size:20px}.ios ion-button::part(native){color:#fff!important}ion-menu-button::part(native){color:#fff!important}ion-popover{--width: 40% !important}img{visibility:visible;position:relative}:host ::ng-deep p-autoComplete .p-inputtext{height:40px;color:#000}:host ::ng-deep p-autoComplete .p-autocomplete-item{padding:.5rem!important}:host ::ng-deep .p-toast-bottom-center,:host ::ng-deep .p-toast-top-center{transform:none!important;z-index:100001!important}@media (min-width: 768px){:host ::ng-deep .header-popover{--width: 55%}}@media (min-width: 992px){:host ::ng-deep .header-popover{--width: 40%}}@media (min-width: 1200px){:host ::ng-deep .header-popover{--width: 35%}}@media (min-width: 1400px){:host ::ng-deep .header-popover{--width: 30%}}.language-button{--border-radius: 25px;--padding-start: 16px;--padding-end: 16px;--background: transparent;border:1.5px solid #999;border-radius:20px}.language-button .language-label{margin-left:8px;margin-right:8px}\n"] }]
|
|
6205
6214
|
}], () => [{ type: LoginService }, { type: UtilService }, { type: i4.Router }, { type: i1$3.PopoverController }, { type: ClaimantService$1 }, { type: i1$3.NavController }, { type: i1$3.ModalController }, { type: NotificationService }, { type: HelpService }, { type: i6$1.TranslateService }], { title: [{
|
|
6206
6215
|
type: Input,
|
|
6207
6216
|
args: ['title']
|
|
@@ -7762,7 +7771,7 @@ class LoginComponent extends BasePage {
|
|
|
7762
7771
|
i0.ɵɵproperty("hidden", !ctx.enableSignin);
|
|
7763
7772
|
i0.ɵɵadvance(10);
|
|
7764
7773
|
i0.ɵɵproperty("ngIf", false);
|
|
7765
|
-
} }, dependencies: [i1$3.IonButton, i1$3.IonCol, i1$3.IonContent, i1$3.IonGrid, i1$3.IonIcon, i1$3.IonRow, i1$4.NgIf, i2$1.JoyrideDirective, i4$1.Footer, i8.Tooltip, i7$2.MatLabel, i1$6.ɵNgNoValidate, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.FormControlDirective, i1$6.FormGroupDirective, i7$1.Dialog, i16$1.MatStep, i16$1.MatStepLabel, i16$1.MatStepper, i15.Toast, i15$1.Password,
|
|
7774
|
+
} }, dependencies: [i1$3.IonButton, i1$3.IonCol, i1$3.IonContent, i1$3.IonGrid, i1$3.IonIcon, i1$3.IonRow, i1$4.NgIf, i2$1.JoyrideDirective, i4$1.Footer, i8.Tooltip, i7$2.MatLabel, i1$6.ɵNgNoValidate, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.FormControlDirective, i1$6.FormGroupDirective, i7$1.Dialog, i16$1.MatStep, i16$1.MatStepLabel, i16$1.MatStepper, i15.Toast, i15$1.Password, i16$2.InputText, MaskComponent, PageComponent, CapsLockDirective, ContentComponent, MsgComponent, CardComponent, AutofocusDirective, ErrorComponent, i6$1.TranslatePipe], styles: [".group-3[_ngcontent-%COMP%]{height:518px;width:946px}mat-form-field[_ngcontent-%COMP%]{width:-webkit-fill-available}div.mat-form-field-outline[_ngcontent-%COMP%]{background:#fff!important}.ui-messages-close[_ngcontent-%COMP%]{font-size:.5em!important}[_nghost-%COMP%] .p-inputwrapper, [_nghost-%COMP%] .p-inputtext{width:100%}"] }); }
|
|
7766
7775
|
}
|
|
7767
7776
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoginComponent, [{
|
|
7768
7777
|
type: Component,
|
|
@@ -10361,6 +10370,130 @@ class OvpService extends BaseService {
|
|
|
10361
10370
|
}]
|
|
10362
10371
|
}], () => [{ type: i1$2.HttpClient }], null); })();
|
|
10363
10372
|
|
|
10373
|
+
class LexChatService {
|
|
10374
|
+
showImportantMessage(type, chatIDtheft = false) {
|
|
10375
|
+
this.chatIDtheft = chatIDtheft;
|
|
10376
|
+
this.importantMessageSubject.next(type);
|
|
10377
|
+
}
|
|
10378
|
+
constructor(http, loginService) {
|
|
10379
|
+
this.http = http;
|
|
10380
|
+
this.loginService = loginService;
|
|
10381
|
+
this.chatIDtheft = false;
|
|
10382
|
+
this.importantMessageSubject = new Subject();
|
|
10383
|
+
this.importantmessage$ = this.importantMessageSubject.asObservable();
|
|
10384
|
+
this.sessionAttributes = {};
|
|
10385
|
+
this.authenticatedUsername = '';
|
|
10386
|
+
this.authenticatedAuthToken = '';
|
|
10387
|
+
/** Emit true to open the chatbot popup from anywhere */
|
|
10388
|
+
this.chatOpen$ = new BehaviorSubject(false);
|
|
10389
|
+
this.sessionId = this.generateSessionId();
|
|
10390
|
+
}
|
|
10391
|
+
generateSessionId() {
|
|
10392
|
+
if (typeof crypto !== 'undefined' && 'randomUUID' in crypto) {
|
|
10393
|
+
return 'web-' + crypto.randomUUID();
|
|
10394
|
+
}
|
|
10395
|
+
return 'web-' + Math.random().toString(36).substring(2);
|
|
10396
|
+
}
|
|
10397
|
+
setAuthenticatedUser(username, authToken = 'authToken') {
|
|
10398
|
+
const normalizedUsername = (username ?? '').trim();
|
|
10399
|
+
if (!normalizedUsername) {
|
|
10400
|
+
return;
|
|
10401
|
+
}
|
|
10402
|
+
this.authenticatedUsername = normalizedUsername;
|
|
10403
|
+
this.authenticatedAuthToken = authToken || 'authToken';
|
|
10404
|
+
this.sessionAttributes = {
|
|
10405
|
+
...this.sessionAttributes,
|
|
10406
|
+
userLoggedIn: 'true',
|
|
10407
|
+
authToken: this.authenticatedAuthToken
|
|
10408
|
+
};
|
|
10409
|
+
}
|
|
10410
|
+
clearAuthenticatedUser() {
|
|
10411
|
+
this.authenticatedUsername = '';
|
|
10412
|
+
this.authenticatedAuthToken = '';
|
|
10413
|
+
}
|
|
10414
|
+
async sendMessage(text, clientFilter) {
|
|
10415
|
+
const headers = new HttpHeaders({ 'Content-Type': 'application/json' });
|
|
10416
|
+
// Use CP's access_token as sessionId when authenticated so Lambda can call backend APIs
|
|
10417
|
+
// Pre-login sends null since no backend API access is needed for basic FAQ
|
|
10418
|
+
const user = this.loginService.getUser();
|
|
10419
|
+
console.log('LEX USER AFTER LOGIN', user);
|
|
10420
|
+
const effectiveSessionId = user?.access_token || this.sessionId;
|
|
10421
|
+
console.log('LEX SESSIONA AFTER LOGIN:', user?.access_token ? 'ACCESS TOKEN USED' : 'WEB SESSION USED');
|
|
10422
|
+
console.log('LEX SESSION ATTRIBUTES:', this.sessionAttributes);
|
|
10423
|
+
const mergedSessionAttrs = {
|
|
10424
|
+
...this.sessionAttributes
|
|
10425
|
+
};
|
|
10426
|
+
const loggedInUsername = String(user?.username || '').trim();
|
|
10427
|
+
if (loggedInUsername) {
|
|
10428
|
+
mergedSessionAttrs['userLoggedIn'] = 'true';
|
|
10429
|
+
mergedSessionAttrs['authToken'] = this.authenticatedAuthToken || 'authToken';
|
|
10430
|
+
}
|
|
10431
|
+
if (clientFilter && clientFilter.trim()) {
|
|
10432
|
+
mergedSessionAttrs['QNAClientFilter'] = clientFilter.trim();
|
|
10433
|
+
}
|
|
10434
|
+
console.log('Lex service clientFilter:', clientFilter);
|
|
10435
|
+
const payload = {
|
|
10436
|
+
sessionId: effectiveSessionId,
|
|
10437
|
+
text,
|
|
10438
|
+
username: loggedInUsername || undefined,
|
|
10439
|
+
sessionState: Object.keys(mergedSessionAttrs).length
|
|
10440
|
+
? { sessionAttributes: mergedSessionAttrs }
|
|
10441
|
+
: undefined,
|
|
10442
|
+
};
|
|
10443
|
+
console.log('LEX USER:', user);
|
|
10444
|
+
console.log('LEX sessionId type:', user?.access_token ? 'ACCESS TOKEN' : 'WEB SESSION');
|
|
10445
|
+
console.log('LEX sessionAttributes:', mergedSessionAttrs);
|
|
10446
|
+
console.log('LEX payload:', payload);
|
|
10447
|
+
try {
|
|
10448
|
+
const response = await firstValueFrom(this.http.post(LibConstants.chatbotLambdaUrl, payload, { headers }));
|
|
10449
|
+
const messages = response?.messages ?? [];
|
|
10450
|
+
this.sessionAttributes = {
|
|
10451
|
+
...mergedSessionAttrs,
|
|
10452
|
+
...(response?.sessionState?.sessionAttributes ?? {})
|
|
10453
|
+
};
|
|
10454
|
+
return {
|
|
10455
|
+
content: messages[0]?.content ?? "Sorry, I didn't get a response.",
|
|
10456
|
+
url: messages[0]?.url ?? [],
|
|
10457
|
+
isPwd: this.sessionAttributes['isPwd'] ?? '',
|
|
10458
|
+
isAck: this.sessionAttributes['isAck'] ?? '',
|
|
10459
|
+
is_end_session: this.sessionAttributes['end_session'] ?? ''
|
|
10460
|
+
};
|
|
10461
|
+
}
|
|
10462
|
+
catch (err) {
|
|
10463
|
+
console.error('LexChatService error:', err);
|
|
10464
|
+
throw err;
|
|
10465
|
+
}
|
|
10466
|
+
}
|
|
10467
|
+
resetSession(options) {
|
|
10468
|
+
this.sessionAttributes = {};
|
|
10469
|
+
if (options?.regenerateSessionId) {
|
|
10470
|
+
this.sessionId = this.generateSessionId();
|
|
10471
|
+
}
|
|
10472
|
+
}
|
|
10473
|
+
openChat(chatIDtheft = false) {
|
|
10474
|
+
this.chatIDtheft = chatIDtheft;
|
|
10475
|
+
this.chatOpen$.next(true);
|
|
10476
|
+
}
|
|
10477
|
+
closeChat() {
|
|
10478
|
+
this.resetSession({
|
|
10479
|
+
regenerateSessionId: true
|
|
10480
|
+
});
|
|
10481
|
+
this.chatOpen$.next(false);
|
|
10482
|
+
this.chatIDtheft = false;
|
|
10483
|
+
}
|
|
10484
|
+
giveSessionId() {
|
|
10485
|
+
return this.sessionId;
|
|
10486
|
+
}
|
|
10487
|
+
static { this.ɵfac = function LexChatService_Factory(t) { return new (t || LexChatService)(i0.ɵɵinject(i1$2.HttpClient), i0.ɵɵinject(LoginService)); }; }
|
|
10488
|
+
static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: LexChatService, factory: LexChatService.ɵfac, providedIn: 'root' }); }
|
|
10489
|
+
}
|
|
10490
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LexChatService, [{
|
|
10491
|
+
type: Injectable,
|
|
10492
|
+
args: [{
|
|
10493
|
+
providedIn: 'root'
|
|
10494
|
+
}]
|
|
10495
|
+
}], () => [{ type: i1$2.HttpClient }, { type: LoginService }], null); })();
|
|
10496
|
+
|
|
10364
10497
|
/***
|
|
10365
10498
|
*
|
|
10366
10499
|
* @description Class Contains all regular expressions used in the project.
|
|
@@ -10760,7 +10893,7 @@ class EmailUpdateComponent {
|
|
|
10760
10893
|
i0.ɵɵproperty("ngIf", !ctx.blocked && ctx.mode == "1");
|
|
10761
10894
|
i0.ɵɵadvance(1);
|
|
10762
10895
|
i0.ɵɵproperty("ngIf", !ctx.blocked && ctx.mode == "2");
|
|
10763
|
-
} }, dependencies: [i1$3.IonButton, i1$3.IonCol, i1$3.IonRow, i1$3.IonSpinner, i1$4.NgIf, i4$1.Footer, i7$2.MatError, i1$6.ɵNgNoValidate, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.MinLengthValidator, i1$6.MaxLengthValidator, i1$6.FormGroupDirective, i1$6.FormControlName, i7$1.Dialog,
|
|
10896
|
+
} }, dependencies: [i1$3.IonButton, i1$3.IonCol, i1$3.IonRow, i1$3.IonSpinner, i1$4.NgIf, i4$1.Footer, i7$2.MatError, i1$6.ɵNgNoValidate, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.MinLengthValidator, i1$6.MaxLengthValidator, i1$6.FormGroupDirective, i1$6.FormControlName, i7$1.Dialog, i16$2.InputText, ErrorComponent, i6$1.TranslatePipe, MaskEmailPipe] }); }
|
|
10764
10897
|
}
|
|
10765
10898
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EmailUpdateComponent, [{
|
|
10766
10899
|
type: Component,
|
|
@@ -11284,7 +11417,7 @@ function UserLoginComponent_app_email_update_25_Template(rf, ctx) { if (rf & 1)
|
|
|
11284
11417
|
const _c4$h = () => ({ width: "45vw" });
|
|
11285
11418
|
const _c5$c = () => ({ "1200px": "660px", "992px": "660px", "768px": "660px", "576px": "100vw" });
|
|
11286
11419
|
class UserLoginComponent {
|
|
11287
|
-
constructor(util, nav, fb, loginService, platform, wcService, ovpService, cdr, router, cs, ln, translateService) {
|
|
11420
|
+
constructor(util, nav, fb, loginService, platform, wcService, ovpService, cdr, router, cs, ln, translateService, lexChat) {
|
|
11288
11421
|
this.util = util;
|
|
11289
11422
|
this.nav = nav;
|
|
11290
11423
|
this.fb = fb;
|
|
@@ -11297,6 +11430,7 @@ class UserLoginComponent {
|
|
|
11297
11430
|
this.cs = cs;
|
|
11298
11431
|
this.ln = ln;
|
|
11299
11432
|
this.translateService = translateService;
|
|
11433
|
+
this.lexChat = lexChat;
|
|
11300
11434
|
this.show2FADialog = false;
|
|
11301
11435
|
this.showForgotPassword = false;
|
|
11302
11436
|
this.showUsernameError = false;
|
|
@@ -11571,6 +11705,14 @@ class UserLoginComponent {
|
|
|
11571
11705
|
});
|
|
11572
11706
|
}
|
|
11573
11707
|
this.show2FADialog = false;
|
|
11708
|
+
this.lexChat.setAuthenticatedUser(this.username.value, 'authToken');
|
|
11709
|
+
window.postMessage({
|
|
11710
|
+
type: 'USER_LOGGED_IN',
|
|
11711
|
+
payload: {
|
|
11712
|
+
username: this.username.value,
|
|
11713
|
+
authToken: 'authToken'
|
|
11714
|
+
}
|
|
11715
|
+
}, window.location.origin);
|
|
11574
11716
|
this.success.emit();
|
|
11575
11717
|
}
|
|
11576
11718
|
showDialog() {
|
|
@@ -11637,7 +11779,7 @@ class UserLoginComponent {
|
|
|
11637
11779
|
get captchaRequired() {
|
|
11638
11780
|
return this.translateService.instant('common.captcha.required');
|
|
11639
11781
|
}
|
|
11640
|
-
static { this.ɵfac = function UserLoginComponent_Factory(t) { return new (t || UserLoginComponent)(i0.ɵɵdirectiveInject(UtilService), i0.ɵɵdirectiveInject(i1$3.NavController), i0.ɵɵdirectiveInject(i1$6.UntypedFormBuilder), i0.ɵɵdirectiveInject(LoginService), i0.ɵɵdirectiveInject(i1$3.Platform), i0.ɵɵdirectiveInject(WeeklyCertServiceV2), i0.ɵɵdirectiveInject(OvpService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i4.Router), i0.ɵɵdirectiveInject(ClaimantService), i0.ɵɵdirectiveInject(LexisNexisService), i0.ɵɵdirectiveInject(i6$1.TranslateService)); }; }
|
|
11782
|
+
static { this.ɵfac = function UserLoginComponent_Factory(t) { return new (t || UserLoginComponent)(i0.ɵɵdirectiveInject(UtilService), i0.ɵɵdirectiveInject(i1$3.NavController), i0.ɵɵdirectiveInject(i1$6.UntypedFormBuilder), i0.ɵɵdirectiveInject(LoginService), i0.ɵɵdirectiveInject(i1$3.Platform), i0.ɵɵdirectiveInject(WeeklyCertServiceV2), i0.ɵɵdirectiveInject(OvpService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i4.Router), i0.ɵɵdirectiveInject(ClaimantService), i0.ɵɵdirectiveInject(LexisNexisService), i0.ɵɵdirectiveInject(i6$1.TranslateService), i0.ɵɵdirectiveInject(LexChatService)); }; }
|
|
11641
11783
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserLoginComponent, selectors: [["app-user-login"]], viewQuery: function UserLoginComponent_Query(rf, ctx) { if (rf & 1) {
|
|
11642
11784
|
i0.ɵɵviewQuery(_c0$x, 5);
|
|
11643
11785
|
i0.ɵɵviewQuery(_c1$s, 5);
|
|
@@ -11703,12 +11845,12 @@ class UserLoginComponent {
|
|
|
11703
11845
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(22, 31, "usps.expd.popup.heading"), "");
|
|
11704
11846
|
i0.ɵɵadvance(4);
|
|
11705
11847
|
i0.ɵɵproperty("ngIf", ctx.showEmailVerificationDialog);
|
|
11706
|
-
} }, dependencies: [i1$3.IonButton, i1$3.IonCol, i1$3.IonIcon, i1$3.IonRow, i1$4.NgIf, i4$1.Footer, i4$1.PrimeTemplate, i1$6.ɵNgNoValidate, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.MinLengthValidator, i1$6.MaxLengthValidator, i1$6.FormControlDirective, i1$6.FormGroupDirective, i7$1.Dialog, i15$1.Password,
|
|
11848
|
+
} }, dependencies: [i1$3.IonButton, i1$3.IonCol, i1$3.IonIcon, i1$3.IonRow, i1$4.NgIf, i4$1.Footer, i4$1.PrimeTemplate, i1$6.ɵNgNoValidate, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.MinLengthValidator, i1$6.MaxLengthValidator, i1$6.FormControlDirective, i1$6.FormGroupDirective, i7$1.Dialog, i15$1.Password, i16$2.InputText, ErrorComponent, CaptchaComponent, EmailUpdateComponent, MfaPopupComponent, Mfa2Component, LexisNexisComponent, i6$1.TranslatePipe] }); }
|
|
11707
11849
|
}
|
|
11708
11850
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserLoginComponent, [{
|
|
11709
11851
|
type: Component,
|
|
11710
11852
|
args: [{ selector: 'app-user-login', template: "<p-dialog [(visible)]=\"displayDialog\" [modal]=\"true\" appendTo=\"body\">\r\n <h4 class=\"heading\">{{\"common.message\" | translate}}</h4>\r\n {{\"login.forgot.id.assist\" | translate}}\r\n <div *ngIf=\"util.isState('MS')\">\r\n <ul>\r\n <li>Employers may call 601-493-9427</li>\r\n <li>Claimants may call 601-493-9427.</li>\r\n </ul>\r\n </div>\r\n <div *ngIf=\"util.isState('ME')\">\r\n <ul>\r\n <li>Employers may call 207-621-5120</li>\r\n <li>Claimants may call 1-800-593-7660</li>\r\n </ul>\r\n </div>\r\n <!-- todo: get KS number-->\r\n <br />\r\n <p-footer>\r\n <div class=\"ion-text-center\">\r\n <ion-button shape=\"round\" type=\"submit\" (click)=\"displayDialog = !displayDialog\" color=\"success\">\r\n <ion-icon slot=\"start\" name=\"close-sharp\"></ion-icon>\r\n {{\"common.close\" | translate}}\r\n </ion-button>\r\n </div>\r\n </p-footer>\r\n</p-dialog>\r\n<app-mfa2 *ngIf=\"isOtpModalEnabled\" [(display)]=\"isOtpModalEnabled\" [returningUser]=\"isReturningUser\" [verificationPreference]=\"verificationPreference\" [ssn]=\"ssn\" (success)=\"loginSuccess()\" (clear)=\"enableLexisNexis()\"></app-mfa2>\r\n<app-lexis-nexis *ngIf=\"isLexisNexisPopupEnabled\" [display]=\"isLexisNexisPopupEnabled\" [userModel] = \"userModel\" (success)=\"onLnSuccess()\" (error)=\"onLNError()\" (usps)=\"triggerUSPS()\"></app-lexis-nexis>\r\n<app-mfa-popup [(display)]=\"show2FADialog\" [user]=\"userModel\" [returningUser]=\"isReturningUser\" [heading]=\"mfaLoginHeader\" (success)=\"loginSuccess()\" (clear)=\"enableLexisNexis($event)\"></app-mfa-popup>\r\n\r\n\r\n<form [formGroup]=\"loginForm\" #loginFormDirective=\"ngForm\" *ngIf=\"!showForgotPassword\">\r\n <div class=\"p-fluid p-formgrid p-grid\">\r\n <div class=\"field ion-text-left\" style=\"width: -webkit-fill-available;\">\r\n <label for=\"userProfileId\" [style.font-size]=\"fontSize\" [style.color]=\"color\">{{'login.user.id' | translate}}</label>\r\n <input id=\"userProfileId\" type=\"text\" pInputText maxlength=\"30\" minlength=\"5\" [formControl]=\"username\">\r\n <app-error [field]='username' [form]=\"loginFormDirective\" [errDef]=\"{ \r\n required: userIdRequired,\r\n minlength: userIdMinimumLength\r\n }\"></app-error>\r\n </div>\r\n <div class=\"field ion-text-left\" style=\"width: -webkit-fill-available;\">\r\n <label for=\"userProfilePassword\" [style.font-size]=\"fontSize\" [style.color]=\"color\">{{'login.password.case.sensitive' | translate}}</label>\r\n <p-password [formControl]=\"password\" inputId=\"userProfilePassword\" [toggleMask]='true' [feedback]='false'></p-password>\r\n <app-error [field]='password' [form]=\"loginFormDirective\" [errDef]=\"{ \r\n required: passwordRequired\r\n }\"></app-error>\r\n </div>\r\n </div>\r\n <div class=\"ion-padding-start ion-padding-end ion-text-left\" style=\"margin-top: -8px;\" *ngIf=\"false\">\r\n <app-captcha [formControl]=\"captcha\"></app-captcha>\r\n <app-error [field]='captcha' [form]=\"loginFormDirective\" [errDef]=\"{ \r\n required: captchaRequired\r\n }\"></app-error>\r\n </div>\r\n\r\n\r\n <div class=\"p-fluid\">\r\n <div class=\"ion-text-right\">\r\n <ion-button (click)=\"signIn()\" color=\"primary\" type=\"submit\" shape=\"round\" fill=\"outline\" class=\"white-background\">\r\n <ion-icon name=\"power-outline\" slot=\"start\"></ion-icon>\r\n {{'login.login' | translate}}\r\n </ion-button>\r\n </div>\r\n <ion-row class=\"ion-padding-top\">\r\n <ion-col class=\"ion-text-left\">\r\n <a tabindex=\"0\" role=\"button\" class=\"link\" style=\"font-size: 14px;\" (click)=\"showDialog()\" (keydown.enter)=\"showDialog()\">{{'login.user.id.forgot' | translate}}</a>\r\n </ion-col>\r\n <ion-col class=\"ion-text-right\">\r\n <a tabindex=\"0\" role=\"button\" class=\"link\" (click)=\"showForgotPassword = !showForgotPassword\" (keydown.enter)=\"showForgotPassword = !showForgotPassword\" style=\"font-size: 14px;\"\r\n type=\"submit\">{{'login.password.forgot' | translate}}</a>\r\n </ion-col>\r\n </ion-row>\r\n </div>\r\n</form>\r\n\r\n<form *ngIf=\"showForgotPassword\" [formGroup]=\"resetForm\" #resetFormDirective=\"ngForm\">\r\n <div class=\"p-fluid p-formgrid p-grid\">\r\n <div class=\"field ion-text-left\" style=\"width: -webkit-fill-available;\">\r\n <label for=\"userProfileId\" [style.font-size]=\"fontSize\" [style.color]=\"color\">{{'login.user.id' | translate}}</label>\r\n <input id=\"userProfileId\" type=\"text\" pInputText maxlength=\"30\" minlength=\"5\" [formControl]=\"resetUsername\">\r\n <app-error [field]='resetUsername' [form]=\"resetFormDirective\" [errDef]=\"{ \r\n required: userIdRequired,\r\n minlength: userIdMinimumLength\r\n }\"></app-error>\r\n </div>\r\n <div class=\"ion-text-left\">\r\n <!-- <app-captcha [formControl]=\"resetCaptcha\"></app-captcha> -->\r\n <app-error [field]='resetCaptcha' [form]=\"resetFormDirective\" [errDef]=\"{ \r\n required: captchaRequired\r\n }\"></app-error>\r\n </div>\r\n </div>\r\n <div class=\"p-fluid\">\r\n <div class=\"ion-text-right\">\r\n <ion-button (click)=\"showForgotPassword = !showForgotPassword\" color=\"primary\" type=\"submit\" shape=\"round\" fill=\"outline\" class=\"white-background\">\r\n <ion-icon name=\"arrow-back-outline\" slot=\"start\"></ion-icon>\r\n {{'login.login' | translate}}\r\n </ion-button>\r\n\r\n <ion-button (click)=\"initiateForgotPassword()\" color=\"primary\" type=\"submit\" shape=\"round\" fill=\"outline\"\r\n disabled=\"{{resetForm.invalid}}\" class=\"white-background\">\r\n <ion-icon name=\"mail-outline\" slot=\"start\"></ion-icon>\r\n {{'login.send.email' | translate}}\r\n </ion-button>\r\n </div>\r\n </div>\r\n\r\n \r\n</form>\r\n\r\n<p-dialog [visible]=\"isUSPSExpired\" [modal]=\"true\" appendTo=\"body\" position=\"top\" [breakpoints]=\"{'1200px': '660px', '992px': '660px', '768px': '660px', '576px': '100vw'}\" [style]=\"{width: '45vw'}\"\r\n[baseZIndex]=\"5000\" [draggable]=\"false\" [resizable]=\"false\" closeOnEscape=\"false\">\r\n {{'usps.expd.popup.heading' | translate}}<br/>\r\n \r\n <ng-template pTemplate=\"footer\">\r\n <ion-button shape=\"round\" type=\"submit\" fill=\"outline\" (click)=\"close()\">\r\n {{'usps.expd.popup.cancel' | translate}}\r\n </ion-button>\r\n <ion-button shape=\"round\" type=\"submit\" fill=\"solid\" (click)=\"triggerUSPSForExpiredProcess()\">\r\n {{'usps.expd.popup.process' | translate}}\r\n </ion-button>\r\n </ng-template>\r\n</p-dialog>\r\n\r\n<app-email-update [email]=\"userModel.emailId\" *ngIf=\"showEmailVerificationDialog\" (onClose)=\"logout()\" (onSuccess)=\"emailVerificationSuccess()\"></app-email-update>" }]
|
|
11711
|
-
}], () => [{ type: UtilService }, { type: i1$3.NavController }, { type: i1$6.UntypedFormBuilder }, { type: LoginService }, { type: i1$3.Platform }, { type: WeeklyCertServiceV2 }, { type: OvpService }, { type: i0.ChangeDetectorRef }, { type: i4.Router }, { type: ClaimantService }, { type: LexisNexisService }, { type: i6$1.TranslateService }], { loginFormDirective: [{
|
|
11853
|
+
}], () => [{ type: UtilService }, { type: i1$3.NavController }, { type: i1$6.UntypedFormBuilder }, { type: LoginService }, { type: i1$3.Platform }, { type: WeeklyCertServiceV2 }, { type: OvpService }, { type: i0.ChangeDetectorRef }, { type: i4.Router }, { type: ClaimantService }, { type: LexisNexisService }, { type: i6$1.TranslateService }, { type: LexChatService }], { loginFormDirective: [{
|
|
11712
11854
|
type: ViewChild,
|
|
11713
11855
|
args: ['loginFormDirective', { static: false }]
|
|
11714
11856
|
}], resetFormDirective: [{
|
|
@@ -11727,7 +11869,7 @@ class UserLoginComponent {
|
|
|
11727
11869
|
}], error: [{
|
|
11728
11870
|
type: Output
|
|
11729
11871
|
}] }); })();
|
|
11730
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UserLoginComponent, { className: "UserLoginComponent", filePath: "lib\\components\\user-login\\user-login.component.ts", lineNumber:
|
|
11872
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UserLoginComponent, { className: "UserLoginComponent", filePath: "lib\\components\\user-login\\user-login.component.ts", lineNumber: 24 }); })();
|
|
11731
11873
|
|
|
11732
11874
|
const _c0$w = ["uploadFileFormDirective"];
|
|
11733
11875
|
const _c1$r = ["fileInput"];
|
|
@@ -13523,7 +13665,7 @@ class DynamicFormPanelComponent {
|
|
|
13523
13665
|
i0.ɵɵproperty("ngIf", ctx.question.type && ctx.question.type === "displaytextaslabel");
|
|
13524
13666
|
i0.ɵɵadvance(2);
|
|
13525
13667
|
i0.ɵɵproperty("ngIf", ctx.isValid != "");
|
|
13526
|
-
} }, dependencies: [i1$3.IonButton, i1$4.NgIf, i4$1.PrimeTemplate, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.FormGroupDirective, i1$6.FormControlName, i8$2.AutoComplete, i7$1.Dialog, i15$1.Password,
|
|
13668
|
+
} }, dependencies: [i1$3.IonButton, i1$4.NgIf, i4$1.PrimeTemplate, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.FormGroupDirective, i1$6.FormControlName, i8$2.AutoComplete, i7$1.Dialog, i15$1.Password, i16$2.InputText, i8$4.InputMask, i9$4.Calendar, i12.SelectButton, FileUploaderComponent, OverlayInfoComponent, MoneyExpectComponent, i1$4.AsyncPipe, i6$1.TranslatePipe], styles: [".form-label{display:inline-block;margin-bottom:6px;margin-top:20px}\n"], encapsulation: 2 }); }
|
|
13527
13669
|
}
|
|
13528
13670
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DynamicFormPanelComponent, [{
|
|
13529
13671
|
type: Component,
|
|
@@ -15776,7 +15918,7 @@ class Dropdown {
|
|
|
15776
15918
|
i0.ɵɵproperty("ngIf", ctx.dropdownIconTemplate);
|
|
15777
15919
|
i0.ɵɵadvance(1);
|
|
15778
15920
|
i0.ɵɵproperty("visible", ctx.overlayVisible)("options", ctx.overlayOptions)("target", "@parent")("appendTo", ctx.appendTo)("autoZIndex", ctx.autoZIndex)("baseZIndex", ctx.baseZIndex)("showTransitionOptions", ctx.showTransitionOptions)("hideTransitionOptions", ctx.hideTransitionOptions);
|
|
15779
|
-
} }, dependencies: [i1$4.NgClass, i1$4.NgForOf, i1$4.NgIf, i1$4.NgTemplateOutlet, i1$4.NgStyle, i4$1.PrimeTemplate, i8.Tooltip, i5$7.Overlay, i6$6.Scroller, i7$
|
|
15921
|
+
} }, dependencies: [i1$4.NgClass, i1$4.NgForOf, i1$4.NgIf, i1$4.NgTemplateOutlet, i1$4.NgStyle, i4$1.PrimeTemplate, i8.Tooltip, i5$7.Overlay, i6$6.Scroller, i7$3.AutoFocus, i8$5.ChevronDownIcon, i9$5.SearchIcon, i10$1.TimesIcon, DropdownItem], styles: ["@layer primeng{.p-dropdown{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-dropdown-clear-icon{position:absolute;top:50%;margin-top:-.5rem}.p-dropdown-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-dropdown-label{display:block;white-space:nowrap;overflow:hidden;flex:1 1 auto;width:1%;text-overflow:ellipsis;cursor:pointer}.p-dropdown-label-empty{overflow:hidden;opacity:0}input.p-dropdown-label{cursor:default}.p-dropdown .p-dropdown-panel{min-width:100%}.p-dropdown-items-wrapper{overflow:auto}.p-dropdown-item{cursor:pointer;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-dropdown-item-group{cursor:auto}.p-dropdown-items{margin:0;padding:0;list-style-type:none}.p-dropdown-filter{width:100%}.p-dropdown-filter-container{position:relative}.p-dropdown-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-fluid .p-dropdown{display:flex}.p-fluid .p-dropdown .p-dropdown-label{width:1%}}\n"], encapsulation: 2, changeDetection: 0 }); }
|
|
15780
15922
|
}
|
|
15781
15923
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Dropdown, [{
|
|
15782
15924
|
type: Component,
|
|
@@ -16693,7 +16835,7 @@ class AddressComponent {
|
|
|
16693
16835
|
i0.ɵɵproperty("ngIf", ctx.state.value && (ctx.state.value.value === "KS" && ctx.forState === "KS") && ctx.countyRequired === true);
|
|
16694
16836
|
i0.ɵɵadvance(1);
|
|
16695
16837
|
i0.ɵɵproperty("ngIf", ctx.state.value && ctx.state.value.value === "ME" && ctx.forState === "ME" && ctx.countyRequired === true);
|
|
16696
|
-
} }, dependencies: [i1$3.IonCol, i1$3.IonRow, i1$4.NgClass, i1$4.NgIf, i1$6.ɵNgNoValidate, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.MinLengthValidator, i1$6.MaxLengthValidator, i1$6.FormControlDirective, i1$6.FormGroupDirective,
|
|
16838
|
+
} }, dependencies: [i1$3.IonCol, i1$3.IonRow, i1$4.NgClass, i1$4.NgIf, i1$6.ɵNgNoValidate, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.MinLengthValidator, i1$6.MaxLengthValidator, i1$6.FormControlDirective, i1$6.FormGroupDirective, i16$2.InputText, ErrorComponent, Dropdown, i6$1.TranslatePipe], styles: [".col[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.form-lbl[_ngcontent-%COMP%]{padding-bottom:6px}.inline-flex[_ngcontent-%COMP%]{display:inline-flex}ion-col[_ngcontent-%COMP%]{padding-left:0}.app-col[_ngcontent-%COMP%]{margin-left:27px;padding-right:0}"] }); }
|
|
16697
16839
|
}
|
|
16698
16840
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AddressComponent, [{
|
|
16699
16841
|
type: Component,
|
|
@@ -19394,7 +19536,7 @@ class AddEmployerComponent {
|
|
|
19394
19536
|
i0.ɵɵproperty("formGroup", ctx.addEmployerForm);
|
|
19395
19537
|
i0.ɵɵadvance(2);
|
|
19396
19538
|
i0.ɵɵproperty("ngIf", ctx.addEmployerForm == null ? null : ctx.addEmployerForm.controls);
|
|
19397
|
-
} }, dependencies: [i1$3.IonButton, i1$3.IonCol, i1$3.IonGrid, i1$3.IonRow, i1$4.NgForOf, i1$4.NgIf, i4$1.PrimeTemplate, i7$2.MatError, i1$6.ɵNgNoValidate, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.MaxLengthValidator, i1$6.FormControlDirective, i1$6.FormGroupDirective, i1$6.FormControlName, i1$6.FormGroupName, i1$6.FormArrayName, i7$1.Dialog, i8$3.Table,
|
|
19539
|
+
} }, dependencies: [i1$3.IonButton, i1$3.IonCol, i1$3.IonGrid, i1$3.IonRow, i1$4.NgForOf, i1$4.NgIf, i4$1.PrimeTemplate, i7$2.MatError, i1$6.ɵNgNoValidate, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.MaxLengthValidator, i1$6.FormControlDirective, i1$6.FormGroupDirective, i1$6.FormControlName, i1$6.FormGroupName, i1$6.FormArrayName, i7$1.Dialog, i8$3.Table, i16$2.InputText, i8$4.InputMask, i9$4.Calendar, i12.SelectButton, i13.InputNumber, i15$2.Dropdown, ErrorComponent, OverlayInfoComponent, SearchEmployerComponent, AddressComponent, i1$4.CurrencyPipe, i6$1.TranslatePipe], styles: [".p-fluid[_ngcontent-%COMP%] .p-buttonset[_ngcontent-%COMP%]{display:flex}.p-selectbutton[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]{width:50px!important}.disabled[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none}.disabled[_ngcontent-%COMP%] *{color:gray;border-color:gray}table[_ngcontent-%COMP%], th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{border-collapse:collapse;padding:5px}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#f1f1f1}table[_ngcontent-%COMP%]{width:100%}.app-grid[_ngcontent-%COMP%]{color:red}"] }); }
|
|
19398
19540
|
}
|
|
19399
19541
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AddEmployerComponent, [{
|
|
19400
19542
|
type: Component,
|
|
@@ -21475,7 +21617,7 @@ class LegalDisclaimarComponent {
|
|
|
21475
21617
|
i0.ɵɵproperty("formGroup", ctx.form);
|
|
21476
21618
|
i0.ɵɵadvance(2);
|
|
21477
21619
|
i0.ɵɵproperty("ngIf", ctx.legalDisclaimar);
|
|
21478
|
-
} }, dependencies: [i1$3.IonButton, i1$3.IonCol, i1$3.IonIcon, i1$3.IonRow, i1$4.NgIf, i4$1.PrimeTemplate, i1$6.ɵNgNoValidate, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.MinLengthValidator, i1$6.MaxLengthValidator, i1$6.FormControlDirective, i1$6.FormGroupDirective, i1$6.FormControlName, i7$1.Dialog,
|
|
21620
|
+
} }, dependencies: [i1$3.IonButton, i1$3.IonCol, i1$3.IonIcon, i1$3.IonRow, i1$4.NgIf, i4$1.PrimeTemplate, i1$6.ɵNgNoValidate, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.MinLengthValidator, i1$6.MaxLengthValidator, i1$6.FormControlDirective, i1$6.FormGroupDirective, i1$6.FormControlName, i7$1.Dialog, i16$2.InputText, ErrorComponent, i6$1.TranslatePipe], styles: [".form-label[_ngcontent-%COMP%]{display:inline-block;margin-bottom:6px;margin-top:20px}ion-button[_ngcontent-%COMP%]{outline:none}.relia-card-section[_ngcontent-%COMP%]{max-width:800px;margin:28px auto;background:#fff;padding:28px 22px;border-radius:12px;box-shadow:0 2px 16px #0000000f;font-family:Segoe UI,Arial,sans-serif;font-size:1rem;color:#222}.relia-card-section[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-top:0;font-size:1.45em;font-weight:600;border-bottom:2px solid #3376be;padding-bottom:6px;margin-bottom:10px}.relia-card-section[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 12px;font-size:1.06em}.relia-card-section[_ngcontent-%COMP%] .info-box[_ngcontent-%COMP%]{background:#f6faff;border:2px solid #3376be;border-radius:12px;box-shadow:0 1px 8px #3376be14;padding:18px 22px 22px;max-width:550px;margin:26px auto 32px}.relia-card-section[_ngcontent-%COMP%] .info-box[_ngcontent-%COMP%] .options-message[_ngcontent-%COMP%]{text-align:center;font-weight:500;font-size:1.09em;margin:0 auto 18px;position:relative;display:inline-block;width:100%}.relia-card-section[_ngcontent-%COMP%] .info-box[_ngcontent-%COMP%] .options-message[_ngcontent-%COMP%]:after{content:\"\";display:block;margin:11px auto 0;width:88%;border-bottom:2.5px solid #3376be;border-radius:2px}.relia-card-section[_ngcontent-%COMP%] .info-box[_ngcontent-%COMP%] .fees-summary[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;margin-bottom:10px}.relia-card-section[_ngcontent-%COMP%] .info-box[_ngcontent-%COMP%] .fees-summary[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .relia-card-section[_ngcontent-%COMP%] .info-box[_ngcontent-%COMP%] .fees-summary[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid #bcd1e6;padding:10px;text-align:center;font-size:1em}.relia-card-section[_ngcontent-%COMP%] .info-box[_ngcontent-%COMP%] .fees-summary[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background:#f0f7fb;font-weight:600;border-bottom:2px solid #3376be;color:#225587}.relia-card-section[_ngcontent-%COMP%] .info-box[_ngcontent-%COMP%] .fees-summary[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{background:#fff}.relia-card-section[_ngcontent-%COMP%] .info-box[_ngcontent-%COMP%] .other-fees-info[_ngcontent-%COMP%]{margin:24px 0 0}.relia-card-section[_ngcontent-%COMP%] .info-box[_ngcontent-%COMP%] .other-fees-info[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;background:#fff;margin-bottom:10px}.relia-card-section[_ngcontent-%COMP%] .info-box[_ngcontent-%COMP%] .other-fees-info[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid #bcd1e6;padding:7px 10px;text-align:left;font-size:1em}.relia-card-section[_ngcontent-%COMP%] .info-box[_ngcontent-%COMP%] .other-fees-info[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:first-child td[_ngcontent-%COMP%]{border-top:2px solid #3376be}.relia-card-section[_ngcontent-%COMP%] .info-box[_ngcontent-%COMP%] .other-fees-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:4px;font-size:.99em}.relia-card-section[_ngcontent-%COMP%] .info-box[_ngcontent-%COMP%] .other-fees-info[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{font-weight:600}.relia-card-section[_ngcontent-%COMP%] .info-box[_ngcontent-%COMP%] .other-fees-info[_ngcontent-%COMP%] .nowrap[_ngcontent-%COMP%]{white-space:nowrap}.relia-card-section[_ngcontent-%COMP%] .info-box[_ngcontent-%COMP%] .other-fees-info[_ngcontent-%COMP%] .other-fees-note[_ngcontent-%COMP%]{font-weight:500;font-size:1.06em;margin-bottom:10px;text-align:left;position:relative}.relia-card-section[_ngcontent-%COMP%] .info-box[_ngcontent-%COMP%] .other-fees-info[_ngcontent-%COMP%] .other-fees-line[_ngcontent-%COMP%]{border:none;border-top:2px solid #3376be;margin:8px 0 0;width:80%}.relia-card-section[_ngcontent-%COMP%] .divider[_ngcontent-%COMP%]{margin-top:32px;margin-bottom:26px}.relia-card-section[_ngcontent-%COMP%] .divider[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border:none;border-top:2px solid #3376be;margin:0}.relia-card-section[_ngcontent-%COMP%] .relia-card-fee-schedule[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-top:0;font-size:1.25em;font-weight:700;margin-bottom:10px;color:#225587;border-bottom:1px solid #3376be;padding-bottom:6px}.relia-card-section[_ngcontent-%COMP%] .relia-card-fee-schedule[_ngcontent-%COMP%] .fee-table-wrapper[_ngcontent-%COMP%]{margin-bottom:0;margin-top:14px}.relia-card-section[_ngcontent-%COMP%] .relia-card-fee-schedule[_ngcontent-%COMP%] .fee-table-wrapper[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;margin-bottom:30px}.relia-card-section[_ngcontent-%COMP%] .relia-card-fee-schedule[_ngcontent-%COMP%] .fee-table-wrapper[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#e3f0fd;color:#225587;font-weight:600;border:2px solid #3376be;padding:10px;text-align:left}.relia-card-section[_ngcontent-%COMP%] .relia-card-fee-schedule[_ngcontent-%COMP%] .fee-table-wrapper[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid #ddd;padding:8px 10px;text-align:left}.relia-card-section[_ngcontent-%COMP%] .relia-card-fee-schedule[_ngcontent-%COMP%] .fee-table-wrapper[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td.indent[_ngcontent-%COMP%]{padding-left:28px;font-weight:500}.relia-card-section[_ngcontent-%COMP%] .relia-card-fee-schedule[_ngcontent-%COMP%] .fee-table-wrapper[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .category-row[_ngcontent-%COMP%]{background-color:#d4e6fb;font-weight:700;font-size:1.1rem;border:none}.relia-card-section[_ngcontent-%COMP%] .relia-card-fee-schedule[_ngcontent-%COMP%] .fee-table-wrapper[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .category-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:none;padding:12px 10px 6px}.relia-card-section[_ngcontent-%COMP%] .relia-card-fee-schedule[_ngcontent-%COMP%] .fee-table-wrapper[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background:#f4f8fb;font-weight:500;border:1px solid #3376be}.relia-card-section[_ngcontent-%COMP%] .relia-card-fee-schedule[_ngcontent-%COMP%] .fee-table-wrapper[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{border-bottom:2px solid #3376be}.relia-card-section[_ngcontent-%COMP%] .relia-card-fee-schedule[_ngcontent-%COMP%] .fee-table-wrapper[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{border-bottom:1px solid #eee}.relia-card-section[_ngcontent-%COMP%] .fdic-info[_ngcontent-%COMP%]{margin-top:22px;padding-top:14px;border-top:1px solid #bbb;font-size:.98em;color:#444}.relia-card-section[_ngcontent-%COMP%] .nowrap[_ngcontent-%COMP%]{white-space:nowrap}"] }); }
|
|
21479
21621
|
}
|
|
21480
21622
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LegalDisclaimarComponent, [{
|
|
21481
21623
|
type: Component,
|
|
@@ -21872,7 +22014,7 @@ class BankDetailsComponent {
|
|
|
21872
22014
|
i0.ɵɵadvance(2);
|
|
21873
22015
|
i0.ɵɵclassMap("app-grid");
|
|
21874
22016
|
i0.ɵɵproperty("field", ctx.reEnterAccountNumber)("form", _r0)("errDef", i0.ɵɵpureFunction5(87, _c5$7, ctx.required, ctx.acPattern, ctx.accountNumberComparisionValidation, ctx.acMaxlength, ctx.acMinLength));
|
|
21875
|
-
} }, dependencies: [i1$3.IonCol, i1$3.IonGrid, i1$3.IonRow, i1$6.ɵNgNoValidate, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.MinLengthValidator, i1$6.MaxLengthValidator, i1$6.FormControlDirective, i1$6.FormGroupDirective, i15$1.Password,
|
|
22017
|
+
} }, dependencies: [i1$3.IonCol, i1$3.IonGrid, i1$3.IonRow, i1$6.ɵNgNoValidate, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.MinLengthValidator, i1$6.MaxLengthValidator, i1$6.FormControlDirective, i1$6.FormGroupDirective, i15$1.Password, i16$2.InputText, i12.SelectButton, ErrorComponent, OverlayInfoComponent, i6$1.TranslatePipe, ProperCasePipe], styles: [".col[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0;max-width:-moz-fit-content;max-width:fit-content}.form-lbl[_ngcontent-%COMP%]{padding-bottom:6px}.inline-flex[_ngcontent-%COMP%]{display:inline-flex}.account[_ngcontent-%COMP%]{min-width:150px}"] }); }
|
|
21876
22018
|
}
|
|
21877
22019
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BankDetailsComponent, [{
|
|
21878
22020
|
type: Component,
|
|
@@ -23002,7 +23144,7 @@ class WeeklyCertEmployerComponentQe {
|
|
|
23002
23144
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(15, 7, "button.cancel"));
|
|
23003
23145
|
i0.ɵɵadvance(3);
|
|
23004
23146
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(18, 9, "button.add"));
|
|
23005
|
-
} }, dependencies: [i1$3.IonButton, i1$3.IonCol, i1$3.IonGrid, i1$3.IonRow, i1$4.NgIf, i1$6.ɵNgNoValidate, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.MinLengthValidator, i1$6.MaxLengthValidator, i1$6.FormControlDirective, i1$6.FormGroupDirective,
|
|
23147
|
+
} }, dependencies: [i1$3.IonButton, i1$3.IonCol, i1$3.IonGrid, i1$3.IonRow, i1$4.NgIf, i1$6.ɵNgNoValidate, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.MinLengthValidator, i1$6.MaxLengthValidator, i1$6.FormControlDirective, i1$6.FormGroupDirective, i16$2.InputText, i8$4.InputMask, i9$4.Calendar, i12.SelectButton, i13.InputNumber, ErrorComponent, OverlayInfoComponent, SearchEmployerComponent, Dropdown, i6$1.TranslatePipe, TrustHtmlPipe], styles: ["[_nghost-%COMP%] .p-fluid .p-buttonset{display:inline-flex!important}"] }); }
|
|
23006
23148
|
}
|
|
23007
23149
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WeeklyCertEmployerComponentQe, [{
|
|
23008
23150
|
type: Component,
|
|
@@ -24056,7 +24198,7 @@ class WeeklyCertWrptEmployerComponentQe {
|
|
|
24056
24198
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(9, 5, "button.cancel"));
|
|
24057
24199
|
i0.ɵɵadvance(3);
|
|
24058
24200
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(12, 7, "button.add"));
|
|
24059
|
-
} }, dependencies: [i1$3.IonButton, i1$3.IonCol, i1$3.IonGrid, i1$3.IonRow, i1$4.NgIf, i1$6.ɵNgNoValidate, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.MinLengthValidator, i1$6.MaxLengthValidator, i1$6.FormControlDirective, i1$6.FormGroupDirective,
|
|
24201
|
+
} }, dependencies: [i1$3.IonButton, i1$3.IonCol, i1$3.IonGrid, i1$3.IonRow, i1$4.NgIf, i1$6.ɵNgNoValidate, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.MinLengthValidator, i1$6.MaxLengthValidator, i1$6.FormControlDirective, i1$6.FormGroupDirective, i16$2.InputText, i8$4.InputMask, i9$4.Calendar, i12.SelectButton, ErrorComponent, OverlayInfoComponent, SearchEmployerComponent, Dropdown, i6$1.TranslatePipe, TrustHtmlPipe], styles: ["[_nghost-%COMP%] .p-fluid .p-buttonset{display:inline-flex!important}"] }); }
|
|
24060
24202
|
}
|
|
24061
24203
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WeeklyCertWrptEmployerComponentQe, [{
|
|
24062
24204
|
type: Component,
|
|
@@ -24832,7 +24974,7 @@ class AddParticipantComponent {
|
|
|
24832
24974
|
i0.ɵɵproperty("rowHover", true)("value", ctx.participantList);
|
|
24833
24975
|
i0.ɵɵadvance(6);
|
|
24834
24976
|
i0.ɵɵproperty("ngIf", ctx.visible);
|
|
24835
|
-
} }, dependencies: [i1$3.IonButton, i1$4.NgIf, i4$1.PrimeTemplate, i1$6.ɵNgNoValidate, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.RequiredValidator, i1$6.FormGroupDirective, i1$6.FormControlName, i8$3.Table,
|
|
24977
|
+
} }, dependencies: [i1$3.IonButton, i1$4.NgIf, i4$1.PrimeTemplate, i1$6.ɵNgNoValidate, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.RequiredValidator, i1$6.FormGroupDirective, i1$6.FormControlName, i8$3.Table, i16$2.InputText, i8$4.InputMask, i12.SelectButton, i10.FaIconComponent, ErrorComponent, AddressComponent, i6$1.TranslatePipe], styles: [".help-block[_ngcontent-%COMP%]{color:red}p-table[_ngcontent-%COMP%]{margin:0 -16px}.align[_ngcontent-%COMP%]{margin:0 -16px}[_nghost-%COMP%] p-selectbutton.ng-dirty.ng-invalid>.p-selectbutton>.p-button{border:1px solid red!important;color:red!important}[_nghost-%COMP%] .p-selectbutton .p-button{margin-top:15px!important}[_nghost-%COMP%] .p-datatable.app-datatable .p-datatable-thead>tr>th, [_nghost-%COMP%] .p-datatable.app-datatable .p-datatable-tfoot>tr>td{padding-left:17px!important}[_nghost-%COMP%] th{width:300px}"] }); }
|
|
24836
24978
|
}
|
|
24837
24979
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AddParticipantComponent, [{
|
|
24838
24980
|
type: Component,
|
|
@@ -25813,7 +25955,7 @@ class LinkComponent {
|
|
|
25813
25955
|
i0.ɵɵtextInterpolate1(" ", ctx.text, " ");
|
|
25814
25956
|
i0.ɵɵadvance(1);
|
|
25815
25957
|
i0.ɵɵproperty("field", ctx.isClicked)("form", _r0)("errDef", i0.ɵɵpureFunction0(6, _c1$b));
|
|
25816
|
-
} }, dependencies: [i1$3.IonButton, i1$3.IonIcon, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.FormGroupDirective, i1$6.FormControlName,
|
|
25958
|
+
} }, dependencies: [i1$3.IonButton, i1$3.IonIcon, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.FormGroupDirective, i1$6.FormControlName, i16$2.InputText, ErrorComponent] }); }
|
|
25817
25959
|
}
|
|
25818
25960
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LinkComponent, [{
|
|
25819
25961
|
type: Component,
|
|
@@ -25949,7 +26091,7 @@ class SignSsnComponent {
|
|
|
25949
26091
|
i0.ɵɵproperty("id", ctx.inputId)("formControl", ctx.lastfourssn);
|
|
25950
26092
|
i0.ɵɵadvance(2);
|
|
25951
26093
|
i0.ɵɵproperty("ngIf", _r0.touched);
|
|
25952
|
-
} }, dependencies: [i1$4.NgIf, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.MinLengthValidator, i1$6.MaxLengthValidator, i1$6.FormControlDirective, i1$6.FormGroupDirective,
|
|
26094
|
+
} }, dependencies: [i1$4.NgIf, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.MinLengthValidator, i1$6.MaxLengthValidator, i1$6.FormControlDirective, i1$6.FormGroupDirective, i16$2.InputText, ErrorComponent] }); }
|
|
25953
26095
|
}
|
|
25954
26096
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SignSsnComponent, [{
|
|
25955
26097
|
type: Component,
|
|
@@ -27679,7 +27821,7 @@ class AlienDoctypeComponent {
|
|
|
27679
27821
|
i0.ɵɵproperty("field", ctx.alienDocType)("form", _r0)("errDef", i0.ɵɵpureFunction1(17, _c5$2, i0.ɵɵpipeBind1(12, 15, "alien.doc.error.required")));
|
|
27680
27822
|
i0.ɵɵadvance(2);
|
|
27681
27823
|
i0.ɵɵproperty("ngIf", ctx.selectedKey);
|
|
27682
|
-
} }, dependencies: [i1$3.IonCol, i1$3.IonRow, i1$4.NgClass, i1$4.NgIf, i1$4.NgTemplateOutlet, i2.ButtonDirective, i1$6.ɵNgNoValidate, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.MinLengthValidator, i1$6.MaxLengthValidator, i1$6.FormControlDirective, i1$6.FormGroupDirective, i8$2.AutoComplete,
|
|
27824
|
+
} }, dependencies: [i1$3.IonCol, i1$3.IonRow, i1$4.NgClass, i1$4.NgIf, i1$4.NgTemplateOutlet, i2.ButtonDirective, i1$6.ɵNgNoValidate, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.MinLengthValidator, i1$6.MaxLengthValidator, i1$6.FormControlDirective, i1$6.FormGroupDirective, i8$2.AutoComplete, i16$2.InputText, i9$4.Calendar, i5$5.OverlayPanel, ErrorComponent, Dropdown, i6$1.TranslatePipe], styles: [".col[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.form-lbl[_ngcontent-%COMP%]{padding-bottom:6px}.optional-label[_ngcontent-%COMP%]{font-style:italic;color:#6c757d;font-size:.85em}.inline-flex[_ngcontent-%COMP%]{display:inline-flex}ion-col[_ngcontent-%COMP%]{padding-left:0}.app-col[_ngcontent-%COMP%]{margin-left:27px;padding-right:0}ion-row[_ngcontent-%COMP%]{align-items:flex-start!important;margin-bottom:10px;flex-wrap:nowrap}ion-col.col-fit-content[_ngcontent-%COMP%]{flex:1 1 0;min-width:0;padding-right:10px}.field[_ngcontent-%COMP%]{margin-bottom:5px;max-width:100%;overflow:hidden}.field[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;box-sizing:border-box}[_nghost-%COMP%] .field p-autoComplete{display:block;width:100%}[_nghost-%COMP%] .field p-autoComplete .p-autocomplete{width:100%}[_nghost-%COMP%] .field p-autoComplete .p-autocomplete input{width:100%}[_nghost-%COMP%] .country-autocomplete .p-autocomplete{width:100%}[_nghost-%COMP%] .country-autocomplete input::placeholder{text-transform:none}[_nghost-%COMP%] .field app-error{display:block;white-space:normal;word-wrap:break-word;overflow-wrap:break-word;margin-top:4px;max-width:100%}@media (max-width: 767px){ion-row[_ngcontent-%COMP%]{flex-direction:column}ion-col[_ngcontent-%COMP%], .col-fit-content[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;flex:0 0 100%!important}.field[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] p-calendar{width:100%}[_nghost-%COMP%] p-calendar .p-calendar{width:100%}ion-col[_ngcontent-%COMP%]{padding-bottom:5px!important}}"] }); }
|
|
27683
27825
|
}
|
|
27684
27826
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AlienDoctypeComponent, [{
|
|
27685
27827
|
type: Component,
|
|
@@ -30253,7 +30395,7 @@ class DynamicFormQuestionComponent {
|
|
|
30253
30395
|
i0.ɵɵproperty("ngSwitchCase", "panel");
|
|
30254
30396
|
i0.ɵɵadvance(1);
|
|
30255
30397
|
i0.ɵɵproperty("ngIf", ctx.question.type != "panel");
|
|
30256
|
-
} }, dependencies: [i1$3.IonButton, i1$3.IonCol, i1$3.IonRow, i1$4.NgClass, i1$4.NgForOf, i1$4.NgIf, i1$4.NgStyle, i1$4.NgSwitch, i1$4.NgSwitchCase, i4$1.PrimeTemplate, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.MaxLengthValidator, i1$6.FormControlDirective, i1$6.FormGroupDirective, i1$6.FormControlName, i8$2.AutoComplete, i7$1.Dialog, i15$1.Password,
|
|
30398
|
+
} }, dependencies: [i1$3.IonButton, i1$3.IonCol, i1$3.IonRow, i1$4.NgClass, i1$4.NgForOf, i1$4.NgIf, i1$4.NgStyle, i1$4.NgSwitch, i1$4.NgSwitchCase, i4$1.PrimeTemplate, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.MaxLengthValidator, i1$6.FormControlDirective, i1$6.FormGroupDirective, i1$6.FormControlName, i8$2.AutoComplete, i7$1.Dialog, i15$1.Password, i16$2.InputText, i8$4.InputMask, i9.Divider, i9$4.Calendar, i21.Checkbox, i12.SelectButton, i13.InputNumber, CaptchaComponent, FileUploaderComponent, DynamicFormQuestionComponent, OverlayInfoComponent, EmployerGridComponent, LegalDisclaimarComponent, MoneyExpectComponent, SearchEmployerComponent, AddressComponent, BankDetailsComponent, Mfa2Component, DependentGridComponent, WeeklyCertEmployerGridComponent, WeeklyCertWrptEmployerGridComponent, AddParticipantComponent, Dropdown, RequalifyLiftPreviousIssuesComponent, AddPaymentComponent, LinkComponent, SignSsnComponent, JobTitleComponent, AlienDoctypeComponent, i6$1.TranslatePipe, DynamicTranslatePipe, TrustHtmlPipe], styles: [".form-label[_ngcontent-%COMP%]{display:inline-block;margin-bottom:6px;margin-top:16px}.p-checkbox-label[_ngcontent-%COMP%]{line-height:1.5;text-align:justify;margin-left:1rem}.p-checkbox[_ngcontent-%COMP%]{padding:6px 0;width:-webkit-fill-available}.p-dropdown[_ngcontent-%COMP%]{display:inline-flex;min-width:185px}.p-calendar[_ngcontent-%COMP%] .p-inputtext[_ngcontent-%COMP%]{max-width:134px}[_nghost-%COMP%] .p-dropdown{display:inline-flex;min-width:185px}[_nghost-%COMP%] .p-calendar .p-inputtext{max-width:134px!important}.col-fit-content[_ngcontent-%COMP%]{max-width:-moz-fit-content;max-width:fit-content}.hide-content[_ngcontent-%COMP%]{position:relative;display:inline-block}.hide-content[_ngcontent-%COMP%]:after{content:\"***-**\";position:absolute;left:9px;bottom:6px;background-color:#fff;pointer-events:none}.shared-row[_ngcontent-%COMP%]{display:flex;column-gap:15px}"], data: { animation: [rowExpansionTrigger] } }); }
|
|
30257
30399
|
}
|
|
30258
30400
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DynamicFormQuestionComponent, [{
|
|
30259
30401
|
type: Component,
|
|
@@ -33466,7 +33608,7 @@ class CommonSuccessPage extends BasePage {
|
|
|
33466
33608
|
i0.ɵɵproperty("ngIf", ctx.isLoading);
|
|
33467
33609
|
i0.ɵɵadvance(1);
|
|
33468
33610
|
i0.ɵɵproperty("ngIf", ctx.elements.getValue() && !ctx.isLoading);
|
|
33469
|
-
} }, dependencies: [i1$3.IonButton, i1$3.IonCol, i1$3.IonContent, i1$3.IonGrid, i1$3.IonHeader, i1$3.IonLabel, i1$3.IonRow, i1$3.IonSpinner, i1$4.NgForOf, i1$4.NgIf, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.FormControlDirective,
|
|
33611
|
+
} }, dependencies: [i1$3.IonButton, i1$3.IonCol, i1$3.IonContent, i1$3.IonGrid, i1$3.IonHeader, i1$3.IonLabel, i1$3.IonRow, i1$3.IonSpinner, i1$4.NgForOf, i1$4.NgIf, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.FormControlDirective, i16$2.InputText, ContentComponent, HeaderComponent, MultiQuestionnaireComponent, i6$1.TranslatePipe], styles: [".bottom[_ngcontent-%COMP%]{position:absolute;bottom:15%;right:5%}.centered[_ngcontent-%COMP%]{position:fixed;top:30%;left:50%;transform:translate(-50%,-50%)}"] }); }
|
|
33470
33612
|
}
|
|
33471
33613
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CommonSuccessPage, [{
|
|
33472
33614
|
type: Component,
|
|
@@ -33682,7 +33824,7 @@ class SsnReverifyComponent {
|
|
|
33682
33824
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(50, 42, "common.close"));
|
|
33683
33825
|
i0.ɵɵadvance(3);
|
|
33684
33826
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(53, 44, "common.submit"));
|
|
33685
|
-
} }, dependencies: [i1$3.IonButton, i1$3.IonCol, i1$3.IonGrid, i1$3.IonRow, i4$1.Footer, i1$6.ɵNgNoValidate, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.MaxLengthValidator, i1$6.FormControlDirective, i1$6.FormGroupDirective, i7$1.Dialog,
|
|
33827
|
+
} }, dependencies: [i1$3.IonButton, i1$3.IonCol, i1$3.IonGrid, i1$3.IonRow, i4$1.Footer, i1$6.ɵNgNoValidate, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.MaxLengthValidator, i1$6.FormControlDirective, i1$6.FormGroupDirective, i7$1.Dialog, i16$2.InputText, i9$4.Calendar, ErrorComponent, i6$1.TranslatePipe] }); }
|
|
33686
33828
|
}
|
|
33687
33829
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SsnReverifyComponent, [{
|
|
33688
33830
|
type: Component,
|
|
@@ -35993,7 +36135,7 @@ class ContactUsComponent {
|
|
|
35993
36135
|
i0.ɵɵproperty("ngIf", !ctx.showSuccess && !ctx.isCsr);
|
|
35994
36136
|
i0.ɵɵadvance(1);
|
|
35995
36137
|
i0.ɵɵproperty("ngIf", !ctx.isCsr);
|
|
35996
|
-
} }, dependencies: [i1$3.IonButton, i1$3.IonCol, i1$3.IonIcon, i1$3.IonRow, i1$4.NgIf, i1$6.ɵNgNoValidate, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.MaxLengthValidator, i1$6.FormGroupDirective, i1$6.FormControlName,
|
|
36138
|
+
} }, dependencies: [i1$3.IonButton, i1$3.IonCol, i1$3.IonIcon, i1$3.IonRow, i1$4.NgIf, i1$6.ɵNgNoValidate, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgControlStatusGroup, i1$6.MaxLengthValidator, i1$6.FormGroupDirective, i1$6.FormControlName, i16$2.InputText, i8$4.InputMask, i12.SelectButton, i13.InputNumber, i14.InputTextarea, i15$2.Dropdown, ErrorComponent, CaptchaComponent, AddressComponent, i6$1.TranslatePipe], styles: ["ion-col[_ngcontent-%COMP%]{padding-left:0}div[_ngcontent-%COMP%]{margin-bottom:0!important}.error[_ngcontent-%COMP%]{color:var(--ion-color-danger)}[_nghost-%COMP%] .p-fluid .p-dropdown .p-dropdown-label{white-space:wrap!important}.contactUsPageTitle[_ngcontent-%COMP%]{color:#000;margin-top:0}.contactUsPageHeader[_ngcontent-%COMP%]{font-weight:500;color:#000}"] }); }
|
|
35997
36139
|
}
|
|
35998
36140
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContactUsComponent, [{
|
|
35999
36141
|
type: Component,
|
|
@@ -36186,97 +36328,6 @@ class FileDownloadComponent {
|
|
|
36186
36328
|
}] }); })();
|
|
36187
36329
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FileDownloadComponent, { className: "FileDownloadComponent", filePath: "lib\\components\\file-download\\file-download.component.ts", lineNumber: 15 }); })();
|
|
36188
36330
|
|
|
36189
|
-
class LexChatService {
|
|
36190
|
-
showImportantMessage(type) {
|
|
36191
|
-
this.importantMessageSubject.next(type);
|
|
36192
|
-
}
|
|
36193
|
-
constructor(http, loginService) {
|
|
36194
|
-
this.http = http;
|
|
36195
|
-
this.loginService = loginService;
|
|
36196
|
-
this.chatIDtheft = false;
|
|
36197
|
-
this.importantMessageSubject = new Subject();
|
|
36198
|
-
this.importantmessage$ = this.importantMessageSubject.asObservable();
|
|
36199
|
-
this.sessionAttributes = {};
|
|
36200
|
-
/** Emit true to open the chatbot popup from anywhere */
|
|
36201
|
-
this.chatOpen$ = new BehaviorSubject(false);
|
|
36202
|
-
this.sessionId = this.generateSessionId();
|
|
36203
|
-
}
|
|
36204
|
-
generateSessionId() {
|
|
36205
|
-
if (typeof crypto !== 'undefined' && 'randomUUID' in crypto) {
|
|
36206
|
-
return 'web-' + crypto.randomUUID();
|
|
36207
|
-
}
|
|
36208
|
-
return 'web-' + Math.random().toString(36).substring(2);
|
|
36209
|
-
}
|
|
36210
|
-
async sendMessage(text, clientFilter) {
|
|
36211
|
-
const headers = new HttpHeaders({ 'Content-Type': 'application/json' });
|
|
36212
|
-
// Use CP's access_token as sessionId when authenticated so Lambda can call backend APIs
|
|
36213
|
-
// Pre-login sends null since no backend API access is needed for basic FAQ
|
|
36214
|
-
const user = this.loginService.getUser();
|
|
36215
|
-
const effectiveSessionId = user?.access_token || this.sessionId;
|
|
36216
|
-
const mergedSessionAttrs = {
|
|
36217
|
-
...this.sessionAttributes
|
|
36218
|
-
};
|
|
36219
|
-
if (clientFilter && clientFilter.trim()) {
|
|
36220
|
-
mergedSessionAttrs['QNAClientFilter'] = clientFilter.trim();
|
|
36221
|
-
}
|
|
36222
|
-
console.log('Lex service clientFilter:', clientFilter);
|
|
36223
|
-
const payload = {
|
|
36224
|
-
sessionId: effectiveSessionId,
|
|
36225
|
-
text,
|
|
36226
|
-
sessionState: Object.keys(mergedSessionAttrs).length
|
|
36227
|
-
? { sessionAttributes: mergedSessionAttrs }
|
|
36228
|
-
: undefined,
|
|
36229
|
-
};
|
|
36230
|
-
try {
|
|
36231
|
-
const response = await firstValueFrom(this.http.post(LibConstants.chatbotLambdaUrl, payload, { headers }));
|
|
36232
|
-
const messages = response?.messages ?? [];
|
|
36233
|
-
this.sessionAttributes = {
|
|
36234
|
-
...mergedSessionAttrs,
|
|
36235
|
-
...(response?.sessionState?.sessionAttributes ?? {})
|
|
36236
|
-
};
|
|
36237
|
-
return {
|
|
36238
|
-
content: messages[0]?.content ?? "Sorry, I didn't get a response.",
|
|
36239
|
-
url: messages[0]?.url ?? [],
|
|
36240
|
-
isPwd: this.sessionAttributes['isPwd'] ?? '',
|
|
36241
|
-
isAck: this.sessionAttributes['isAck'] ?? '',
|
|
36242
|
-
is_end_session: this.sessionAttributes['end_session'] ?? ''
|
|
36243
|
-
};
|
|
36244
|
-
}
|
|
36245
|
-
catch (err) {
|
|
36246
|
-
console.error('LexChatService error:', err);
|
|
36247
|
-
throw err;
|
|
36248
|
-
}
|
|
36249
|
-
}
|
|
36250
|
-
resetSession(options) {
|
|
36251
|
-
this.sessionAttributes = {};
|
|
36252
|
-
if (options?.regenerateSessionId) {
|
|
36253
|
-
this.sessionId = this.generateSessionId();
|
|
36254
|
-
}
|
|
36255
|
-
}
|
|
36256
|
-
openChat(chatIDtheft = false) {
|
|
36257
|
-
this.chatIDtheft = chatIDtheft;
|
|
36258
|
-
this.chatOpen$.next(true);
|
|
36259
|
-
}
|
|
36260
|
-
closeChat() {
|
|
36261
|
-
this.resetSession({
|
|
36262
|
-
regenerateSessionId: true
|
|
36263
|
-
});
|
|
36264
|
-
this.chatOpen$.next(false);
|
|
36265
|
-
this.chatIDtheft = false;
|
|
36266
|
-
}
|
|
36267
|
-
giveSessionId() {
|
|
36268
|
-
return this.sessionId;
|
|
36269
|
-
}
|
|
36270
|
-
static { this.ɵfac = function LexChatService_Factory(t) { return new (t || LexChatService)(i0.ɵɵinject(i1$2.HttpClient), i0.ɵɵinject(LoginService)); }; }
|
|
36271
|
-
static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: LexChatService, factory: LexChatService.ɵfac, providedIn: 'root' }); }
|
|
36272
|
-
}
|
|
36273
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LexChatService, [{
|
|
36274
|
-
type: Injectable,
|
|
36275
|
-
args: [{
|
|
36276
|
-
providedIn: 'root'
|
|
36277
|
-
}]
|
|
36278
|
-
}], () => [{ type: i1$2.HttpClient }, { type: LoginService }], null); })();
|
|
36279
|
-
|
|
36280
36331
|
const _c0 = ["messageInput"];
|
|
36281
36332
|
const _c1 = ["chatWindow"];
|
|
36282
36333
|
function ChatbotLexComponent_button_0_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -36326,13 +36377,13 @@ function ChatbotLexComponent_div_2_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
36326
36377
|
i0.ɵɵtext(1, "\u26F6");
|
|
36327
36378
|
i0.ɵɵelementEnd();
|
|
36328
36379
|
} }
|
|
36329
|
-
function
|
|
36330
|
-
i0.ɵɵelement(0, "img",
|
|
36380
|
+
function ChatbotLexComponent_div_2_div_26_img_3_Template(rf, ctx) { if (rf & 1) {
|
|
36381
|
+
i0.ɵɵelement(0, "img", 46);
|
|
36331
36382
|
} }
|
|
36332
|
-
function
|
|
36383
|
+
function ChatbotLexComponent_div_2_div_26_ng_container_5_button_4_Template(rf, ctx) { if (rf & 1) {
|
|
36333
36384
|
const _r26 = i0.ɵɵgetCurrentView();
|
|
36334
|
-
i0.ɵɵelementStart(0, "button",
|
|
36335
|
-
i0.ɵɵlistener("mouseenter", function
|
|
36385
|
+
i0.ɵɵelementStart(0, "button", 50);
|
|
36386
|
+
i0.ɵɵlistener("mouseenter", function ChatbotLexComponent_div_2_div_26_ng_container_5_button_4_Template_button_mouseenter_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r26); const s_r23 = restoredCtx.$implicit; const i_r15 = i0.ɵɵnextContext(2).index; const ctx_r24 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r24.onStarEnter(i_r15, s_r23)); })("click", function ChatbotLexComponent_div_2_div_26_ng_container_5_button_4_Template_button_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r26); const s_r23 = restoredCtx.$implicit; const i_r15 = i0.ɵɵnextContext(2).index; const ctx_r27 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r27.onStarClick(s_r23, i_r15)); });
|
|
36336
36387
|
i0.ɵɵtext(1, " \u2605 ");
|
|
36337
36388
|
i0.ɵɵelementEnd();
|
|
36338
36389
|
} if (rf & 2) {
|
|
@@ -36343,15 +36394,15 @@ function ChatbotLexComponent_div_2_div_26_ng_container_3_button_4_Template(rf, c
|
|
|
36343
36394
|
i0.ɵɵpropertyInterpolate1("title", "Rate ", s_r23, " star(s)");
|
|
36344
36395
|
i0.ɵɵattribute("aria-label", "Rate " + s_r23 + " star(s)");
|
|
36345
36396
|
} }
|
|
36346
|
-
function
|
|
36397
|
+
function ChatbotLexComponent_div_2_div_26_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
36347
36398
|
const _r32 = i0.ɵɵgetCurrentView();
|
|
36348
36399
|
i0.ɵɵelementContainerStart(0);
|
|
36349
|
-
i0.ɵɵelementStart(1, "
|
|
36350
|
-
i0.ɵɵtext(2, "Your feedback matters to us");
|
|
36400
|
+
i0.ɵɵelementStart(1, "span", 47);
|
|
36401
|
+
i0.ɵɵtext(2, " Your feedback matters to us ");
|
|
36351
36402
|
i0.ɵɵelementEnd();
|
|
36352
|
-
i0.ɵɵelementStart(3, "div",
|
|
36353
|
-
i0.ɵɵlistener("mouseleave", function
|
|
36354
|
-
i0.ɵɵtemplate(4,
|
|
36403
|
+
i0.ɵɵelementStart(3, "div", 48);
|
|
36404
|
+
i0.ɵɵlistener("mouseleave", function ChatbotLexComponent_div_2_div_26_ng_container_5_Template_div_mouseleave_3_listener() { i0.ɵɵrestoreView(_r32); const i_r15 = i0.ɵɵnextContext().index; const ctx_r30 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r30.onStarLeave(i_r15)); });
|
|
36405
|
+
i0.ɵɵtemplate(4, ChatbotLexComponent_div_2_div_26_ng_container_5_button_4_Template, 2, 4, "button", 49);
|
|
36355
36406
|
i0.ɵɵelementEnd();
|
|
36356
36407
|
i0.ɵɵelementContainerEnd();
|
|
36357
36408
|
} if (rf & 2) {
|
|
@@ -36359,13 +36410,13 @@ function ChatbotLexComponent_div_2_div_26_ng_container_3_Template(rf, ctx) { if
|
|
|
36359
36410
|
i0.ɵɵadvance(4);
|
|
36360
36411
|
i0.ɵɵproperty("ngForOf", ctx_r17.getStars());
|
|
36361
36412
|
} }
|
|
36362
|
-
function
|
|
36413
|
+
function ChatbotLexComponent_div_2_div_26_ng_template_6_ng_container_1_br_2_Template(rf, ctx) { if (rf & 1) {
|
|
36363
36414
|
i0.ɵɵelement(0, "br");
|
|
36364
36415
|
} }
|
|
36365
|
-
function
|
|
36416
|
+
function ChatbotLexComponent_div_2_div_26_ng_template_6_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
36366
36417
|
i0.ɵɵelementContainerStart(0);
|
|
36367
36418
|
i0.ɵɵtext(1);
|
|
36368
|
-
i0.ɵɵtemplate(2,
|
|
36419
|
+
i0.ɵɵtemplate(2, ChatbotLexComponent_div_2_div_26_ng_template_6_ng_container_1_br_2_Template, 1, 0, "br", 8);
|
|
36369
36420
|
i0.ɵɵelementContainerEnd();
|
|
36370
36421
|
} if (rf & 2) {
|
|
36371
36422
|
const line_r36 = ctx.$implicit;
|
|
@@ -36375,77 +36426,66 @@ function ChatbotLexComponent_div_2_div_26_ng_template_4_ng_container_3_Template(
|
|
|
36375
36426
|
i0.ɵɵadvance(1);
|
|
36376
36427
|
i0.ɵɵproperty("ngIf", !last_r37);
|
|
36377
36428
|
} }
|
|
36378
|
-
function
|
|
36429
|
+
function ChatbotLexComponent_div_2_div_26_ng_template_6_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
36379
36430
|
const _r41 = i0.ɵɵgetCurrentView();
|
|
36380
|
-
i0.ɵɵelementStart(0, "div",
|
|
36381
|
-
i0.ɵɵlistener("click", function
|
|
36382
|
-
i0.ɵɵtext(2, "Yes");
|
|
36431
|
+
i0.ɵɵelementStart(0, "div", 54)(1, "button", 55);
|
|
36432
|
+
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_div_26_ng_template_6_div_2_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r41); const i_r15 = i0.ɵɵnextContext(2).index; const ctx_r39 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r39.onYesNoClick("Yes", i_r15)); });
|
|
36433
|
+
i0.ɵɵtext(2, " Yes ");
|
|
36383
36434
|
i0.ɵɵelementEnd();
|
|
36384
|
-
i0.ɵɵelementStart(3, "button",
|
|
36385
|
-
i0.ɵɵlistener("click", function
|
|
36386
|
-
i0.ɵɵtext(4, "No");
|
|
36435
|
+
i0.ɵɵelementStart(3, "button", 56);
|
|
36436
|
+
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_div_26_ng_template_6_div_2_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r41); const i_r15 = i0.ɵɵnextContext(2).index; const ctx_r42 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r42.onYesNoClick("No", i_r15)); });
|
|
36437
|
+
i0.ɵɵtext(4, " No ");
|
|
36387
36438
|
i0.ɵɵelementEnd()();
|
|
36388
36439
|
} }
|
|
36389
|
-
function
|
|
36390
|
-
const
|
|
36391
|
-
i0.ɵɵelementStart(0, "button",
|
|
36392
|
-
i0.ɵɵlistener("click", function
|
|
36440
|
+
function ChatbotLexComponent_div_2_div_26_ng_template_6_div_3_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
36441
|
+
const _r47 = i0.ɵɵgetCurrentView();
|
|
36442
|
+
i0.ɵɵelementStart(0, "button", 59);
|
|
36443
|
+
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_div_26_ng_template_6_div_3_button_1_Template_button_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r47); const url_r45 = restoredCtx.$implicit; const ctx_r46 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r46.openLink(url_r45)); });
|
|
36393
36444
|
i0.ɵɵtext(1);
|
|
36394
36445
|
i0.ɵɵelementEnd();
|
|
36395
36446
|
} if (rf & 2) {
|
|
36396
|
-
const url_r45 =
|
|
36397
|
-
i0.ɵɵadvance(1);
|
|
36398
|
-
i0.ɵɵtextInterpolate(url_r45);
|
|
36399
|
-
} }
|
|
36400
|
-
function ChatbotLexComponent_div_2_div_26_ng_template_4_div_5_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
36401
|
-
i0.ɵɵelementStart(0, "div");
|
|
36402
|
-
i0.ɵɵtemplate(1, ChatbotLexComponent_div_2_div_26_ng_template_4_div_5_div_1_button_1_Template, 2, 1, "button", 55);
|
|
36403
|
-
i0.ɵɵelementEnd();
|
|
36404
|
-
} if (rf & 2) {
|
|
36405
|
-
const msg_r14 = i0.ɵɵnextContext(3).$implicit;
|
|
36447
|
+
const url_r45 = ctx.$implicit;
|
|
36406
36448
|
i0.ɵɵadvance(1);
|
|
36407
|
-
i0.ɵɵ
|
|
36449
|
+
i0.ɵɵtextInterpolate1(" ", url_r45, " ");
|
|
36408
36450
|
} }
|
|
36409
|
-
function
|
|
36410
|
-
i0.ɵɵelementStart(0, "div");
|
|
36411
|
-
i0.ɵɵtemplate(1,
|
|
36451
|
+
function ChatbotLexComponent_div_2_div_26_ng_template_6_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
36452
|
+
i0.ɵɵelementStart(0, "div", 57);
|
|
36453
|
+
i0.ɵɵtemplate(1, ChatbotLexComponent_div_2_div_26_ng_template_6_div_3_button_1_Template, 2, 1, "button", 58);
|
|
36412
36454
|
i0.ɵɵelementEnd();
|
|
36413
36455
|
} if (rf & 2) {
|
|
36414
36456
|
const msg_r14 = i0.ɵɵnextContext(2).$implicit;
|
|
36415
36457
|
i0.ɵɵadvance(1);
|
|
36416
|
-
i0.ɵɵproperty("
|
|
36458
|
+
i0.ɵɵproperty("ngIfOf", msg_r14.url);
|
|
36417
36459
|
} }
|
|
36418
|
-
function
|
|
36419
|
-
i0.ɵɵelementStart(0, "
|
|
36420
|
-
i0.ɵɵtemplate(
|
|
36460
|
+
function ChatbotLexComponent_div_2_div_26_ng_template_6_Template(rf, ctx) { if (rf & 1) {
|
|
36461
|
+
i0.ɵɵelementStart(0, "span", 47);
|
|
36462
|
+
i0.ɵɵtemplate(1, ChatbotLexComponent_div_2_div_26_ng_template_6_ng_container_1_Template, 3, 2, "ng-container", 51);
|
|
36421
36463
|
i0.ɵɵelementEnd();
|
|
36422
|
-
i0.ɵɵtemplate(
|
|
36423
|
-
i0.ɵɵelementEnd()();
|
|
36464
|
+
i0.ɵɵtemplate(2, ChatbotLexComponent_div_2_div_26_ng_template_6_div_2_Template, 5, 0, "div", 52)(3, ChatbotLexComponent_div_2_div_26_ng_template_6_div_3_Template, 2, 1, "div", 53);
|
|
36424
36465
|
} if (rf & 2) {
|
|
36425
|
-
const
|
|
36426
|
-
const msg_r14 =
|
|
36427
|
-
const i_r15 =
|
|
36466
|
+
const ctx_r49 = i0.ɵɵnextContext();
|
|
36467
|
+
const msg_r14 = ctx_r49.$implicit;
|
|
36468
|
+
const i_r15 = ctx_r49.index;
|
|
36428
36469
|
const ctx_r18 = i0.ɵɵnextContext(2);
|
|
36429
|
-
i0.ɵɵ
|
|
36430
|
-
i0.ɵɵadvance(3);
|
|
36470
|
+
i0.ɵɵadvance(1);
|
|
36431
36471
|
i0.ɵɵproperty("ngForOf", ctx_r18.displayLines(msg_r14.text));
|
|
36432
36472
|
i0.ɵɵadvance(1);
|
|
36433
36473
|
i0.ɵɵproperty("ngIf", msg_r14.from === "bot" && ctx_r18.isYesNoPrompt(msg_r14.text, i_r15));
|
|
36434
36474
|
i0.ɵɵadvance(1);
|
|
36435
36475
|
i0.ɵɵproperty("ngIf", msg_r14.url && msg_r14.url.length);
|
|
36436
36476
|
} }
|
|
36437
|
-
function
|
|
36438
|
-
const
|
|
36439
|
-
i0.ɵɵelementStart(0, "div",
|
|
36440
|
-
i0.ɵɵlistener("click", function
|
|
36441
|
-
i0.ɵɵtext(2, "\uD83D\uDC4D");
|
|
36477
|
+
function ChatbotLexComponent_div_2_div_26_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
36478
|
+
const _r52 = i0.ɵɵgetCurrentView();
|
|
36479
|
+
i0.ɵɵelementStart(0, "div", 60)(1, "button", 61);
|
|
36480
|
+
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_div_26_div_9_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r52); const i_r15 = i0.ɵɵnextContext().index; const ctx_r50 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r50.sendFeedback("Thumbs up", i_r15)); });
|
|
36481
|
+
i0.ɵɵtext(2, " \uD83D\uDC4D ");
|
|
36442
36482
|
i0.ɵɵelementEnd();
|
|
36443
|
-
i0.ɵɵelementStart(3, "button",
|
|
36444
|
-
i0.ɵɵlistener("click", function
|
|
36445
|
-
i0.ɵɵtext(4, "\uD83D\uDC4E");
|
|
36483
|
+
i0.ɵɵelementStart(3, "button", 62);
|
|
36484
|
+
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_div_26_div_9_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r52); const i_r15 = i0.ɵɵnextContext().index; const ctx_r53 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r53.sendFeedback("Thumbs down", i_r15)); });
|
|
36485
|
+
i0.ɵɵtext(4, " \uD83D\uDC4E ");
|
|
36446
36486
|
i0.ɵɵelementEnd()();
|
|
36447
36487
|
} }
|
|
36448
|
-
function
|
|
36488
|
+
function ChatbotLexComponent_div_2_div_26_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
36449
36489
|
i0.ɵɵelementStart(0, "div", 36);
|
|
36450
36490
|
i0.ɵɵtext(1);
|
|
36451
36491
|
i0.ɵɵpipe(2, "date");
|
|
@@ -36457,38 +36497,43 @@ function ChatbotLexComponent_div_2_div_26_div_7_Template(rf, ctx) { if (rf & 1)
|
|
|
36457
36497
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 2, msg_r14.timestamp, "EEE MMM dd yyyy 'at' hh:mm:ss a"), " ");
|
|
36458
36498
|
} }
|
|
36459
36499
|
function ChatbotLexComponent_div_2_div_26_Template(rf, ctx) { if (rf & 1) {
|
|
36460
|
-
i0.ɵɵelementStart(0, "div", 36)(1, "div", 37);
|
|
36461
|
-
i0.ɵɵtemplate(
|
|
36462
|
-
i0.ɵɵ
|
|
36463
|
-
i0.ɵɵtemplate(
|
|
36464
|
-
i0.ɵɵelementEnd();
|
|
36500
|
+
i0.ɵɵelementStart(0, "div", 36)(1, "div", 37)(2, "div", 38);
|
|
36501
|
+
i0.ɵɵtemplate(3, ChatbotLexComponent_div_2_div_26_img_3_Template, 1, 0, "img", 39);
|
|
36502
|
+
i0.ɵɵelementStart(4, "div", 40);
|
|
36503
|
+
i0.ɵɵtemplate(5, ChatbotLexComponent_div_2_div_26_ng_container_5_Template, 5, 1, "ng-container", 41)(6, ChatbotLexComponent_div_2_div_26_ng_template_6_Template, 4, 3, "ng-template", null, 42, i0.ɵɵtemplateRefExtractor);
|
|
36504
|
+
i0.ɵɵelementEnd()();
|
|
36505
|
+
i0.ɵɵelementStart(8, "div", 43);
|
|
36506
|
+
i0.ɵɵtemplate(9, ChatbotLexComponent_div_2_div_26_div_9_Template, 5, 0, "div", 44)(10, ChatbotLexComponent_div_2_div_26_div_10_Template, 3, 5, "div", 45);
|
|
36507
|
+
i0.ɵɵelementEnd()()();
|
|
36465
36508
|
} if (rf & 2) {
|
|
36466
36509
|
const msg_r14 = ctx.$implicit;
|
|
36467
36510
|
const i_r15 = ctx.index;
|
|
36468
|
-
const _r19 = i0.ɵɵreference(
|
|
36511
|
+
const _r19 = i0.ɵɵreference(7);
|
|
36469
36512
|
const ctx_r12 = i0.ɵɵnextContext(2);
|
|
36470
36513
|
i0.ɵɵproperty("ngClass", msg_r14.from);
|
|
36514
|
+
i0.ɵɵadvance(1);
|
|
36515
|
+
i0.ɵɵclassProp("short-welcome", msg_r14.from === "bot" && msg_r14.text === "Hi! How may I help you?");
|
|
36471
36516
|
i0.ɵɵadvance(2);
|
|
36472
36517
|
i0.ɵɵproperty("ngIf", msg_r14.from === "bot");
|
|
36473
|
-
i0.ɵɵadvance(
|
|
36518
|
+
i0.ɵɵadvance(2);
|
|
36474
36519
|
i0.ɵɵproperty("ngIf", msg_r14.from === "bot" && ctx_r12.isStarRatingPrompt(msg_r14.text, i_r15))("ngIfElse", _r19);
|
|
36475
|
-
i0.ɵɵadvance(
|
|
36476
|
-
i0.ɵɵproperty("ngIf", msg_r14.from === "bot" && (msg_r14.text == null ? null : msg_r14.text.trim())
|
|
36520
|
+
i0.ɵɵadvance(4);
|
|
36521
|
+
i0.ɵɵproperty("ngIf", msg_r14.from === "bot" && (msg_r14.text == null ? null : msg_r14.text.trim()) !== "Hi! How may I help you?" && !ctx_r12.isMessageRated(i_r15) && i_r15 === ctx_r12.messages.length - 1 && !ctx_r12.isAck);
|
|
36477
36522
|
i0.ɵɵadvance(1);
|
|
36478
36523
|
i0.ɵɵproperty("ngIf", msg_r14.timestamp);
|
|
36479
36524
|
} }
|
|
36480
36525
|
function ChatbotLexComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
36481
|
-
const
|
|
36526
|
+
const _r57 = i0.ɵɵgetCurrentView();
|
|
36482
36527
|
i0.ɵɵelementStart(0, "div", 11)(1, "div", 12)(2, "button", 13);
|
|
36483
|
-
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_2_listener() { i0.ɵɵrestoreView(
|
|
36528
|
+
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r57); const ctx_r56 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r56.toggleExpand()); });
|
|
36484
36529
|
i0.ɵɵtemplate(3, ChatbotLexComponent_div_2_span_3_Template, 2, 0, "span", 8);
|
|
36485
36530
|
i0.ɵɵelementEnd();
|
|
36486
36531
|
i0.ɵɵelementStart(4, "button", 14);
|
|
36487
|
-
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_4_listener() { i0.ɵɵrestoreView(
|
|
36532
|
+
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r57); const ctx_r58 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r58.minimizeChat()); });
|
|
36488
36533
|
i0.ɵɵtext(5, " _ ");
|
|
36489
36534
|
i0.ɵɵelementEnd();
|
|
36490
36535
|
i0.ɵɵelementStart(6, "button", 15);
|
|
36491
|
-
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_6_listener() { i0.ɵɵrestoreView(
|
|
36536
|
+
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r57); const ctx_r59 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r59.closeChat()); });
|
|
36492
36537
|
i0.ɵɵtext(7, " \u2715 ");
|
|
36493
36538
|
i0.ɵɵelementEnd()();
|
|
36494
36539
|
i0.ɵɵelementStart(8, "div", 16)(9, "span", 17);
|
|
@@ -36502,22 +36547,22 @@ function ChatbotLexComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
36502
36547
|
i0.ɵɵtext(17);
|
|
36503
36548
|
i0.ɵɵelementEnd()()()();
|
|
36504
36549
|
i0.ɵɵelementStart(18, "div", 24)(19, "button", 25);
|
|
36505
|
-
i0.ɵɵlistener("mouseenter", function ChatbotLexComponent_div_2_Template_button_mouseenter_19_listener() { i0.ɵɵrestoreView(
|
|
36550
|
+
i0.ɵɵlistener("mouseenter", function ChatbotLexComponent_div_2_Template_button_mouseenter_19_listener() { i0.ɵɵrestoreView(_r57); const ctx_r60 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r60.getSessionID()); })("click", function ChatbotLexComponent_div_2_Template_button_click_19_listener() { i0.ɵɵrestoreView(_r57); const ctx_r61 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r61.copySessionId()); });
|
|
36506
36551
|
i0.ɵɵtext(20, " \uD83D\uDEC8 ");
|
|
36507
36552
|
i0.ɵɵelementEnd();
|
|
36508
36553
|
i0.ɵɵelementStart(21, "button", 26);
|
|
36509
|
-
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_21_listener() { i0.ɵɵrestoreView(
|
|
36554
|
+
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_21_listener() { i0.ɵɵrestoreView(_r57); const ctx_r62 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r62.refreshChat()); });
|
|
36510
36555
|
i0.ɵɵtext(22, " \u27F3 ");
|
|
36511
36556
|
i0.ɵɵelementEnd()()();
|
|
36512
36557
|
i0.ɵɵelementStart(23, "div", 27)(24, "div", 28, 29);
|
|
36513
|
-
i0.ɵɵtemplate(26, ChatbotLexComponent_div_2_div_26_Template,
|
|
36558
|
+
i0.ɵɵtemplate(26, ChatbotLexComponent_div_2_div_26_Template, 11, 8, "div", 30);
|
|
36514
36559
|
i0.ɵɵelementEnd()();
|
|
36515
36560
|
i0.ɵɵelementStart(27, "div", 31)(28, "div", 32)(29, "textarea", 33, 34);
|
|
36516
|
-
i0.ɵɵlistener("ngModelChange", function ChatbotLexComponent_div_2_Template_textarea_ngModelChange_29_listener($event) { i0.ɵɵrestoreView(
|
|
36561
|
+
i0.ɵɵlistener("ngModelChange", function ChatbotLexComponent_div_2_Template_textarea_ngModelChange_29_listener($event) { i0.ɵɵrestoreView(_r57); const ctx_r63 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r63.userInput = $event); })("input", function ChatbotLexComponent_div_2_Template_textarea_input_29_listener() { i0.ɵɵrestoreView(_r57); const ctx_r64 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r64.autoGrow()); })("keydown.enter", function ChatbotLexComponent_div_2_Template_textarea_keydown_enter_29_listener($event) { i0.ɵɵrestoreView(_r57); const ctx_r65 = i0.ɵɵnextContext(); $event.preventDefault(); return i0.ɵɵresetView(ctx_r65.handleEnter()); });
|
|
36517
36562
|
i0.ɵɵtext(31, " ");
|
|
36518
36563
|
i0.ɵɵelementEnd()();
|
|
36519
36564
|
i0.ɵɵelementStart(32, "button", 35);
|
|
36520
|
-
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_32_listener() { i0.ɵɵrestoreView(
|
|
36565
|
+
i0.ɵɵlistener("click", function ChatbotLexComponent_div_2_Template_button_click_32_listener() { i0.ɵɵrestoreView(_r57); const ctx_r66 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r66.sendMessage()); });
|
|
36521
36566
|
i0.ɵɵtext(33, " Send ");
|
|
36522
36567
|
i0.ɵɵelementEnd()()();
|
|
36523
36568
|
} if (rf & 2) {
|
|
@@ -36546,6 +36591,7 @@ class ChatbotLexComponent {
|
|
|
36546
36591
|
this.isExpanded = !this.isExpanded;
|
|
36547
36592
|
}
|
|
36548
36593
|
minimizeChat() {
|
|
36594
|
+
this.isMinimized = true;
|
|
36549
36595
|
this.chatOpen = false;
|
|
36550
36596
|
this.isExpanded = false;
|
|
36551
36597
|
}
|
|
@@ -36577,9 +36623,15 @@ class ChatbotLexComponent {
|
|
|
36577
36623
|
this.isSessionActive = true;
|
|
36578
36624
|
this.showImportantMessage = false;
|
|
36579
36625
|
this.importantMessageAccepted = false;
|
|
36626
|
+
this.importantMessageShown = false;
|
|
36627
|
+
this.isMinimized = false;
|
|
36580
36628
|
this.importantMessageType = 'employer';
|
|
36581
36629
|
this.clientFilter = '';
|
|
36582
36630
|
this.messages = [];
|
|
36631
|
+
this.userLoggedIn = false;
|
|
36632
|
+
this.username = '';
|
|
36633
|
+
this.pendingPersonalizedQuestion = '';
|
|
36634
|
+
this.personalizedQuestionResumed = false;
|
|
36583
36635
|
this.userInput = '';
|
|
36584
36636
|
this.sending = false;
|
|
36585
36637
|
this.sendingRating = false;
|
|
@@ -36603,6 +36655,25 @@ class ChatbotLexComponent {
|
|
|
36603
36655
|
this.starLocked = new Set();
|
|
36604
36656
|
this.feedbackPromptShown = false;
|
|
36605
36657
|
this.imporantMessageShown = false;
|
|
36658
|
+
this.loginMessageHandler = (event) => {
|
|
36659
|
+
if (event.origin !== window.location.origin) {
|
|
36660
|
+
return;
|
|
36661
|
+
}
|
|
36662
|
+
if (event.data?.type !== 'USER_LOGGED_IN') {
|
|
36663
|
+
return;
|
|
36664
|
+
}
|
|
36665
|
+
const username = String(event.data?.payload?.username ?? '').trim();
|
|
36666
|
+
const authToken = String(event.data?.payload?.authToken ?? 'authToken');
|
|
36667
|
+
if (!username) {
|
|
36668
|
+
return;
|
|
36669
|
+
}
|
|
36670
|
+
this.ngZone.run(() => {
|
|
36671
|
+
this.userLoggedIn = true;
|
|
36672
|
+
this.username = username;
|
|
36673
|
+
this.lexChat.setAuthenticatedUser(username, authToken);
|
|
36674
|
+
void this.resumePendingPersonalizedQuestion();
|
|
36675
|
+
});
|
|
36676
|
+
};
|
|
36606
36677
|
}
|
|
36607
36678
|
setWelcomeMessage() {
|
|
36608
36679
|
const welcomeText = this.chatIDtheft
|
|
@@ -36633,6 +36704,7 @@ class ChatbotLexComponent {
|
|
|
36633
36704
|
}
|
|
36634
36705
|
}
|
|
36635
36706
|
ngOnInit() {
|
|
36707
|
+
window.addEventListener('message', this.loginMessageHandler);
|
|
36636
36708
|
console.log("CHATBOT ngOnItit clientFilter:", this.clientFilter);
|
|
36637
36709
|
this.lexChat.importantmessage$.subscribe(type => {
|
|
36638
36710
|
this.importantMessageType = type;
|
|
@@ -36651,7 +36723,9 @@ class ChatbotLexComponent {
|
|
|
36651
36723
|
this.idleDetectCount = 0;
|
|
36652
36724
|
return;
|
|
36653
36725
|
}
|
|
36654
|
-
|
|
36726
|
+
const requestedChatIDtheft = this.lexChat.chatIDtheft;
|
|
36727
|
+
const modeChanged = requestedChatIDtheft !== this.chatIDtheft;
|
|
36728
|
+
if (!this.chatOpen || modeChanged) {
|
|
36655
36729
|
this.chatIDtheft = this.lexChat.chatIDtheft;
|
|
36656
36730
|
if (this.chatIDtheft) {
|
|
36657
36731
|
this.showImportantMessage = false;
|
|
@@ -36665,7 +36739,9 @@ class ChatbotLexComponent {
|
|
|
36665
36739
|
this.isIdle = false;
|
|
36666
36740
|
this.idleRequestInFlight = false;
|
|
36667
36741
|
this.idleDetectCount = 0;
|
|
36668
|
-
this.
|
|
36742
|
+
if (!this.chatOpen) {
|
|
36743
|
+
this.toggleChat();
|
|
36744
|
+
}
|
|
36669
36745
|
if (this.chatIDtheft) {
|
|
36670
36746
|
this.sendReportIdTheftMessage();
|
|
36671
36747
|
}
|
|
@@ -36679,6 +36755,7 @@ class ChatbotLexComponent {
|
|
|
36679
36755
|
this.scrollToBottom();
|
|
36680
36756
|
}
|
|
36681
36757
|
ngOnDestroy() {
|
|
36758
|
+
window.removeEventListener('message', this.loginMessageHandler);
|
|
36682
36759
|
if (this.idleTimerId)
|
|
36683
36760
|
window.clearTimeout(this.idleTimerId);
|
|
36684
36761
|
}
|
|
@@ -36704,23 +36781,34 @@ class ChatbotLexComponent {
|
|
|
36704
36781
|
this.is_end_session = true;
|
|
36705
36782
|
this.messages = [];
|
|
36706
36783
|
this.chatIDtheft = false;
|
|
36784
|
+
this.pendingPersonalizedQuestion = '';
|
|
36785
|
+
this.personalizedQuestionResumed = false;
|
|
36786
|
+
this.isMinimized = false;
|
|
36707
36787
|
}
|
|
36708
36788
|
handleCloudClick() {
|
|
36709
|
-
if (this.
|
|
36710
|
-
|
|
36711
|
-
this.
|
|
36712
|
-
this.
|
|
36789
|
+
if (this.isMinimized) {
|
|
36790
|
+
this.isMinimized = false;
|
|
36791
|
+
this.chatOpen = true;
|
|
36792
|
+
setTimeout(() => this.focusInput(), 100);
|
|
36713
36793
|
return;
|
|
36714
36794
|
}
|
|
36795
|
+
if (this.isMinimized) {
|
|
36796
|
+
this.isMinimized = false;
|
|
36797
|
+
this.chatOpen = true;
|
|
36798
|
+
setTimeout(() => this.focusInput, 100);
|
|
36799
|
+
return;
|
|
36800
|
+
}
|
|
36801
|
+
this.lexChat.chatIDtheft = false;
|
|
36715
36802
|
const type = this.clientFilter === 'claimant' ? 'claimant' : 'employer';
|
|
36716
|
-
this.lexChat.showImportantMessage(type);
|
|
36803
|
+
this.lexChat.showImportantMessage(type, false);
|
|
36717
36804
|
}
|
|
36718
36805
|
startAmeliaChat() {
|
|
36719
36806
|
this.showImportantMessage = false;
|
|
36807
|
+
const isReportIdTheft = this.lexChat.chatIDtheft;
|
|
36720
36808
|
this.lexChat.resetSession({
|
|
36721
36809
|
regenerateSessionId: true
|
|
36722
36810
|
});
|
|
36723
|
-
this.lexChat.openChat(
|
|
36811
|
+
this.lexChat.openChat(this.lexChat.chatIDtheft);
|
|
36724
36812
|
}
|
|
36725
36813
|
openChatbotFromCloud() {
|
|
36726
36814
|
this.importantMessageType === 'claimant' ? 'claimant' : 'employer';
|
|
@@ -36782,6 +36870,16 @@ class ChatbotLexComponent {
|
|
|
36782
36870
|
this.clearIdleTimer();
|
|
36783
36871
|
}
|
|
36784
36872
|
this.messages.push({ from: 'bot', text: reply['content'], url: reply['url'], timestamp: new Date() });
|
|
36873
|
+
const loginRequired = botReplyText === 'login required' ||
|
|
36874
|
+
botReplyText.includes('For your protection, personal information is available only after you log in. Please log in to access your personal details securely.');
|
|
36875
|
+
if (loginRequired) {
|
|
36876
|
+
const previousMessage = this.messages[this.messages.length - 2];
|
|
36877
|
+
if (previousMessage?.from === 'user') {
|
|
36878
|
+
this.pendingPersonalizedQuestion = previousMessage.text;
|
|
36879
|
+
this.personalizedQuestionResumed = false;
|
|
36880
|
+
console.log('Personalized question saved:', this.pendingPersonalizedQuestion);
|
|
36881
|
+
}
|
|
36882
|
+
}
|
|
36785
36883
|
this.scrollToBottom();
|
|
36786
36884
|
this.expectingPassword = reply['isPwd'] === 'True';
|
|
36787
36885
|
if (!botEndedConversation) {
|
|
@@ -36962,8 +37060,9 @@ class ChatbotLexComponent {
|
|
|
36962
37060
|
// Private helpers
|
|
36963
37061
|
async resetChat() {
|
|
36964
37062
|
this.botOffline = false;
|
|
36965
|
-
this.
|
|
36966
|
-
this.
|
|
37063
|
+
this.messages = [];
|
|
37064
|
+
// this.setWelcomeMessage();
|
|
37065
|
+
// this.messages = [{ from: 'bot', text: 'Hi! How may I help you?', timestamp: new Date()}];
|
|
36967
37066
|
try {
|
|
36968
37067
|
await this.lexChat.sendMessage(this.idleActions[2], this.clientFilter);
|
|
36969
37068
|
}
|
|
@@ -36991,13 +37090,37 @@ class ChatbotLexComponent {
|
|
|
36991
37090
|
this.idleDetectCount = 0;
|
|
36992
37091
|
this.endedByIdleCounter = false;
|
|
36993
37092
|
this.isDisabled = false;
|
|
37093
|
+
this.pendingPersonalizedQuestion = '';
|
|
37094
|
+
this.personalizedQuestionResumed = false;
|
|
36994
37095
|
this.lexChat.resetSession({ regenerateSessionId: true });
|
|
36995
37096
|
this.sessionId = this.lexChat.giveSessionId();
|
|
37097
|
+
if (this.chatIDtheft) {
|
|
37098
|
+
await this.sendReportIdTheftMessage();
|
|
37099
|
+
}
|
|
37100
|
+
else {
|
|
37101
|
+
this.setWelcomeMessage();
|
|
37102
|
+
}
|
|
36996
37103
|
this.cdr.detectChanges();
|
|
36997
37104
|
this.scrollToBottom();
|
|
36998
37105
|
this.focusInput();
|
|
36999
37106
|
}
|
|
37000
37107
|
}
|
|
37108
|
+
async resumePendingPersonalizedQuestion() {
|
|
37109
|
+
if (!this.pendingPersonalizedQuestion || this.personalizedQuestionResumed) {
|
|
37110
|
+
return;
|
|
37111
|
+
}
|
|
37112
|
+
if (this.sending) {
|
|
37113
|
+
window.setTimeout(() => {
|
|
37114
|
+
void this.resumePendingPersonalizedQuestion();
|
|
37115
|
+
}, 100);
|
|
37116
|
+
return;
|
|
37117
|
+
}
|
|
37118
|
+
const pendingQuestion = this.pendingPersonalizedQuestion;
|
|
37119
|
+
this.pendingPersonalizedQuestion = '';
|
|
37120
|
+
this.personalizedQuestionResumed = true;
|
|
37121
|
+
this.userInput = pendingQuestion;
|
|
37122
|
+
await this.sendMessage(true);
|
|
37123
|
+
}
|
|
37001
37124
|
maskText(s) {
|
|
37002
37125
|
return s.replace(/./g, '*');
|
|
37003
37126
|
}
|
|
@@ -37095,7 +37218,7 @@ class ChatbotLexComponent {
|
|
|
37095
37218
|
let _t;
|
|
37096
37219
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.messageInput = _t.first);
|
|
37097
37220
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.chatWindow = _t.first);
|
|
37098
|
-
} }, inputs: { clientFilter: "clientFilter" }, decls: 3, vars: 3, consts: [["type", "button", "class", "chatbot-fab", "aria-label", "Open chat", "title", "Chat with us", 3, "click", 4, "ngIf"], ["class", "important-message-overlay", 4, "ngIf"], ["class", "chat-popup", 3, "expanded", 4, "ngIf"], ["type", "button", "aria-label", "Open chat", "title", "Chat with us", 1, "chatbot-fab", 3, "click"], ["src", "assets/icon/amelia-new-icon.png", "alt", "Amelia", 1, "chatbot-fab-icon"], [1, "important-message-overlay"], [1, "important-message-modal"], ["type", "button", "aria-label", "Close", 1, "important-message-close", 3, "click"], [4, "ngIf"], [1, "important-message-actions"], ["type", "button", 3, "click"], [1, "chat-popup"], [1, "chat-top-actions"], ["type", "button", "title", "Expand", 1, "top-action-btn", 3, "click"], ["type", "button", "title", "Minimize", "aria-label", "Minimize", 1, "top-action-btn", 3, "click"], ["type", "button", "title", "Close", "aria-label", "Close", 1, "top-action-btn", 3, "click"], [1, "chat-popup-header"], [1, "icon-label"], ["src", "assets/icon/amelia-new-icon.png", "alt", "Amelia", 1, "amelia-header-icon"], [1, "text-block"], [1, "label-text"], [1, "status-wrapper"], [1, "status-dot"], [1, "status"], [1, "chat-popup-actions"], ["type", "button", "aria-label", "Info", 1, "action-btn", "info-btn", 3, "title", "mouseenter", "click"], ["type", "button", "title", "Refresh", "aria-label", "Refresh", 1, "action-btn", 3, "click"], [1, "chat-body"], ["role", "log", "aria-live", "polite", 1, "chat-window"], ["chatWindow", ""], [3, "ngClass", 4, "ngFor", "ngForOf"], [1, "input-row"], [1, "chat-input-wrapper"], ["placeholder", "Type your message...", "rows", "1", 1, "chat-input", 3, "ngModel", "disabled", "ngModelChange", "input", "keydown.enter"], ["messageInput", ""], [1, "send-btn", 3, "disabled", "click"], [3, "ngClass"], [1, "bubble"], ["class", "amelia-message-icon", "src", "assets/icon/amelia-new-icon.png", "alt", "Amelia", 4, "ngIf"], [4, "ngIf", "ngIfElse"], ["
|
|
37221
|
+
} }, inputs: { clientFilter: "clientFilter" }, decls: 3, vars: 3, consts: [["type", "button", "class", "chatbot-fab", "aria-label", "Open chat", "title", "Chat with us", 3, "click", 4, "ngIf"], ["class", "important-message-overlay", 4, "ngIf"], ["class", "chat-popup", 3, "expanded", 4, "ngIf"], ["type", "button", "aria-label", "Open chat", "title", "Chat with us", 1, "chatbot-fab", 3, "click"], ["src", "assets/icon/amelia-new-icon.png", "alt", "Amelia", 1, "chatbot-fab-icon"], [1, "important-message-overlay"], [1, "important-message-modal"], ["type", "button", "aria-label", "Close", 1, "important-message-close", 3, "click"], [4, "ngIf"], [1, "important-message-actions"], ["type", "button", 3, "click"], [1, "chat-popup"], [1, "chat-top-actions"], ["type", "button", "title", "Expand", 1, "top-action-btn", 3, "click"], ["type", "button", "title", "Minimize", "aria-label", "Minimize", 1, "top-action-btn", 3, "click"], ["type", "button", "title", "Close", "aria-label", "Close", 1, "top-action-btn", 3, "click"], [1, "chat-popup-header"], [1, "icon-label"], ["src", "assets/icon/amelia-new-icon.png", "alt", "Amelia", 1, "amelia-header-icon"], [1, "text-block"], [1, "label-text"], [1, "status-wrapper"], [1, "status-dot"], [1, "status"], [1, "chat-popup-actions"], ["type", "button", "aria-label", "Info", 1, "action-btn", "info-btn", 3, "title", "mouseenter", "click"], ["type", "button", "title", "Refresh", "aria-label", "Refresh", 1, "action-btn", 3, "click"], [1, "chat-body"], ["role", "log", "aria-live", "polite", 1, "chat-window"], ["chatWindow", ""], [3, "ngClass", 4, "ngFor", "ngForOf"], [1, "input-row"], [1, "chat-input-wrapper"], ["placeholder", "Type your message...", "rows", "1", 1, "chat-input", 3, "ngModel", "disabled", "ngModelChange", "input", "keydown.enter"], ["messageInput", ""], [1, "send-btn", 3, "disabled", "click"], [3, "ngClass"], [1, "message-wrapper"], [1, "bubble"], ["class", "amelia-message-icon", "src", "assets/icon/amelia-new-icon.png", "alt", "Amelia", 4, "ngIf"], [1, "bubble-content"], [4, "ngIf", "ngIfElse"], ["normalMessage", ""], [1, "message-meta"], ["class", "feedback", 4, "ngIf"], [3, "ngClass", 4, "ngIf"], ["src", "assets/icon/amelia-new-icon.png", "alt", "Amelia", 1, "amelia-message-icon"], [1, "formatted-text"], [1, "star-group", 3, "mouseleave"], ["type", "button", "class", "star", 3, "filled", "title", "mouseenter", "click", 4, "ngFor", "ngForOf"], ["type", "button", 1, "star", 3, "title", "mouseenter", "click"], [4, "ngFor", "ngForOf"], ["class", "yn-group", 4, "ngIf"], ["class", "message-links", 4, "ngIf"], [1, "yn-group"], [1, "yn-btn", "yes", 3, "click"], [1, "yn-btn", "no", 3, "click"], [1, "message-links"], ["class", "yn-btn yes", "type", "button", 3, "click", 4, "ngIf", "ngIfOf"], ["type", "button", 1, "yn-btn", "yes", 3, "click"], [1, "feedback"], ["aria-label", "Thumbs up", "title", "Thumbs up", 1, "fb-btn", "up", 3, "click"], ["aria-label", "Thumbs down", "title", "Thumbs down", 1, "fb-btn", "down", 3, "click"]], template: function ChatbotLexComponent_Template(rf, ctx) { if (rf & 1) {
|
|
37099
37222
|
i0.ɵɵtemplate(0, ChatbotLexComponent_button_0_Template, 2, 0, "button", 0)(1, ChatbotLexComponent_div_1_Template, 11, 2, "div", 1)(2, ChatbotLexComponent_div_2_Template, 34, 17, "div", 2);
|
|
37100
37223
|
} if (rf & 2) {
|
|
37101
37224
|
i0.ɵɵproperty("ngIf", !ctx.chatOpen);
|
|
@@ -37103,11 +37226,11 @@ class ChatbotLexComponent {
|
|
|
37103
37226
|
i0.ɵɵproperty("ngIf", ctx.showImportantMessage);
|
|
37104
37227
|
i0.ɵɵadvance(1);
|
|
37105
37228
|
i0.ɵɵproperty("ngIf", ctx.chatOpen);
|
|
37106
|
-
} }, 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:100%!important}.chat-popup.expanded[_ngcontent-%COMP%] .bot[_ngcontent-%COMP%] .message-wrapper[_ngcontent-%COMP%]{width:100%!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.expanded[_ngcontent-%COMP%] .bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.yn-group){grid-template-columns:24px 260px!important;width:-moz-fit-content!important;width:fit-content!important;max-width:100%!important}.chat-popup-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;background:var(--ion-color-primary)!important;color:#fff;padding:4px 12px;font-weight:600;flex-shrink:0}.icon-label[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px}.text-block[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column;line-height:1.1}.label-text[_ngcontent-%COMP%]{font-size:15px;font-weight:600}.status[_ngcontent-%COMP%]{font-size:11px;margin-top:2px;text-transform:lowercase;opacity:.95}.status.online-text[_ngcontent-%COMP%]{color:#b9f6ca}.status.offline-text[_ngcontent-%COMP%]{color:#ffcdd2}.chat-popup-actions[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px}.info-btn[_ngcontent-%COMP%], .info-btn[_ngcontent-%COMP%]:hover, .info-btn[_ngcontent-%COMP%]:focus, .info-btn[_ngcontent-%COMP%]:active{background:transparent;border:none;box-shadow:none;outline:none}.action-btn[_ngcontent-%COMP%]{background:transparent;color:#fff;border:none;font-size:16px;cursor:pointer;width:28px;height:28px;line-height:1;padding:0;border-radius:4px}.action-btn[_ngcontent-%COMP%]:hover{background:#ffffff26}.chat-body[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;overflow:hidden;min-height:0}.chat-window[_ngcontent-%COMP%]{padding:12px;flex:1;overflow-y:auto;background:#f6f8fb;min-height:0;width:100%;box-sizing:border-box}.user[_ngcontent-%COMP%], .bot[_ngcontent-%COMP%]{margin:8px 0;display:flex;width:100%;min-width:0;box-sizing:border-box}.user[_ngcontent-%COMP%]{justify-content:flex-end}.bot[_ngcontent-%COMP%]{justify-content:flex-start}.bot[_ngcontent-%COMP%], .user[_ngcontent-%COMP%]{width:100%;min-width:0;box-sizing:border-box;display:flex}.bubble[_ngcontent-%COMP%]{display:inline-block;padding:8px 12px;border-radius:14px;font-size:14px;line-height:1.3;word-wrap:break-word;position:relative}.user[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{background:#e8eaf6;color:#000;border-bottom-right-radius:4px;margin-left:auto;display:flex;justify-content:flex-end;align-self:flex-end}.chat-window[_ngcontent-%COMP%] .bot[_ngcontent-%COMP%]:first-of-type .bubble[_ngcontent-%COMP%] .feedback[_ngcontent-%COMP%]{display:none!important}.fb-btn[_ngcontent-%COMP%]{appearance:none;border:none;background:transparent;cursor:pointer;font-size:13px;line-height:1;padding:2px 4px;border-radius:4px;opacity:.9}.fb-btn[_ngcontent-%COMP%]:hover{background:#00bcd414}.fb-btn.up[_ngcontent-%COMP%]{color:#16a34a}.fb-btn.down[_ngcontent-%COMP%]{color:#dc2626}.yn-group[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;margin-top:10px}.yn-btn[_ngcontent-%COMP%]{appearance:none;border:1px solid #cfd8e3;background:#fff;color:#111827;font-size:12px;padding:4px 8px;border-radius:999px;cursor:pointer;margin-right:6px}.yn-btn[_ngcontent-%COMP%]:hover{background:#f3f4f6}.yn-btn.yes[_ngcontent-%COMP%]{border-color:#16a34a33}.yn-btn.no[_ngcontent-%COMP%]{border-color:#dc262633}.star-group[_ngcontent-%COMP%]{display:inline-flex;gap:6px;align-items:center;vertical-align:middle;margin-left:2px;margin-top:2px}.star-group[_ngcontent-%COMP%] .star[_ngcontent-%COMP%]{appearance:none;border:none;background:transparent;cursor:pointer;font-size:18px;line-height:1;color:#444547;padding:0 1px;transition:transform .08s ease,color .08s ease}.star-group[_ngcontent-%COMP%] .star.filled[_ngcontent-%COMP%]{color:#f59e0b}.star-group[_ngcontent-%COMP%] .star[_ngcontent-%COMP%]:hover{transform:scale(1.08)}.input-row[_ngcontent-%COMP%]{display:flex;gap:8px;padding:10px;background:#fff;border-top:1px solid #e6e9ee;align-items:flex-end;flex-shrink:0}.chat-input-wrapper[_ngcontent-%COMP%]{flex:1;border-radius:8px;border:1px solid #d1d5db;overflow:hidden;background:#fff;display:flex}.chat-input[_ngcontent-%COMP%]{width:100%;resize:none;border:none;outline:none;padding:8px 10px;font-size:14px;line-height:1.2;min-height:20px;max-height:100px;overflow-y:auto;box-sizing:border-box;background:transparent}.chat-input[_ngcontent-%COMP%]:focus{outline:none;box-shadow:none}.send-btn[_ngcontent-%COMP%]{height:36px;align-self:flex-end;padding:0 14px;background:var(--ion-color-primary)!important;color:#fff!important;border:none;border-radius:8px;cursor:pointer;white-space:nowrap;font-size:14px}.send-btn[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.icon-label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.amelia-header-icon[_ngcontent-%COMP%]{width:56px;height:56px;border-radius:0;object-fit:contain;background:transparent;flex-shrink:0}.text-block[_ngcontent-%COMP%]{display:flex;flex-direction:column;line-height:1.1}.bubble.bot[_ngcontent-%COMP%], .bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%] .feedback-block[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;flex:1;min-width:0}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%] .feedback[_ngcontent-%COMP%]{position:absolute;right:0;bottom:-24px;display:inline-flex;gap:6px;align-items:center;width:auto;margin:0}.feedback-message[_ngcontent-%COMP%]{width:100%;display:block;white-space:normal;overflow-wrap:anywhere}.feedback-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;width:100%;justify-content:flex-start}.feedback-actions[_ngcontent-%COMP%] .yn-btn[_ngcontent-%COMP%]{flex:0 0 auto}.bot[_ngcontent-%COMP%] .feedback[_ngcontent-%COMP%] .fb-btn[_ngcontent-%COMP%]{border:none;background:transparent;padding:2px;margin:0;cursor:pointer;flex:0 0 auto}.bubble-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;flex:0 1 auto;width:auto;max-width:100%;min-width:0;overflow:hidden;box-sizing:border-box}.formatted-text[_ngcontent-%COMP%]{display:block;white-space:normal;overflow-wrap:anywhere;word-break:break-word;box-sizing:border-box}.feedback[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-top:8px;width:100%}.amelia-message-icon[_ngcontent-%COMP%]{width:28px;height:28px;border-radius:50%;object-fit:cover;background:#fff;flex-shrink:0;flex:0 0 auto}.chat-popup.expanded[_ngcontent-%COMP%]{width:650px!important;height:86vh!important;position:fixed!important;bottom:16px!important;right:40px!important;left:auto!important;max-width:650px!important;max-height:calc(100vh - 80px)!important;border-radius:8px!important;display:flex!important;flex-direction:column!important;visibility:visible!important;opacity:1!important;z-index:9999!important}.chat-popup.expanded[_ngcontent-%COMP%] .chat-body[_ngcontent-%COMP%]{width:100%!important;align-self:stretch!important}.chat-popup.expanded[_ngcontent-%COMP%] .short-welcome[_ngcontent-%COMP%]{width:-moz-fit-content!important;width:fit-content!important;max-width:100%!important;min-width:0!important;flex:0 0 auto!important}.chat-popup.expanded[_ngcontent-%COMP%] .bot[_ngcontent-%COMP%]:has(.short-welcome) .bubble[_ngcontent-%COMP%]{width:-moz-fit-content!important;width:fit-content!important;max-width:none!important;overflow:visible!important;box-sizing:border-box!important}.chat-popup.expanded[_ngcontent-%COMP%] .short-welcome[_ngcontent-%COMP%] .bubble-content[_ngcontent-%COMP%]{width:auto!important;max-width:100%!important;min-width:0!important;flex:0 1 auto!important}.bot[_ngcontent-%COMP%] .formatted-text[_ngcontent-%COMP%]{white-space:normal;overflow-wrap:anywhere;word-break:break-word;display:block;width:auto;max-width:100%;min-width:0}.chat-popup.expanded[_ngcontent-%COMP%] .short-welcome[_ngcontent-%COMP%] .formatted-text[_ngcontent-%COMP%]{display:inline-block!important;width:auto!important;max-width:100%!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}.chat-top-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex=end;align-items:center;gap:6px;padding:4px 8px;background:transparent;flex-shrink:0;position:absolute;top:-1px;right:0!important;width:auto!important;z-index:10000;position:absolute!important}.top-action-btn[_ngcontent-%COMP%]{border:none;background:transparent!important;color:#000!important;font-size:16px;font-weight:700;line-height:22px;cursor:pointer;padding:0;border-radius:none!important;width:24px;height:24px;text-align:center}.top-action-btn[_ngcontent-%COMP%]:hover{background:#eee;border-radius:4px}.top-action-btn[_ngcontent-%COMP%] .pi[_ngcontent-%COMP%]{font-size:16px}.chat-top-actions.top-action-btn[_ngcontent-%COMP%]{color:#000!important;background:transparent!important;border:none!important;font-size:16px;font-weight:700;cursor:pointer;width:24px;height:24px;line-height:24px;padding:0;border-radius:5px 0 0}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.star-group){display:grid!important;grid-template-columns:32px max-content!important;grid-template-rows:auto auto!important;column-gap:8px!important;row-gap:6px!important;align-items:start!important;padding:12px!important;box-sizing:border-box!important;overflow:visible!important;width:300px!important;min-width:0!important;max-width:calc(100% - 24px)!important}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.star-group) .amelia-message-icon[_ngcontent-%COMP%]{grid-column:1!important;grid-row:1 / span 2!important;margin-top:0!important}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.star-group) > div[_ngcontent-%COMP%]:first-of-type{grid-column:2!important;grid-row:1!important;white-space:nowrap!important;min-width:0}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.star-group) .star-group[_ngcontent-%COMP%]{grid-column:2!important;grid-row:2!important;display:flex!important;flex-direction:row!important;gap:8px!important;margin:0!important;padding:0!important;position:static!important;inset:auto!important}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.yn-group){display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;grid-template-rows:auto auto!important;column-gap:8px!important;row-gap:8px!important;align-items:start!important;width:-moz-fit-content!important;width:fit-content!important;max-width:100%!important;min-width:0!important;padding:10px!important;box-sizing:border-box!important;overflow:hidden!important}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.yn-group) .amelia-message-icon[_ngcontent-%COMP%]{grid-column:1!important;grid-row:1 / span 2!important}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.yn-group) .formatted-text[_ngcontent-%COMP%]{display:block!important;width:auto!important;max-width:100%!important;min-width:0!important;grid-column:2!important;grid-row:1!important;white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]:has(.yn-group) .yn-group[_ngcontent-%COMP%]{grid-column:2!important;grid-row:2!important;display:flex!important;flex-direction:row!important;gap:6px!important;margin:10px 0 0!important;padding:0!important;position:static!important}.message-time[_ngcontent-%COMP%]{font-size:11px;color:#6b7280;margin-top:3px;padding:0 6px;text-align:right;white-space:nowrap}.message-time-bot[_ngcontent-%COMP%]{font-size:11px;color:#6b7280;margin-left:10px;padding:0 6px;margin-right:auto;white-space:nowrap}.message-wrapper[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column;width:max-content;max-width:78%}.bot[_ngcontent-%COMP%] .message-wrapper[_ngcontent-%COMP%]{align-items:flex-start}.user[_ngcontent-%COMP%] .message-wrapper[_ngcontent-%COMP%]{align-items:flex-end;margin-left:auto}.bot[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;width:-moz-fit-content;width:fit-content;max-width:85%;min-width:0}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{background:#fff;color:#111827;border:1px solid #e6e9ee;border-bottom-left-radius:4px;margin-bottom:30px;margin-right:auto;display:inline-flex;align-items:flex-start;width:-moz-fit-content!important;width:fit-content!important;max-width:100%!important;min-width:0;box-sizing:border-box;overflow:visible!important;position:relative}.bot[_ngcontent-%COMP%] .bubble-content[_ngcontent-%COMP%]{min-width:0;width:auto;max-width:100%;box-sizing:border-box;display:block;overflow-wrap:anywhere;word-break:break-word}.bot[_ngcontent-%COMP%] .message-time-bot[_ngcontent-%COMP%]{width:0;min-width:0;white-space:nowrap;overflow:visible;align-self:flex-start;text-align:left;margin-top:-26px;margin-left:0}.user[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end;width:100%;min-width:0}.user[_ngcontent-%COMP%] .bubble-content[_ngcontent-%COMP%]{width:auto;min-width:0;max-width:280px;width:max-content;text-align:left;white-space:normal;display:inline-block;overflow-wrap:break-word;box-sizing:border-box;word-break:normal}.user[_ngcontent-%COMP%] .formatted-text[_ngcontent-%COMP%]{white-space:normal;word-break:normal;overflow-wrap:break-word;max-width:100%}.status-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px}.status-dot[_ngcontent-%COMP%]{width:7px;height:7px;border-radius:50%;background-color:#2ecc71!important;flex-shrink:0}.status-dot.offline[_ngcontent-%COMP%]{background:#9e9e9e!important}.online-text[_ngcontent-%COMP%], .offline-text[_ngcontent-%COMP%]{text-transform:none!important}.important-message-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;min-height:auto;height:auto;padding:20px;background-color:transparent}.important-message-modal[_ngcontent-%COMP%]{position:relative;width:720px;max-width:calc(100vw - 80px);min-height:auto;height:auto;padding:28px 32px 24px;overflow:visible;box-sizing:border-box;background:var(--ion-color-primary);color:#fff;border-radius:2px;text-align:left;pointer-events:auto}.important-message-modal[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 45px 15px 0;font-size:34px;font-weight:400;line-height:1.25}.important-message-modal[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:17px;line-height:1.25;position:relative;overflow-wrap:break-word}.important-message-close[_ngcontent-%COMP%]{position:absolute!important;top:10px!important;right:12px!important;z-index:100!important;display:flex!important;align-items:center;justify-content:center;width:40px;height:40px;padding:0!important;margin:0!important;border:none!important;background:transparent!important;color:#fff!important;font-size:32px!important;line-height:1!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;cursor:pointer}.important-message-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:25px}.important-message-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:10px 25px;border:1px solid #ccc;border-radius:4px;background:#f5f5f5;color:#164d71;font-size:18px;font-style:normal;cursor:pointer}.important-message-modal[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .important-message-modal[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:left}@media (max-width: 480px){.chat-popup[_ngcontent-%COMP%]{width:calc(100vw - 16px);right:8px;bottom:8px;height:70vh}.bubble[_ngcontent-%COMP%]{max-width:90%;font-size:13px}}"] }); }
|
|
37229
|
+
} }, dependencies: [i1$4.NgClass, i1$4.NgForOf, i1$4.NgIf, i1$6.DefaultValueAccessor, i1$6.NgControlStatus, i1$6.NgModel, i1$4.DatePipe], styles: [".chatbot-fab[_ngcontent-%COMP%]{position:fixed;bottom:20px;right:20px;width:56px;height:56px;border-radius:50%;background:transparent;color:#fff;border:none;font-size:24px;cursor:pointer;box-shadow:none;z-index:9998;display:flex;align-items:center;justify-content:center;overflow:visible}.chatbot-fab[_ngcontent-%COMP%]:hover{background:#00a5bb}.chatbot-fab-icon[_ngcontent-%COMP%]{width:70px;height:70px;object-fit:contain;border-radius:0;background:transparent;display:block}.chat-popup[_ngcontent-%COMP%]{position:fixed;bottom:20px;right:20px;width:380px;height:520px;max-height:80vh;display:flex;flex-direction:column;background:#fff;border:1px solid #e6e9ee;border-radius:12px;box-shadow:0 12px 24px #0000001f;overflow:visible!important;z-index:9999;padding-top:30px;overflow:visible}.chat-popup-header[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:36px;height:36px;min-width:36px;max-width:36px;border-radius:50%;object-fit:cover}.chat-popup-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;background:var(--ion-color-primary)!important;color:#fff;padding:4px 12px;font-weight:600;flex-shrink:0}.icon-label[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px}.text-block[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column;line-height:1.1}.label-text[_ngcontent-%COMP%]{font-size:15px;font-weight:600}.status[_ngcontent-%COMP%]{font-size:11px;margin-top:2px;text-transform:lowercase;opacity:.95}.status.online-text[_ngcontent-%COMP%]{color:#b9f6ca}.status.offline-text[_ngcontent-%COMP%]{color:#ffcdd2}.chat-popup-actions[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px}.info-btn[_ngcontent-%COMP%], .info-btn[_ngcontent-%COMP%]:hover, .info-btn[_ngcontent-%COMP%]:focus, .info-btn[_ngcontent-%COMP%]:active{background:transparent;border:none;box-shadow:none;outline:none}.action-btn[_ngcontent-%COMP%]{background:transparent;color:#fff;border:none;font-size:16px;cursor:pointer;width:28px;height:28px;line-height:1;padding:0;border-radius:4px}.action-btn[_ngcontent-%COMP%]:hover{background:#ffffff26}.chat-body[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;overflow:hidden;min-height:0}.chat-window[_ngcontent-%COMP%]{padding:12px;flex:1;overflow-y:auto;background:#f6f8fb;min-height:0;width:100%;box-sizing:border-box}.yn-btn[_ngcontent-%COMP%]{appearance:none;border:1px solid #cfd8e3;background:#fff;color:#111827;font-size:12px;padding:4px 8px;border-radius:999px;cursor:pointer;margin-right:6px}.yn-btn[_ngcontent-%COMP%]:hover{background:#f3f4f6}.yn-btn.yes[_ngcontent-%COMP%]{border-color:#16a34a33}.yn-btn.no[_ngcontent-%COMP%]{border-color:#dc262633}.input-row[_ngcontent-%COMP%]{display:flex;gap:8px;padding:10px;background:#fff;border-top:1px solid #e6e9ee;align-items:flex-end;flex-shrink:0}.chat-input-wrapper[_ngcontent-%COMP%]{flex:1;border-radius:8px;border:1px solid #d1d5db;overflow:hidden;background:#fff;display:flex}.chat-input[_ngcontent-%COMP%]{width:100%;resize:none;border:none;outline:none;padding:8px 10px;font-size:14px;line-height:1.2;min-height:20px;max-height:100px;overflow-y:auto;box-sizing:border-box;background:transparent}.chat-input[_ngcontent-%COMP%]:focus{outline:none;box-shadow:none}.send-btn[_ngcontent-%COMP%]{height:36px;align-self:flex-end;padding:0 14px;background:var(--ion-color-primary)!important;color:#fff!important;border:none;border-radius:8px;cursor:pointer;white-space:nowrap;font-size:14px}.send-btn[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.amelia-header-icon[_ngcontent-%COMP%]{width:56px;height:56px;border-radius:0;object-fit:contain;background:transparent;flex-shrink:0}.chat-popup.expanded[_ngcontent-%COMP%]{width:650px!important;height:86vh!important;position:fixed!important;bottom:16px!important;right:40px!important;left:auto!important;max-width:650px!important;max-height:calc(100vh - 80px)!important;border-radius:8px!important;display:flex!important;flex-direction:column!important;visibility:visible!important;opacity:1!important;z-index:9999!important}.chat-popup.expanded[_ngcontent-%COMP%] .chat-body[_ngcontent-%COMP%]{width:100%!important;align-self:stretch!important}.chat-top-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex=end;align-items:center;gap:6px;padding:4px 8px;background:transparent;flex-shrink:0;position:absolute;top:-1px;right:0!important;width:auto!important;z-index:10000;position:absolute!important}.top-action-btn[_ngcontent-%COMP%]{border:none;background:transparent!important;color:#000!important;font-size:16px;font-weight:700;line-height:22px;cursor:pointer;padding:0;border-radius:none!important;width:24px;height:24px;text-align:center}.top-action-btn[_ngcontent-%COMP%]:hover{background:#eee;border-radius:4px}.top-action-btn[_ngcontent-%COMP%] .pi[_ngcontent-%COMP%]{font-size:16px}.status-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px}.status-dot[_ngcontent-%COMP%]{width:7px;height:7px;border-radius:50%;background-color:#2ecc71!important;flex-shrink:0}.status-dot.offline[_ngcontent-%COMP%]{background:#9e9e9e!important}.online-text[_ngcontent-%COMP%], .offline-text[_ngcontent-%COMP%]{text-transform:none!important}.important-message-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;min-height:auto;height:auto;padding:20px;background-color:transparent}.important-message-modal[_ngcontent-%COMP%]{position:relative;width:720px;max-width:calc(100vw - 80px);min-height:auto;height:auto;padding:28px 32px 24px;overflow:visible;box-sizing:border-box;background:var(--ion-color-primary);color:#fff;border-radius:2px;text-align:left;pointer-events:auto}.important-message-modal[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 45px 15px 0;font-size:34px;font-weight:400;line-height:1.25}.important-message-modal[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:17px;line-height:1.25;position:relative;overflow-wrap:break-word}.important-message-close[_ngcontent-%COMP%]{position:absolute!important;top:10px!important;right:12px!important;z-index:100!important;display:flex!important;align-items:center;justify-content:center;width:40px;height:40px;padding:0!important;margin:0!important;border:none!important;background:transparent!important;color:#fff!important;font-size:32px!important;line-height:1!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;cursor:pointer}.important-message-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:25px}.important-message-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:10px 25px;border:1px solid #ccc;border-radius:4px;background:#f5f5f5;color:#164d71;font-size:18px;font-style:normal;cursor:pointer}.important-message-modal[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .important-message-modal[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:left}@media (max-width: 480px){.chat-popup[_ngcontent-%COMP%]{width:calc(100vw - 16px);right:8px;bottom:8px;height:70vh}.bubble[_ngcontent-%COMP%]{max-width:90%;font-size:13px}}.bot[_ngcontent-%COMP%], .user[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;min-width:0;margin:8px 0;box-sizing:border-box}.bot[_ngcontent-%COMP%]{align-items:flex-start}.user[_ngcontent-%COMP%]{align-items:flex-end}.message-wrapper[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column;width:auto;max-width:78%;min-width:0}.bot[_ngcontent-%COMP%] .message-wrapper[_ngcontent-%COMP%], .user[_ngcontent-%COMP%] .message-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:auto!important;max-width:75%!important;min-width:0!important}.bot[_ngcontent-%COMP%] .message-wrapper[_ngcontent-%COMP%]{align-items:flex-start}.user[_ngcontent-%COMP%] .message-wrapper[_ngcontent-%COMP%]{align-items:flex-end}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%], .user[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{position:relative;display:flex;align-items:flex-start;width:auto!important;max-width:100%!important;box-sizing:border-box;padding:8px 12px;font-size:14px;line-height:1.3;border-radius:14px;margin-bottom:0!important}.bot[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{background:#fff;color:#111827;border:1px solid #e6e9ee;border-top-left-radius:4px;gap:8px}.user[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{background:#e8eef6;color:#000;border-top-right-radius:4px;margin-left:0!important}.bot[_ngcontent-%COMP%] .bubble-content[_ngcontent-%COMP%], .user[_ngcontent-%COMP%] .bubble-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;width:auto!important;max-width:100%!important;min-width:0!important;box-sizing:border-box;overflow:visible}.bot[_ngcontent-%COMP%] .formatted-text[_ngcontent-%COMP%], .user[_ngcontent-%COMP%] .formatted-text[_ngcontent-%COMP%]{display:block;width:auto!important;max-width:100% important;min-width:0;white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important;box-sizing:border-box}.amelia-message-icon[_ngcontent-%COMP%]{width:28px;height:28px;flex:0 0 28px;object-fit:cover;border-radius:50%}.message-time[_ngcontent-%COMP%], .message-time-bot[_ngcontent-%COMP%]{margin:0;padding:0;font-size:11px;color:#6b7280;white-space:nowrap}.message-time-bot[_ngcontent-%COMP%]{order:1;margin:0;padding:0;text-align:left;white-space:nowrap}.user[_ngcontent-%COMP%] .message-time[_ngcontent-%COMP%]{text-align:right}.yn-group[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-top:10px}.yn-btn[_ngcontent-%COMP%]{flex:0 0 auto}.star-group[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-top:8px;padding:0}.star-group[_ngcontent-%COMP%] .star[_ngcontent-%COMP%]{appearance:none;border:none;background:transparent;cursor:pointer;font-size:18px;line-height:1;padding:0 1px;color:#000;transition:transform .08s ease}.star-group[_ngcontent-%COMP%] .star.filled[_ngcontent-%COMP%]{color:#f59e0b}.star-group[_ngcontent-%COMP%] .sta[_ngcontent-%COMP%]:hover{transform:scale(1.08)}.feedback[_ngcontent-%COMP%]{order:2;display:flex;align-items:center;justify-content:flex-end;gap:6px;width:auto;padding:0;margin:0 0 0 auto}.fb-btn[_ngcontent-%COMP%]{appearance:none;border:none;background:transparent;cursor:pointer;font-size:13px;line-height:1;padding:2px 3px;margin:0}.fb-btn[_ngcontent-%COMP%]:hover{background:#00bcd414}.message-meta[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:3px}.user[_ngcontent-%COMP%] .message-meta[_ngcontent-%COMP%]{justify-content:flex-end}"] }); }
|
|
37107
37230
|
}
|
|
37108
37231
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ChatbotLexComponent, [{
|
|
37109
37232
|
type: Component,
|
|
37110
|
-
args: [{ selector: 'app-chatbot-lex', template: "\r\n\r\n\r\n<!-- Floating chat toggle button -->\r\n<button\r\n type=\"button\"\r\n class=\"chatbot-fab\"\r\n (click)=\"handleCloudClick()\"\r\n *ngIf=\"!chatOpen\"\r\n aria-label=\"Open chat\"\r\n title=\"Chat with us\">\r\n <img\r\n class=\"chatbot-fab-icon\"\r\n src=\"assets/icon/amelia-new-icon.png\"\r\n alt=\"Amelia\"\r\n />\r\n</button>\r\n\r\n<!-- Important Message Popup for cloud-button flow -->\r\n\r\n<div class=\"important-message-overlay\" \r\n *ngIf=\"showImportantMessage\">\r\n <div class=\"important-message-modal\">\r\n <button\r\n type=\"button\"\r\n class=\"important-message-close\"\r\n aria-label=\"Close\"\r\n (click)=\"closeImportantMessage()\">\r\n ×\r\n </button>\r\n\r\n <h2>Important Message</h2>\r\n <ng-container *ngIf=\"importantMessageType === 'claimant'\">\r\n <p>\r\n KDOL's virtual assistant may ask you to log in to answer questions about your personal account. For certain services, such as reporting fraud, you may be asked to provide identifying information, including the last four digits of your Social Security Number (SSN) and your date of birth. KDOL follows strict federal security guidelines to protect your sensitive information. To further safeguard your information, close the chat window and browser when finished.\r\n </p>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"importantMessageType === 'employer'\">\r\n <p>\r\n KDOL's virtual assistant may ask you to log in to answer questions about your business account. For certain services, such as reporting fraud, you may be asked to provide identifying information, including your Federal Employer Identification Number (FEIN) or the last four digits of your Social Security Number (SSN), along with other account verification details. KDOL follows strict federal security guidelines to protect your sensitive information. To further safeguard your information, close the chat window and browser when finished.\r\n </p>\r\n </ng-container>\r\n \r\n <div class=\"important-message-actions\">\r\n <button type=\"button\" (click)=\"continueToAmelia()\">\r\n Continue\r\n </button>\r\n </div>\r\n \r\n </div>\r\n</div>\r\n\r\n<!-- Chat popup -->\r\n<div class=\"chat-popup\" *ngIf=\"chatOpen\" [class.expanded]=\"isExpanded\">\r\n <div class=\"chat-top-actions\">\r\n <button\r\n class=\"top-action-btn\"\r\n type=\"button\"\r\n (click)=\"toggleExpand()\"\r\n title=\"Expand\">\r\n <span *ngIf=\"!isExpanded\">\u26F6</span>\r\n </button>\r\n <button \r\n class=\"top-action-btn\" \r\n type=\"button\" \r\n (click)=\"minimizeChat()\" \r\n title=\"Minimize\" \r\n aria-label=\"Minimize\">\r\n _\r\n </button> \r\n <button \r\n class=\"top-action-btn\" \r\n type=\"button\" \r\n (click)=\"closeChat()\" \r\n title=\"Close\" \r\n aria-label=\"Close\">\r\n \u2715\r\n </button>\r\n \r\n </div>\r\n <div class=\"chat-popup-header\">\r\n <span class=\"icon-label\">\r\n <img\r\n class=\"amelia-header-icon\"\r\n src=\"assets/icon/amelia-new-icon.png\"\r\n alt=\"Amelia\"/>\r\n <span class=\"text-block\">\r\n <span class=\"label-text\">Amelia</span>\r\n <span class=\"status-wrapper\">\r\n\r\n <span\r\n class=\"status-dot\"\r\n [class.offline]=\"botOffline\">\r\n </span>\r\n \r\n <span\r\n class=\"status\"\r\n [class.online-text]=\"!botOffline\"\r\n [class.offline-text]=\"botOffline\">\r\n {{ botOffline ? 'Offline' : 'Online' }}\r\n </span>\r\n </span>\r\n </span>\r\n </span>\r\n\r\n <div class=\"chat-popup-actions\">\r\n\r\n <button class=\"action-btn info-btn\"\r\n type=\"button\"\r\n (mouseenter)=\"getSessionID()\"\r\n title={{sessionId}}\r\n aria-label=\"Info\"\r\n (click)=\"copySessionId()\"\r\n [style.visibility]=\"infoVisible ? 'visible' : 'hidden'\">\r\n \uD83D\uDEC8\r\n </button>\r\n \r\n <button \r\n class=\"action-btn\" \r\n type=\"button\" \r\n (click)=\"refreshChat()\" \r\n title=\"Refresh\" \r\n aria-label=\"Refresh\">\r\n \u27F3\r\n </button>\r\n \r\n </div>\r\n </div>\r\n\r\n <div class=\"chat-body\">\r\n <div class=\"chat-window\" #chatWindow role=\"log\" aria-live=\"polite\">\r\n <div *ngFor=\"let msg of messages; let i = index\" [ngClass]=\"msg.from\">\r\n <div class=\"bubble\">\r\n <img\r\n *ngIf=\"msg.from === 'bot'\"\r\n class=\"amelia-message-icon\"\r\n src=\"assets/icon/amelia-new-icon.png\"\r\n alt=\"Amelia\"/>\r\n <!-- Star rating prompt -->\r\n <ng-container *ngIf=\"msg.from === 'bot' && isStarRatingPrompt(msg.text, i); else normalBubble\">\r\n <div>Your feedback matters to us</div>\r\n <div class=\"star-group\" (mouseleave)=\"onStarLeave(i)\">\r\n <button\r\n *ngFor=\"let s of getStars()\"\r\n type=\"button\"\r\n class=\"star\"\r\n [class.filled]=\"isStarFilled(i, s)\"\r\n (mouseenter)=\"onStarEnter(i, s)\"\r\n (click)=\"onStarClick(s, i)\"\r\n [attr.aria-label]=\"'Rate ' + s + ' star(s)'\"\r\n title=\"Rate {{s}} star(s)\">\r\n \u2605\r\n </button>\r\n </div>\r\n </ng-container>\r\n\r\n <!-- Normal bubble -->\r\n <ng-template #normalBubble>\r\n <div class=\"message-wrapper\"\r\n [class.short-welcome]=\"\r\n msg.from === 'bot' &&\r\n msg.text === 'Hi! How may I help you?'\r\n \"\r\n >\r\n <div class=\"bubble-content\">\r\n <span class=\"formatted-text\">\r\n <ng-container *ngFor=\"let line of displayLines(msg.text); let last = last\">\r\n {{ line }}\r\n <br *ngIf=\"!last\" >\r\n </ng-container>\r\n </span>\r\n \r\n \r\n\r\n <!-- Yes/No buttons -->\r\n <div class=\"yn-group\" *ngIf=\"msg.from === 'bot' && isYesNoPrompt(msg.text, i)\">\r\n <button class=\"yn-btn yes\" (click)=\"onYesNoClick('Yes', i)\">Yes</button>\r\n <button class=\"yn-btn no\" (click)=\"onYesNoClick('No', i)\">No</button>\r\n </div>\r\n\r\n \r\n \r\n\r\n <!-- Links -->\r\n <div *ngIf=\"msg.url && msg.url.length\">\r\n <div *ngFor=\"let url of msg.url\">\r\n <button *ngIf=\"msg.from === 'bot'\" class=\"yn-btn yes\" (click)=\"openLink(url)\">{{url}}</button>\r\n </div>\r\n </div>\r\n </div> <!--closes bubble content -->\r\n \r\n </div>\r\n </ng-template>\r\n \r\n <!-- Feedback thumbs -->\r\n <div\r\n class=\"feedback\"\r\n *ngIf=\"msg.from === 'bot'\r\n && msg.text?.trim() !='Hi! How may I help you?'\r\n && !isMessageRated(i)\r\n && i === messages.length - 1\r\n && !isAck\">\r\n \r\n <button class=\"fb-btn up\" (click)=\"sendFeedback('Thumbs up', i)\" aria-label=\"Thumbs up\" title=\"Thumbs up\">\uD83D\uDC4D</button>\r\n <button class=\"fb-btn down\" (click)=\"sendFeedback('Thumbs down', i)\" aria-label=\"Thumbs down\" title=\"Thumbs down\">\uD83D\uDC4E</button>\r\n </div>\r\n </div> <!--closes bubble --> \r\n <div\r\n *ngIf=\"msg.timestamp\"\r\n [ngClass]=\"msg.from === 'bot' ? 'message-time-bot' : 'message-time'\">\r\n {{msg.timestamp | date:\"EEE MMM dd yyyy 'at' hh:mm:ss a\"}}\r\n </div>\r\n \r\n \r\n \r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"input-row\">\r\n <div class=\"chat-input-wrapper\">\r\n <textarea\r\n #messageInput\r\n class=\"chat-input\"\r\n [(ngModel)]=\"userInput\"\r\n (input)=\"autoGrow()\"\r\n (keydown.enter)=\"$event.preventDefault(); handleEnter()\"\r\n [disabled]=\"sending || isDisabled\"\r\n placeholder=\"Type your message...\"\r\n rows=\"1\">\r\n </textarea>\r\n </div>\r\n <button\r\n class=\"send-btn\"\r\n (click)=\"sendMessage()\"\r\n [disabled]=\"sending || isDisabled\">\r\n Send\r\n </button>\r\n </div>\r\n</div>\r\n", styles: [".chatbot-fab{position:fixed;bottom:20px;right:20px;width:56px;height:56px;border-radius:50%;background:transparent;color:#fff;border:none;font-size:24px;cursor:pointer;box-shadow:none;z-index:9998;display:flex;align-items:center;justify-content:center;overflow:visible}.chatbot-fab:hover{background:#00a5bb}.chatbot-fab-icon{width:70px;height:70px;object-fit:contain;border-radius:0;background:transparent;display:block}.chat-popup{position:fixed;bottom:20px;right:20px;width:380px;height:520px;max-height:80vh;display:flex;flex-direction:column;background:#fff;border:1px solid #e6e9ee;border-radius:12px;box-shadow:0 12px 24px #0000001f;overflow:visible!important;z-index:9999;padding-top:30px;overflow:visible}.chat-popup-header img{width:36px;height:36px;min-width:36px;max-width:36px;border-radius:50%;object-fit:cover}.chat-popup:not(.expanded) .message-wrapper{max-width:100%!important}.chat-popup.expanded .bot .message-wrapper{width:100%!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.expanded .bot .bubble:has(.yn-group){grid-template-columns:24px 260px!important;width:-moz-fit-content!important;width:fit-content!important;max-width:100%!important}.chat-popup-header{display:flex;align-items:center;justify-content:space-between;background:var(--ion-color-primary)!important;color:#fff;padding:4px 12px;font-weight:600;flex-shrink:0}.icon-label{display:inline-flex;align-items:center;gap:8px}.text-block{display:inline-flex;flex-direction:column;line-height:1.1}.label-text{font-size:15px;font-weight:600}.status{font-size:11px;margin-top:2px;text-transform:lowercase;opacity:.95}.status.online-text{color:#b9f6ca}.status.offline-text{color:#ffcdd2}.chat-popup-actions{display:inline-flex;align-items:center;gap:6px}.info-btn,.info-btn:hover,.info-btn:focus,.info-btn:active{background:transparent;border:none;box-shadow:none;outline:none}.action-btn{background:transparent;color:#fff;border:none;font-size:16px;cursor:pointer;width:28px;height:28px;line-height:1;padding:0;border-radius:4px}.action-btn:hover{background:#ffffff26}.chat-body{flex:1;display:flex;flex-direction:column;overflow:hidden;min-height:0}.chat-window{padding:12px;flex:1;overflow-y:auto;background:#f6f8fb;min-height:0;width:100%;box-sizing:border-box}.user,.bot{margin:8px 0;display:flex;width:100%;min-width:0;box-sizing:border-box}.user{justify-content:flex-end}.bot{justify-content:flex-start}.bot,.user{width:100%;min-width:0;box-sizing:border-box;display:flex}.bubble{display:inline-block;padding:8px 12px;border-radius:14px;font-size:14px;line-height:1.3;word-wrap:break-word;position:relative}.user .bubble{background:#e8eaf6;color:#000;border-bottom-right-radius:4px;margin-left:auto;display:flex;justify-content:flex-end;align-self:flex-end}.chat-window .bot:first-of-type .bubble .feedback{display:none!important}.fb-btn{appearance:none;border:none;background:transparent;cursor:pointer;font-size:13px;line-height:1;padding:2px 4px;border-radius:4px;opacity:.9}.fb-btn:hover{background:#00bcd414}.fb-btn.up{color:#16a34a}.fb-btn.down{color:#dc2626}.yn-group{display:flex;align-items:center;gap:4px;margin-top:10px}.yn-btn{appearance:none;border:1px solid #cfd8e3;background:#fff;color:#111827;font-size:12px;padding:4px 8px;border-radius:999px;cursor:pointer;margin-right:6px}.yn-btn:hover{background:#f3f4f6}.yn-btn.yes{border-color:#16a34a33}.yn-btn.no{border-color:#dc262633}.star-group{display:inline-flex;gap:6px;align-items:center;vertical-align:middle;margin-left:2px;margin-top:2px}.star-group .star{appearance:none;border:none;background:transparent;cursor:pointer;font-size:18px;line-height:1;color:#444547;padding:0 1px;transition:transform .08s ease,color .08s ease}.star-group .star.filled{color:#f59e0b}.star-group .star:hover{transform:scale(1.08)}.input-row{display:flex;gap:8px;padding:10px;background:#fff;border-top:1px solid #e6e9ee;align-items:flex-end;flex-shrink:0}.chat-input-wrapper{flex:1;border-radius:8px;border:1px solid #d1d5db;overflow:hidden;background:#fff;display:flex}.chat-input{width:100%;resize:none;border:none;outline:none;padding:8px 10px;font-size:14px;line-height:1.2;min-height:20px;max-height:100px;overflow-y:auto;box-sizing:border-box;background:transparent}.chat-input:focus{outline:none;box-shadow:none}.send-btn{height:36px;align-self:flex-end;padding:0 14px;background:var(--ion-color-primary)!important;color:#fff!important;border:none;border-radius:8px;cursor:pointer;white-space:nowrap;font-size:14px}.send-btn:disabled{opacity:.6;cursor:not-allowed}.icon-label{display:flex;align-items:center;gap:8px}.amelia-header-icon{width:56px;height:56px;border-radius:0;object-fit:contain;background:transparent;flex-shrink:0}.text-block{display:flex;flex-direction:column;line-height:1.1}.bubble.bot,.bot .bubble{display:flex;align-items:flex-start;gap:8px}.bot .bubble .feedback-block{display:flex;flex-direction:column;align-items:flex-start;flex:1;min-width:0}.bot .bubble .feedback{position:absolute;right:0;bottom:-24px;display:inline-flex;gap:6px;align-items:center;width:auto;margin:0}.feedback-message{width:100%;display:block;white-space:normal;overflow-wrap:anywhere}.feedback-actions{display:flex;align-items:center;gap:8px;width:100%;justify-content:flex-start}.feedback-actions .yn-btn{flex:0 0 auto}.bot .feedback .fb-btn{border:none;background:transparent;padding:2px;margin:0;cursor:pointer;flex:0 0 auto}.bubble-content{display:flex;flex-direction:column;align-items:flex-start;flex:0 1 auto;width:auto;max-width:100%;min-width:0;overflow:hidden;box-sizing:border-box}.formatted-text{display:block;white-space:normal;overflow-wrap:anywhere;word-break:break-word;box-sizing:border-box}.feedback{display:flex;align-items:center;gap:8px;margin-top:8px;width:100%}.amelia-message-icon{width:28px;height:28px;border-radius:50%;object-fit:cover;background:#fff;flex-shrink:0;flex:0 0 auto}.chat-popup.expanded{width:650px!important;height:86vh!important;position:fixed!important;bottom:16px!important;right:40px!important;left:auto!important;max-width:650px!important;max-height:calc(100vh - 80px)!important;border-radius:8px!important;display:flex!important;flex-direction:column!important;visibility:visible!important;opacity:1!important;z-index:9999!important}.chat-popup.expanded .chat-body{width:100%!important;align-self:stretch!important}.chat-popup.expanded .short-welcome{width:-moz-fit-content!important;width:fit-content!important;max-width:100%!important;min-width:0!important;flex:0 0 auto!important}.chat-popup.expanded .bot:has(.short-welcome) .bubble{width:-moz-fit-content!important;width:fit-content!important;max-width:none!important;overflow:visible!important;box-sizing:border-box!important}.chat-popup.expanded .short-welcome .bubble-content{width:auto!important;max-width:100%!important;min-width:0!important;flex:0 1 auto!important}.bot .formatted-text{white-space:normal;overflow-wrap:anywhere;word-break:break-word;display:block;width:auto;max-width:100%;min-width:0}.chat-popup.expanded .short-welcome .formatted-text{display:inline-block!important;width:auto!important;max-width:100%!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}.chat-top-actions{display:flex;justify-content:flex=end;align-items:center;gap:6px;padding:4px 8px;background:transparent;flex-shrink:0;position:absolute;top:-1px;right:0!important;width:auto!important;z-index:10000;position:absolute!important}.top-action-btn{border:none;background:transparent!important;color:#000!important;font-size:16px;font-weight:700;line-height:22px;cursor:pointer;padding:0;border-radius:none!important;width:24px;height:24px;text-align:center}.top-action-btn:hover{background:#eee;border-radius:4px}.top-action-btn .pi{font-size:16px}.chat-top-actions.top-action-btn{color:#000!important;background:transparent!important;border:none!important;font-size:16px;font-weight:700;cursor:pointer;width:24px;height:24px;line-height:24px;padding:0;border-radius:5px 0 0}.bot .bubble:has(.star-group){display:grid!important;grid-template-columns:32px max-content!important;grid-template-rows:auto auto!important;column-gap:8px!important;row-gap:6px!important;align-items:start!important;padding:12px!important;box-sizing:border-box!important;overflow:visible!important;width:300px!important;min-width:0!important;max-width:calc(100% - 24px)!important}.bot .bubble:has(.star-group) .amelia-message-icon{grid-column:1!important;grid-row:1 / span 2!important;margin-top:0!important}.bot .bubble:has(.star-group)>div:first-of-type{grid-column:2!important;grid-row:1!important;white-space:nowrap!important;min-width:0}.bot .bubble:has(.star-group) .star-group{grid-column:2!important;grid-row:2!important;display:flex!important;flex-direction:row!important;gap:8px!important;margin:0!important;padding:0!important;position:static!important;inset:auto!important}.bot .bubble:has(.yn-group){display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;grid-template-rows:auto auto!important;column-gap:8px!important;row-gap:8px!important;align-items:start!important;width:-moz-fit-content!important;width:fit-content!important;max-width:100%!important;min-width:0!important;padding:10px!important;box-sizing:border-box!important;overflow:hidden!important}.bot .bubble:has(.yn-group) .amelia-message-icon{grid-column:1!important;grid-row:1 / span 2!important}.bot .bubble:has(.yn-group) .formatted-text{display:block!important;width:auto!important;max-width:100%!important;min-width:0!important;grid-column:2!important;grid-row:1!important;white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important}.bot .bubble:has(.yn-group) .yn-group{grid-column:2!important;grid-row:2!important;display:flex!important;flex-direction:row!important;gap:6px!important;margin:10px 0 0!important;padding:0!important;position:static!important}.message-time{font-size:11px;color:#6b7280;margin-top:3px;padding:0 6px;text-align:right;white-space:nowrap}.message-time-bot{font-size:11px;color:#6b7280;margin-left:10px;padding:0 6px;margin-right:auto;white-space:nowrap}.message-wrapper{display:inline-flex;flex-direction:column;width:max-content;max-width:78%}.bot .message-wrapper{align-items:flex-start}.user .message-wrapper{align-items:flex-end;margin-left:auto}.bot{display:flex;flex-direction:column;align-items:flex-start;width:-moz-fit-content;width:fit-content;max-width:85%;min-width:0}.bot .bubble{background:#fff;color:#111827;border:1px solid #e6e9ee;border-bottom-left-radius:4px;margin-bottom:30px;margin-right:auto;display:inline-flex;align-items:flex-start;width:-moz-fit-content!important;width:fit-content!important;max-width:100%!important;min-width:0;box-sizing:border-box;overflow:visible!important;position:relative}.bot .bubble-content{min-width:0;width:auto;max-width:100%;box-sizing:border-box;display:block;overflow-wrap:anywhere;word-break:break-word}.bot .message-time-bot{width:0;min-width:0;white-space:nowrap;overflow:visible;align-self:flex-start;text-align:left;margin-top:-26px;margin-left:0}.user{display:flex;flex-direction:column;align-items:flex-end;width:100%;min-width:0}.user .bubble-content{width:auto;min-width:0;max-width:280px;width:max-content;text-align:left;white-space:normal;display:inline-block;overflow-wrap:break-word;box-sizing:border-box;word-break:normal}.user .formatted-text{white-space:normal;word-break:normal;overflow-wrap:break-word;max-width:100%}.status-wrapper{display:flex;align-items:center;gap:6px}.status-dot{width:7px;height:7px;border-radius:50%;background-color:#2ecc71!important;flex-shrink:0}.status-dot.offline{background:#9e9e9e!important}.online-text,.offline-text{text-transform:none!important}.important-message-overlay{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;min-height:auto;height:auto;padding:20px;background-color:transparent}.important-message-modal{position:relative;width:720px;max-width:calc(100vw - 80px);min-height:auto;height:auto;padding:28px 32px 24px;overflow:visible;box-sizing:border-box;background:var(--ion-color-primary);color:#fff;border-radius:2px;text-align:left;pointer-events:auto}.important-message-modal h2{margin:0 45px 15px 0;font-size:34px;font-weight:400;line-height:1.25}.important-message-modal p{margin:0;font-size:17px;line-height:1.25;position:relative;overflow-wrap:break-word}.important-message-close{position:absolute!important;top:10px!important;right:12px!important;z-index:100!important;display:flex!important;align-items:center;justify-content:center;width:40px;height:40px;padding:0!important;margin:0!important;border:none!important;background:transparent!important;color:#fff!important;font-size:32px!important;line-height:1!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;cursor:pointer}.important-message-actions{display:flex;justify-content:flex-end;margin-top:25px}.important-message-actions button{padding:10px 25px;border:1px solid #ccc;border-radius:4px;background:#f5f5f5;color:#164d71;font-size:18px;font-style:normal;cursor:pointer}.important-message-modal h2,.important-message-modal p{text-align:left}@media (max-width: 480px){.chat-popup{width:calc(100vw - 16px);right:8px;bottom:8px;height:70vh}.bubble{max-width:90%;font-size:13px}}\n"] }]
|
|
37233
|
+
args: [{ selector: 'app-chatbot-lex', template: "\r\n\r\n\r\n<!-- Floating chat toggle button -->\r\n<button\r\n type=\"button\"\r\n class=\"chatbot-fab\"\r\n (click)=\"handleCloudClick()\"\r\n *ngIf=\"!chatOpen\"\r\n aria-label=\"Open chat\"\r\n title=\"Chat with us\">\r\n <img\r\n class=\"chatbot-fab-icon\"\r\n src=\"assets/icon/amelia-new-icon.png\"\r\n alt=\"Amelia\"\r\n />\r\n</button>\r\n\r\n<!-- Important Message Popup for cloud-button flow -->\r\n\r\n<div class=\"important-message-overlay\" \r\n *ngIf=\"showImportantMessage\">\r\n <div class=\"important-message-modal\">\r\n <button\r\n type=\"button\"\r\n class=\"important-message-close\"\r\n aria-label=\"Close\"\r\n (click)=\"closeImportantMessage()\">\r\n ×\r\n </button>\r\n\r\n <h2>Important Message</h2>\r\n <ng-container *ngIf=\"importantMessageType === 'claimant'\">\r\n <p>\r\n KDOL's virtual assistant may ask you to log in to answer questions about your personal account. For certain services, such as reporting fraud, you may be asked to provide identifying information, including the last four digits of your Social Security Number (SSN) and your date of birth. KDOL follows strict federal security guidelines to protect your sensitive information. To further safeguard your information, close the chat window and browser when finished.\r\n </p>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"importantMessageType === 'employer'\">\r\n <p>\r\n KDOL's virtual assistant may ask you to log in to answer questions about your business account. For certain services, such as reporting fraud, you may be asked to provide identifying information, including your Federal Employer Identification Number (FEIN) or the last four digits of your Social Security Number (SSN), along with other account verification details. KDOL follows strict federal security guidelines to protect your sensitive information. To further safeguard your information, close the chat window and browser when finished.\r\n </p>\r\n </ng-container>\r\n \r\n <div class=\"important-message-actions\">\r\n <button type=\"button\" (click)=\"continueToAmelia()\">\r\n Continue\r\n </button>\r\n </div>\r\n \r\n </div>\r\n</div>\r\n\r\n<!-- Chat popup -->\r\n<div class=\"chat-popup\" *ngIf=\"chatOpen\" [class.expanded]=\"isExpanded\">\r\n <div class=\"chat-top-actions\">\r\n <button\r\n class=\"top-action-btn\"\r\n type=\"button\"\r\n (click)=\"toggleExpand()\"\r\n title=\"Expand\">\r\n <span *ngIf=\"!isExpanded\">\u26F6</span>\r\n </button>\r\n <button \r\n class=\"top-action-btn\" \r\n type=\"button\" \r\n (click)=\"minimizeChat()\" \r\n title=\"Minimize\" \r\n aria-label=\"Minimize\">\r\n _\r\n </button> \r\n <button \r\n class=\"top-action-btn\" \r\n type=\"button\" \r\n (click)=\"closeChat()\" \r\n title=\"Close\" \r\n aria-label=\"Close\">\r\n \u2715\r\n </button>\r\n \r\n </div>\r\n <div class=\"chat-popup-header\">\r\n <span class=\"icon-label\">\r\n <img\r\n class=\"amelia-header-icon\"\r\n src=\"assets/icon/amelia-new-icon.png\"\r\n alt=\"Amelia\"/>\r\n <span class=\"text-block\">\r\n <span class=\"label-text\">Amelia</span>\r\n <span class=\"status-wrapper\">\r\n\r\n <span\r\n class=\"status-dot\"\r\n [class.offline]=\"botOffline\">\r\n </span>\r\n \r\n <span\r\n class=\"status\"\r\n [class.online-text]=\"!botOffline\"\r\n [class.offline-text]=\"botOffline\">\r\n {{ botOffline ? 'Offline' : 'Online' }}\r\n </span>\r\n </span>\r\n </span>\r\n </span>\r\n\r\n <div class=\"chat-popup-actions\">\r\n\r\n <button class=\"action-btn info-btn\"\r\n type=\"button\"\r\n (mouseenter)=\"getSessionID()\"\r\n title={{sessionId}}\r\n aria-label=\"Info\"\r\n (click)=\"copySessionId()\"\r\n [style.visibility]=\"infoVisible ? 'visible' : 'hidden'\">\r\n \uD83D\uDEC8\r\n </button>\r\n \r\n <button \r\n class=\"action-btn\" \r\n type=\"button\" \r\n (click)=\"refreshChat()\" \r\n title=\"Refresh\" \r\n aria-label=\"Refresh\">\r\n \u27F3\r\n </button>\r\n \r\n </div>\r\n </div>\r\n\r\n <div class=\"chat-body\">\r\n <div class=\"chat-window\" #chatWindow role=\"log\" aria-live=\"polite\">\r\n <div\r\n *ngFor=\"let msg of messages; let i =index\"\r\n [ngClass]=\"msg.from\">\r\n\r\n <div \r\n class=\"message-wrapper\"\r\n [class.short-welcome]=\"\r\n msg.from === 'bot' &&\r\n msg.text === 'Hi! How may I help you?'\r\n \">\r\n <div class=\"bubble\">\r\n <img\r\n *ngIf=\"msg.from === 'bot'\"\r\n class=\"amelia-message-icon\"\r\n src=\"assets/icon/amelia-new-icon.png\"\r\n alt=\"Amelia\"\r\n />\r\n <div class=\"bubble-content\">\r\n <ng-container\r\n *ngIf=\"\r\n msg.from === 'bot' &&\r\n isStarRatingPrompt(msg.text, i)\r\n else normalMessage\r\n \">\r\n <span class = \"formatted-text\">\r\n Your feedback matters to us\r\n </span>\r\n <div \r\n class=\"star-group\" \r\n (mouseleave)=\"onStarLeave(i)\">\r\n <button\r\n *ngFor=\"let s of getStars()\"\r\n type=\"button\"\r\n class=\"star\"\r\n [class.filled]=\"isStarFilled(i, s)\"\r\n (mouseenter)=\"onStarEnter(i, s)\"\r\n (click)=\"onStarClick(s, i)\"\r\n [attr.aria-label]=\"'Rate ' + s + ' star(s)'\"\r\n title=\"Rate {{s}} star(s)\">\r\n \u2605\r\n </button>\r\n\r\n </div>\r\n </ng-container>\r\n <ng-template #normalMessage>\r\n <span class=\"formatted-text\">\r\n <ng-container\r\n *ngFor=\"let line of displayLines(msg.text); let last = last\">\r\n {{ line }}\r\n <br *ngIf=\"!last\" >\r\n </ng-container>\r\n </span>\r\n <!-- Yes/No buttons -->\r\n <div\r\n class=\"yn-group\"\r\n *ngIf=\"\r\n msg.from === 'bot' && \r\n isYesNoPrompt(msg.text, i)\r\n \">\r\n <button\r\n class=\"yn-btn yes\"\r\n (click)=\"onYesNoClick('Yes', i)\">\r\n Yes\r\n </button>\r\n <button\r\n class=\"yn-btn no\" \r\n (click)=\"onYesNoClick('No', i)\">\r\n No\r\n </button>\r\n </div>\r\n <div \r\n class=\"message-links\"\r\n *ngIf=\"msg.url && msg.url.length\">\r\n <button\r\n *ngIf=\"let url of msg.url\"\r\n class=\"yn-btn yes\"\r\n type=\"button\"\r\n (click)=\"openLink(url)\">\r\n {{url}}\r\n </button> \r\n </div>\r\n </ng-template>\r\n </div>\r\n </div>\r\n <div class=\"message-meta\">\r\n <div class =\"feedback\"\r\n *ngIf=\"\r\n msg.from === 'bot'\r\n && msg.text?.trim() !== 'Hi! How may I help you?'\r\n && !isMessageRated(i)\r\n && i === messages.length - 1\r\n && !isAck\r\n \">\r\n <button\r\n class=\"fb-btn up\" \r\n (click)=\"sendFeedback('Thumbs up', i)\" \r\n aria-label=\"Thumbs up\" \r\n title=\"Thumbs up\">\r\n \uD83D\uDC4D\r\n </button>\r\n <button\r\n class=\"fb-btn down\" \r\n (click)=\"sendFeedback('Thumbs down', i)\" \r\n aria-label=\"Thumbs down\" \r\n title=\"Thumbs down\">\r\n \uD83D\uDC4E\r\n </button>\r\n </div>\r\n <div\r\n *ngIf=\"msg.timestamp\"\r\n [ngClass]=\"\r\n msg.from === 'bot' \r\n ? 'message-time-bot' \r\n : 'message-time'\r\n \">\r\n {{msg.timestamp | date:\"EEE MMM dd yyyy 'at' hh:mm:ss a\"}}\r\n </div>\r\n </div>\r\n </div> \r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"input-row\">\r\n <div class=\"chat-input-wrapper\">\r\n <textarea\r\n #messageInput\r\n class=\"chat-input\"\r\n [(ngModel)]=\"userInput\"\r\n (input)=\"autoGrow()\"\r\n (keydown.enter)=\"$event.preventDefault(); handleEnter()\"\r\n [disabled]=\"sending || isDisabled\"\r\n placeholder=\"Type your message...\"\r\n rows=\"1\">\r\n </textarea>\r\n </div>\r\n <button\r\n class=\"send-btn\"\r\n (click)=\"sendMessage()\"\r\n [disabled]=\"sending || isDisabled\">\r\n Send\r\n </button>\r\n </div>\r\n</div>\r\n", styles: [".chatbot-fab{position:fixed;bottom:20px;right:20px;width:56px;height:56px;border-radius:50%;background:transparent;color:#fff;border:none;font-size:24px;cursor:pointer;box-shadow:none;z-index:9998;display:flex;align-items:center;justify-content:center;overflow:visible}.chatbot-fab:hover{background:#00a5bb}.chatbot-fab-icon{width:70px;height:70px;object-fit:contain;border-radius:0;background:transparent;display:block}.chat-popup{position:fixed;bottom:20px;right:20px;width:380px;height:520px;max-height:80vh;display:flex;flex-direction:column;background:#fff;border:1px solid #e6e9ee;border-radius:12px;box-shadow:0 12px 24px #0000001f;overflow:visible!important;z-index:9999;padding-top:30px;overflow:visible}.chat-popup-header img{width:36px;height:36px;min-width:36px;max-width:36px;border-radius:50%;object-fit:cover}.chat-popup-header{display:flex;align-items:center;justify-content:space-between;background:var(--ion-color-primary)!important;color:#fff;padding:4px 12px;font-weight:600;flex-shrink:0}.icon-label{display:inline-flex;align-items:center;gap:8px}.text-block{display:inline-flex;flex-direction:column;line-height:1.1}.label-text{font-size:15px;font-weight:600}.status{font-size:11px;margin-top:2px;text-transform:lowercase;opacity:.95}.status.online-text{color:#b9f6ca}.status.offline-text{color:#ffcdd2}.chat-popup-actions{display:inline-flex;align-items:center;gap:6px}.info-btn,.info-btn:hover,.info-btn:focus,.info-btn:active{background:transparent;border:none;box-shadow:none;outline:none}.action-btn{background:transparent;color:#fff;border:none;font-size:16px;cursor:pointer;width:28px;height:28px;line-height:1;padding:0;border-radius:4px}.action-btn:hover{background:#ffffff26}.chat-body{flex:1;display:flex;flex-direction:column;overflow:hidden;min-height:0}.chat-window{padding:12px;flex:1;overflow-y:auto;background:#f6f8fb;min-height:0;width:100%;box-sizing:border-box}.yn-btn{appearance:none;border:1px solid #cfd8e3;background:#fff;color:#111827;font-size:12px;padding:4px 8px;border-radius:999px;cursor:pointer;margin-right:6px}.yn-btn:hover{background:#f3f4f6}.yn-btn.yes{border-color:#16a34a33}.yn-btn.no{border-color:#dc262633}.input-row{display:flex;gap:8px;padding:10px;background:#fff;border-top:1px solid #e6e9ee;align-items:flex-end;flex-shrink:0}.chat-input-wrapper{flex:1;border-radius:8px;border:1px solid #d1d5db;overflow:hidden;background:#fff;display:flex}.chat-input{width:100%;resize:none;border:none;outline:none;padding:8px 10px;font-size:14px;line-height:1.2;min-height:20px;max-height:100px;overflow-y:auto;box-sizing:border-box;background:transparent}.chat-input:focus{outline:none;box-shadow:none}.send-btn{height:36px;align-self:flex-end;padding:0 14px;background:var(--ion-color-primary)!important;color:#fff!important;border:none;border-radius:8px;cursor:pointer;white-space:nowrap;font-size:14px}.send-btn:disabled{opacity:.6;cursor:not-allowed}.amelia-header-icon{width:56px;height:56px;border-radius:0;object-fit:contain;background:transparent;flex-shrink:0}.chat-popup.expanded{width:650px!important;height:86vh!important;position:fixed!important;bottom:16px!important;right:40px!important;left:auto!important;max-width:650px!important;max-height:calc(100vh - 80px)!important;border-radius:8px!important;display:flex!important;flex-direction:column!important;visibility:visible!important;opacity:1!important;z-index:9999!important}.chat-popup.expanded .chat-body{width:100%!important;align-self:stretch!important}.chat-top-actions{display:flex;justify-content:flex=end;align-items:center;gap:6px;padding:4px 8px;background:transparent;flex-shrink:0;position:absolute;top:-1px;right:0!important;width:auto!important;z-index:10000;position:absolute!important}.top-action-btn{border:none;background:transparent!important;color:#000!important;font-size:16px;font-weight:700;line-height:22px;cursor:pointer;padding:0;border-radius:none!important;width:24px;height:24px;text-align:center}.top-action-btn:hover{background:#eee;border-radius:4px}.top-action-btn .pi{font-size:16px}.status-wrapper{display:flex;align-items:center;gap:6px}.status-dot{width:7px;height:7px;border-radius:50%;background-color:#2ecc71!important;flex-shrink:0}.status-dot.offline{background:#9e9e9e!important}.online-text,.offline-text{text-transform:none!important}.important-message-overlay{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;min-height:auto;height:auto;padding:20px;background-color:transparent}.important-message-modal{position:relative;width:720px;max-width:calc(100vw - 80px);min-height:auto;height:auto;padding:28px 32px 24px;overflow:visible;box-sizing:border-box;background:var(--ion-color-primary);color:#fff;border-radius:2px;text-align:left;pointer-events:auto}.important-message-modal h2{margin:0 45px 15px 0;font-size:34px;font-weight:400;line-height:1.25}.important-message-modal p{margin:0;font-size:17px;line-height:1.25;position:relative;overflow-wrap:break-word}.important-message-close{position:absolute!important;top:10px!important;right:12px!important;z-index:100!important;display:flex!important;align-items:center;justify-content:center;width:40px;height:40px;padding:0!important;margin:0!important;border:none!important;background:transparent!important;color:#fff!important;font-size:32px!important;line-height:1!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;cursor:pointer}.important-message-actions{display:flex;justify-content:flex-end;margin-top:25px}.important-message-actions button{padding:10px 25px;border:1px solid #ccc;border-radius:4px;background:#f5f5f5;color:#164d71;font-size:18px;font-style:normal;cursor:pointer}.important-message-modal h2,.important-message-modal p{text-align:left}@media (max-width: 480px){.chat-popup{width:calc(100vw - 16px);right:8px;bottom:8px;height:70vh}.bubble{max-width:90%;font-size:13px}}.bot,.user{display:flex;flex-direction:column;width:100%;min-width:0;margin:8px 0;box-sizing:border-box}.bot{align-items:flex-start}.user{align-items:flex-end}.message-wrapper{display:inline-flex;flex-direction:column;width:auto;max-width:78%;min-width:0}.bot .message-wrapper,.user .message-wrapper{display:flex;flex-direction:column;width:auto!important;max-width:75%!important;min-width:0!important}.bot .message-wrapper{align-items:flex-start}.user .message-wrapper{align-items:flex-end}.bot .bubble,.user .bubble{position:relative;display:flex;align-items:flex-start;width:auto!important;max-width:100%!important;box-sizing:border-box;padding:8px 12px;font-size:14px;line-height:1.3;border-radius:14px;margin-bottom:0!important}.bot .bubble{background:#fff;color:#111827;border:1px solid #e6e9ee;border-top-left-radius:4px;gap:8px}.user .bubble{background:#e8eef6;color:#000;border-top-right-radius:4px;margin-left:0!important}.bot .bubble-content,.user .bubble-content{display:flex;flex-direction:column;align-items:flex-start;width:auto!important;max-width:100%!important;min-width:0!important;box-sizing:border-box;overflow:visible}.bot .formatted-text,.user .formatted-text{display:block;width:auto!important;max-width:100% important;min-width:0;white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important;box-sizing:border-box}.amelia-message-icon{width:28px;height:28px;flex:0 0 28px;object-fit:cover;border-radius:50%}.message-time,.message-time-bot{margin:0;padding:0;font-size:11px;color:#6b7280;white-space:nowrap}.message-time-bot{order:1;margin:0;padding:0;text-align:left;white-space:nowrap}.user .message-time{text-align:right}.yn-group{display:flex;align-items:center;gap:8px;margin-top:10px}.yn-btn{flex:0 0 auto}.star-group{display:flex;align-items:center;gap:8px;margin-top:8px;padding:0}.star-group .star{appearance:none;border:none;background:transparent;cursor:pointer;font-size:18px;line-height:1;padding:0 1px;color:#000;transition:transform .08s ease}.star-group .star.filled{color:#f59e0b}.star-group .sta:hover{transform:scale(1.08)}.feedback{order:2;display:flex;align-items:center;justify-content:flex-end;gap:6px;width:auto;padding:0;margin:0 0 0 auto}.fb-btn{appearance:none;border:none;background:transparent;cursor:pointer;font-size:13px;line-height:1;padding:2px 3px;margin:0}.fb-btn:hover{background:#00bcd414}.message-meta{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:3px}.user .message-meta{justify-content:flex-end}\n"] }]
|
|
37111
37234
|
}], () => [{ type: LexChatService }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }], { clientFilter: [{
|
|
37112
37235
|
type: Input
|
|
37113
37236
|
}], messageInput: [{
|