import * as i0 from '@angular/core';
import { booleanAttribute, Input, HostBinding, Component, NgModule } from '@angular/core';

class EuiIconInputComponent {
    constructor() {
        this.euiIconPositionStart = true;
        this.euiIconPositionEnd = false;
    }
    get cssClasses() {
        return [
            'eui-icon-input',
            this.euiIconPositionStart && !this.euiIconPositionEnd ? 'eui-icon-input--start' : '',
            this.euiIconPositionEnd ? 'eui-icon-input--end' : '',
        ]
            .join(' ')
            .trim();
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: EuiIconInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.2.17", type: EuiIconInputComponent, isStandalone: true, selector: "eui-icon-input", inputs: { euiIconPositionStart: ["euiIconPositionStart", "euiIconPositionStart", booleanAttribute], euiIconPositionEnd: ["euiIconPositionEnd", "euiIconPositionEnd", booleanAttribute] }, host: { properties: { "class": "this.cssClasses" } }, ngImport: i0, template: "<span class=\"eui-icon-input-wrapper\">\n    <span class=\"eui-icon-input__content\">\n        <ng-content></ng-content>\n    </span>\n    <span class=\"eui-icon-input__icon\">\n        <ng-content select=\"eui-icon-svg\"></ng-content>\n        <ng-content select=\"eui-button\"></ng-content>\n    </span>\n</span>\n", styles: [".eui-19 :host.eui-icon-input{display:flex;width:100%}.eui-19 :host.eui-icon-input .eui-icon-input-wrapper{display:flex;width:100%;position:relative}.eui-19 :host.eui-icon-input .eui-icon-input__content{display:flex;width:100%}.eui-19 :host.eui-icon-input .eui-icon-input__icon{position:absolute}.eui-19 :host.eui-icon-input.eui-icon-input--end ::ng-deep .eui-input-text{padding-right:var(--eui-s-3xl)}.eui-19 :host.eui-icon-input.eui-icon-input--end .eui-icon-input__content ::ng-deep .eui-icon-svg.eui-input-text--clearable-icon{right:var(--eui-s-3xl)}.eui-19 :host.eui-icon-input.eui-icon-input--end .eui-icon-input__icon{right:var(--eui-s-s);top:calc(var(--eui-s-m) / 16 * 10)}.eui-19 :host.eui-icon-input.eui-icon-input--start ::ng-deep .eui-input-text{padding-left:var(--eui-s-3xl)}.eui-19 :host.eui-icon-input.eui-icon-input--start .eui-icon-input__icon{left:var(--eui-s-xs);top:var(--eui-s-xs)}\n"] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: EuiIconInputComponent, decorators: [{
            type: Component,
            args: [{ selector: 'eui-icon-input', template: "<span class=\"eui-icon-input-wrapper\">\n    <span class=\"eui-icon-input__content\">\n        <ng-content></ng-content>\n    </span>\n    <span class=\"eui-icon-input__icon\">\n        <ng-content select=\"eui-icon-svg\"></ng-content>\n        <ng-content select=\"eui-button\"></ng-content>\n    </span>\n</span>\n", styles: [".eui-19 :host.eui-icon-input{display:flex;width:100%}.eui-19 :host.eui-icon-input .eui-icon-input-wrapper{display:flex;width:100%;position:relative}.eui-19 :host.eui-icon-input .eui-icon-input__content{display:flex;width:100%}.eui-19 :host.eui-icon-input .eui-icon-input__icon{position:absolute}.eui-19 :host.eui-icon-input.eui-icon-input--end ::ng-deep .eui-input-text{padding-right:var(--eui-s-3xl)}.eui-19 :host.eui-icon-input.eui-icon-input--end .eui-icon-input__content ::ng-deep .eui-icon-svg.eui-input-text--clearable-icon{right:var(--eui-s-3xl)}.eui-19 :host.eui-icon-input.eui-icon-input--end .eui-icon-input__icon{right:var(--eui-s-s);top:calc(var(--eui-s-m) / 16 * 10)}.eui-19 :host.eui-icon-input.eui-icon-input--start ::ng-deep .eui-input-text{padding-left:var(--eui-s-3xl)}.eui-19 :host.eui-icon-input.eui-icon-input--start .eui-icon-input__icon{left:var(--eui-s-xs);top:var(--eui-s-xs)}\n"] }]
        }], propDecorators: { cssClasses: [{
                type: HostBinding,
                args: ['class']
            }], euiIconPositionStart: [{
                type: Input,
                args: [{ transform: booleanAttribute }]
            }], euiIconPositionEnd: [{
                type: Input,
                args: [{ transform: booleanAttribute }]
            }] } });

/**
 * @description
 * Module for the EuiIconInput component.
 *
 * This module provides the EuiIconInputComponent which is used to create
 * icon input fields with various styles and functionalities.
 *
 * @deprecated Use {@link EUI_ICON_INPUT} instead.
 */
class EuiIconInputModule {
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: EuiIconInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
    static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.17", ngImport: i0, type: EuiIconInputModule, imports: [EuiIconInputComponent], exports: [EuiIconInputComponent] }); }
    static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: EuiIconInputModule }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: EuiIconInputModule, decorators: [{
            type: NgModule,
            args: [{
                    imports: [EuiIconInputComponent],
                    exports: [EuiIconInputComponent],
                }]
        }] });

const EUI_ICON_INPUT = [
    EuiIconInputComponent,
];
// export { EuiIconInputComponent as EuiIconInput } from './eui-icon-input.component';

/**
 * Generated bundle index. Do not edit.
 */

export { EUI_ICON_INPUT, EuiIconInputComponent, EuiIconInputModule };
//# sourceMappingURL=eui-components-eui-icon-input.mjs.map
