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 EclSiteHeaderStandardisedSearchComponent extends EclSiteHeaderSearchComponentBase {
    constructor() {
        super(...arguments);
        this.class = 'ecl-site-header-standardised__search-container';
    }
    getSearchBoxCssClasses() {
        return [
            'ecl-site-header-standardised__search',
            this.isSearchBoxActive ? 'ecl-site-header-standardised__search--active' : ''
        ].join(' ');
    }
}
/** @nocollapse */ EclSiteHeaderStandardisedSearchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: EclSiteHeaderStandardisedSearchComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
/** @nocollapse */ EclSiteHeaderStandardisedSearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.6", type: EclSiteHeaderStandardisedSearchComponent, selector: "ecl-site-header-standardised-search", host: { properties: { "class": "this.class" } }, usesInheritance: true, ngImport: i0, template: "<a eclLink \n    variant=\"standalone\" \n    class=\"ecl-site-header-standardised__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: EclSiteHeaderStandardisedSearchComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ecl-site-header-standardised-search', template: "<a eclLink \n    variant=\"standalone\" \n    class=\"ecl-site-header-standardised__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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWNsLXNpdGUtaGVhZGVyLXN0YW5kYXJkaXNlZC1zZWFyY2guY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2xpYi9jb21wb25lbnRzL2VjbC1zaXRlLWhlYWRlci9kZXByZWNhdGVkL2VjbC1zaXRlLWhlYWRlci1z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