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