// HA 19DEC23 File created for translation
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "./i18n.service";
import * as i2 from "@angular/common";
export class I18nComponent {
    i18nService;
    // @Output() handleEve:EventEmitter<any> = new EventEmitter();
    constructor(i18nService) {
        this.i18nService = i18nService;
    }
    ngOnInit() {
        console.log('ngOnInit component.ts');
        // this.handleEve.emit();
    }
    firstClick(event) {
        console.log('first ', event);
        this.i18nService.languageChange(event);
        // this.handleEve.emit();
        window.location.reload();
    }
    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: I18nComponent, deps: [{ token: i1.I18nService }], target: i0.ɵɵFactoryTarget.Component });
    static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: I18nComponent, selector: "app-i18n", ngImport: i0, template: `
   <a  *ngFor="let lang of i18nService.langList" href="javascript:void(0);" class="not-selected-language" [ngClass]="{'selected-language': i18nService.currentLanguage === lang.lang}"

            (click)="firstClick(lang.lang)">
            <span class="mr-3">
                {{lang.lang}}
            </span>
          </a>

  `, isInline: true, styles: [".selected-language{color:green!important;font-weight:700;font-size:24px!important}\n", ".not-selected-language{color:#555;font-weight:700}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: I18nComponent, decorators: [{
            type: Component,
            args: [{ selector: 'app-i18n', template: `
   <a  *ngFor="let lang of i18nService.langList" href="javascript:void(0);" class="not-selected-language" [ngClass]="{'selected-language': i18nService.currentLanguage === lang.lang}"

            (click)="firstClick(lang.lang)">
            <span class="mr-3">
                {{lang.lang}}
            </span>
          </a>

  `, styles: [".selected-language{color:green!important;font-weight:700;font-size:24px!important}\n", ".not-selected-language{color:#555;font-weight:700}\n"] }]
        }], ctorParameters: () => [{ type: i1.I18nService }] });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaTE4bi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9ueHQtYXBwL3NyYy9saWIvaTE4bi5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsMENBQTBDO0FBQzFDLE9BQU8sRUFBRSxTQUFTLEVBQWdDLE1BQU0sZUFBZSxDQUFDOzs7O0FBMEJ4RSxNQUFNLE9BQU8sYUFBYTtJQUdmO0lBRlQsOERBQThEO0lBQzlELFlBQ1MsV0FBd0I7UUFBeEIsZ0JBQVcsR0FBWCxXQUFXLENBQWE7SUFDOUIsQ0FBQztJQUNKLFFBQVE7UUFDTixPQUFPLENBQUMsR0FBRyxDQUFDLHVCQUF1QixDQUFDLENBQUE7UUFDcEMseUJBQXlCO0lBQzNCLENBQUM7SUFFRCxVQUFVLENBQUMsS0FBSztRQUNkLE9BQU8sQ0FBQyxHQUFHLENBQUMsUUFBUSxFQUFFLEtBQUssQ0FBQyxDQUFDO1FBQzdCLElBQUksQ0FBQyxXQUFXLENBQUMsY0FBYyxDQUFDLEtBQUssQ0FBQyxDQUFDO1FBQ3ZDLHlCQUF5QjtRQUN6QixNQUFNLENBQUMsUUFBUSxDQUFDLE1BQU0sRUFBRSxDQUFDO0lBQzNCLENBQUM7d0dBZlUsYUFBYTs0RkFBYixhQUFhLGdEQVhkOzs7Ozs7Ozs7R0FTVDs7NEZBRVUsYUFBYTtrQkF4QnpCLFNBQVM7K0JBQ0UsVUFBVSxZQVlWOzs7Ozs7Ozs7R0FTVCIsInNvdXJjZXNDb250ZW50IjpbIi8vIEhBIDE5REVDMjMgRmlsZSBjcmVhdGVkIGZvciB0cmFuc2xhdGlvblxuaW1wb3J0IHsgQ29tcG9uZ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