import { Component, HostBinding } from '@angular/core';
import { EclSiteHeaderSearchComponentBase } from '../../common/ecl-site-header-search.component';
import * as i0 from "@angular/core";
import * as i1 from "../../../../ecl-link/ecl-link.directive";
import * as i2 from "../../../../ecl-icon/ecl-icon.component";
import * as i3 from "../../../../ecl-search-form/ecl-search-form.component";
import * as i4 from "@ngx-translate/core";
/**
 * @deprecated
 */
export class EclSiteHeaderCoreSearchComponent extends EclSiteHeaderSearchComponentBase {
    constructor() {
        super(...arguments);
        this.class = 'ecl-site-header-core__search-container';
    }
    getSearchBoxCssClasses() {
        return [
            'ecl-site-header-core__search',
            this.isSearchBoxActive ? 'ecl-site-header-core__search--active' : ''
        ].join(' ');
    }
}
/** @nocollapse */ EclSiteHeaderCoreSearchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: EclSiteHeaderCoreSearchComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
/** @nocollapse */ EclSiteHeaderCoreSearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.6", type: EclSiteHeaderCoreSearchComponent, selector: "ecl-site-header-core-search", host: { properties: { "class": "this.class" } }, usesInheritance: true, ngImport: i0, template: "<a eclLink \n    variant=\"standalone\" \n    class=\"ecl-site-header-core__search-toggle\" \n    data-ecl-search-toggle=\"true\" \n    aria-controls=\"search-form-id\" \n    [attr.aria-expanded]=\"isSearchBoxActive\"\n    (click)=\"onSearchBoxToggle($event)\">\n    <ecl-icon icon=\"search\" size=\"s\"></ecl-icon>\n    {{ 'ecl.common.SEARCH' | translate }}\n</a>\n\n<ecl-search-form \n    (search)=\"onSearch($event)\" \n    [placeholder]=\"searchInputPlaceholder\"\n    [searchInputText]=\"searchInputText\"\n    [searchButtonLabel]=\"searchButtonLabel\"\n    [class]=\"getSearchBoxCssClasses()\">\n</ecl-search-form>\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "directive", type: i1.EclLinkDirective, selector: "[eclLink]", inputs: ["variant", "isNegative", "isNoVisited"] }, { kind: "component", type: i2.EclIconComponent, selector: "ecl-icon", inputs: ["iconSet", "icon", "size", "color", "transform", "ariaLabelledby", "role", "ariaHidden", "focusable"] }, { kind: "component", type: i3.EclSearchFormComponent, selector: "ecl-search-form", inputs: ["formControlName", "searchInputText", "placeholder", "searchButtonLabel", "searchButtonIcon"], outputs: ["search"] }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: EclSiteHeaderCoreSearchComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ecl-site-header-core-search', template: "<a eclLink \n    variant=\"standalone\" \n    class=\"ecl-site-header-core__search-toggle\" \n    data-ecl-search-toggle=\"true\" \n    aria-controls=\"search-form-id\" \n    [attr.aria-expanded]=\"isSearchBoxActive\"\n    (click)=\"onSearchBoxToggle($event)\">\n    <ecl-icon icon=\"search\" size=\"s\"></ecl-icon>\n    {{ 'ecl.common.SEARCH' | translate }}\n</a>\n\n<ecl-search-form \n    (search)=\"onSearch($event)\" \n    [placeholder]=\"searchInputPlaceholder\"\n    [searchInputText]=\"searchInputText\"\n    [searchButtonLabel]=\"searchButtonLabel\"\n    [class]=\"getSearchBoxCssClasses()\">\n</ecl-search-form>\n", styles: [":host{display:block}\n"] }]
        }], propDecorators: { class: [{
                type: HostBinding,
                args: ['class']
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWNsLXNpdGUtaGVhZGVyLWNvcmUtc2VhcmNoLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy9lY2wtc2l0ZS1oZWFkZXIvZGVwcmVjYXRlZC9lY2wtc2l0ZS1oZWFkZXItY29yZS9zZWFyY2gvZWNsLXNpdGUtaGV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