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YAWD,WAVMD,IAAKE,KAAK,CACrB3E,QACA4E,KAAM,OACNC,SAAU,KACVC,KAAM,yCAC0BT,mBAEhCC,qBAKN,IAACH,MAAAlJ,KAAAmJ,UAAA","names":["i0","ctx_r1","cultureSwitch","l","t","error","LoginFormComponent","loading","login","EventEmitter","userNameInputElement","submitted","showPassword","loginForm","FormGroup","userName","FormControl","Validators","required","password","loginFormControls","this","controls","pagePaths","PagePaths","submitForm","markAllAsTouched","valid","emit","ngAfterViewInit","nativeElement","focus","selectors","viewQuery","rf","ctx","ElementRef","_r1","LoginFormComponent_i_20_Template","LoginFormComponent_i_21_Template","LoginFormComponent_a_27_Template","LoginFormComponent_div_28_Template","LoginFormComponent_span_32_Template","LoginFormComponent_ng_template_33_Template","forgotPassword","length","loadingTemplate_r3","CommonModule","i1","ReactiveFormsModule","i2","TranslateModule","i3","PrependBasePathPipe","styles","image_r2","LoginComponent_ng_container_13_ng_container_1_swiper_slide_2_Template","ctx_r2","loginImages","LoginComponent_ng_container_13_ng_container_1_Template","image_r4","LoginComponent","_costaBackendApiService","inject","CostaBackendApiService","_marketService","MarketService","_ngbModalService","NgbModal","_changeDetectorRef","ChangeDetectorRef","_errorMessagesService","ErrorMessagesService","_translateService","TranslateService","loginError","isLoadingImages","constructor","register","ngOnInit","hasLanguageSwitch","getLanguageSwitchLink","isLoginCarouselEnabled","getLoginImages","_this","_asyncToGenerator","removeOldLoginData","resp","value","prefetchUserData","hasLoginConfirmAlert","showInfo","instant","redirectToBase","page","location","href","origin","err","BEError","title","msg","hasLoginErrorWarningEnabled","showErrorAlert","then","e","message","_this2","window","extconf","LoginCarousel","detectChanges","initializeCarousel","swiper","document","querySelector","swiperParams","pagination","enabled","clickable","el","navigation","prevEl","nextEl","autoplay","delay","loop","slidesPerView","threshold","Object","assign","initialize","sessionStorage","removeItem","SessionStorageKey","AGENCY_DATA_EXT","AGENCY_DATA_FULL","AGENCY_DATA","GROUP_LIST","USER_DATA","ISO_CODE","BOOKING_LIST_BY_ADV_BKD","BOOKING_LIST_BY_ADV_OPT","BOOKING_LIST_BY_ADV","LOYALTY_PROGRAM","LOYALTY_PROGRAM_NUMBER","_this3","isNewBookingSearchEnabled","getUserProfile","standalone","features","decls","vars","consts","template","$event","LoginComponent_ng_container_13_Template","LoginComponent_ng_template_14_Template","LoginComponent_ng_template_16_Template","request","loader_r5","LoginBannerComponent","showSuccessAlert","_x","_x2","_x3","_showSuccessAlert","apply","arguments","text","confirmButtonText","console","debug","Swal","isVisible","fire","icon","iconHtml","html","errorsPerSection","showSuccess","showInfoAlert","showConfirmationAlert","okButton","cancelbutton","combineAndRenderSections","sectionKeys","tempErrorMessage","i","len","join","clearErrorForSection","key","appendErrorForSectionByClassName","label","push","appendErrorForSection","renderErrorMessageForSection","factory","ɵfac","providedIn","cancelButtonText","showCancelButton","focusConfirm","focusCancel","reverseButtons","_showErrorAlert","Error","_showInfoAlert"],"ignoreList":[],"sourceRoot":"webpack:///","sources":["./src/app/components/login/login-form/login-form.component.html","./src/app/components/login/login-form/login-form.component.ts","./src/app/Root/CostaClick/Pages/login/login.component.html","./src/app/Root/CostaClick/Pages/login/login.component.ts","./src/app/utils/Navigation/redirectToBase.utils.ts","./src/app/utils/Alerts/showSuccessAlert.utils.ts","./src/app/services/error-messages.service.ts","./src/app/utils/Alerts/showConfirmationAlert.utils.ts","./src/app/utils/Alerts/showErrorAlert.utils.ts","./src/app/utils/Alerts/showInfoAlert.utils.ts"],"sourcesContent":["
\n","import {AfterViewInit, Component, ElementRef, EventEmitter, Input, Output, ViewChild} from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormControl, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms';\nimport { LoginForm } from '@interfaces/Login/LoginForm.interface';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { PrependBasePathPipe } from '@pipes/prepend-base-path.pipe';\nimport { PagePaths } from '@values/Navigation/PagePaths.value';\n\n@Component({\n selector: 'cck-login-form',\n standalone: true,\n imports: [CommonModule, ReactiveFormsModule, TranslateModule, PrependBasePathPipe],\n templateUrl: './login-form.component.html',\n styleUrls: ['./login-form.component.scss'],\n})\nexport class LoginFormComponent implements AfterViewInit {\n @Input() error: string;\n @Input() loading: boolean;\n @Input() cultureSwitch: { l: string; t: string } = null;\n @Output() login = new EventEmitter${text}
\n `,\n confirmButtonText,\n });\n } else {\n return null;\n }\n}\n","import { inject, Injectable } from '@angular/core';\nimport { TranslateService } from '@ngx-translate/core';\nimport { showConfirmationAlert } from '@utils/Alerts/showConfirmationAlert.utils';\nimport { showErrorAlert } from '@utils/Alerts/showErrorAlert.utils';\nimport { showInfoAlert } from '@utils/Alerts/showInfoAlert.utils';\nimport { showSuccessAlert } from '@utils/Alerts/showSuccessAlert.utils';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class ErrorMessagesService {\n private readonly _translateService = inject(TranslateService);\n\n private errorsPerSection = {};\n\n public showSuccess(message, title = null) {\n return showSuccessAlert(title, message, this._translateService.instant('Global.btn_OK'));\n }\n\n public showInfo(message, title = null) {\n return showInfoAlert(title, message, this._translateService.instant('Global.btn_OK'));\n }\n\n public showErrorAlert(message, title = null) {\n return showErrorAlert(title, message, this._translateService.instant('Global.btn_OK'));\n }\n\n public showConfirmationAlert(message, title = null, okButton = null, cancelbutton = null, icon = null) {\n console.debug('showConfirmationAlert', {\n message: message,\n title: title,\n okButton: okButton,\n cancelbutton: cancelbutton,\n icon: icon,\n });\n return showConfirmationAlert(\n title,\n message,\n okButton ?? this._translateService.instant('Global.btn_OK'),\n cancelbutton ?? this._translateService.instant('Global.btn_Cancel'),\n icon\n );\n }\n\n public showSuccessAlert(message, title = null) {\n return showSuccessAlert(title, message, this._translateService.instant('Global.btn_OK'));\n }\n\n public combineAndRenderSections(sectionKeys) {\n let tempErrorMessage = '';\n for (let i = 0, len = sectionKeys.length; i < len; ++i) {\n if (this.errorsPerSection[sectionKeys[i]]) {\n tempErrorMessage += this.errorsPerSection[sectionKeys[i]].join('