import { ChangeDetectionStrategy, Component, forwardRef } from '@angular/core';
import { DropdownSearchBaseComponent } from '@ironsource/fusion-ui/components/dropdown-search/common/base';
import { NG_VALUE_ACCESSOR } from '@angular/forms';
import * as i0 from "@angular/core";
import * as i1 from "@ironsource/fusion-ui/components/input/v2";
import * as i2 from "@angular/forms";
export class DropdownSearchComponent extends DropdownSearchBaseComponent {
    static { this.ɵfac = /*@__PURE__*/ (() => { let ɵDropdownSearchComponent_BaseFactory; return function DropdownSearchComponent_Factory(__ngFactoryType__) { return (ɵDropdownSearchComponent_BaseFactory || (ɵDropdownSearchComponent_BaseFactory = i0.ɵɵgetInheritedFactory(DropdownSearchComponent)))(__ngFactoryType__ || DropdownSearchComponent); }; })(); }
    static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DropdownSearchComponent, selectors: [["fusion-dropdown-search"]], features: [i0.ɵɵProvidersFeature([
                {
                    provide: NG_VALUE_ACCESSOR,
                    useExisting: forwardRef(() => DropdownSearchComponent),
                    multi: true
                }
            ]), i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 3, consts: [["inputComponent", ""], [1, "search-panel"], ["showSearchIcon", "right", 1, "is-search-style", 3, "formControl", "placeholder", "clear"]], template: function DropdownSearchComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 1);
            i0.ɵɵelement(1, "fusion-input", 2, 0);
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵadvance();
            i0.ɵɵproperty("formControl", ctx.searchValue)("placeholder", ctx.placeholder)("clear", true);
        } }, dependencies: [i1.InputComponent, i2.NgControlStatus, i2.FormControlDirective], styles: ["[_nghost-%COMP%]   .search-panel[_ngcontent-%COMP%]{color:#fff;border:none;background-color:transparent;margin-left:-8px;margin-right:-25px}"], changeDetection: 0 }); }
}
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DropdownSearchComponent, [{
        type: Component,
        args: [{ selector: 'fusion-dropdown-search', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
                    {
                        provide: NG_VALUE_ACCESSOR,
                        useExisting: forwardRef(() => DropdownSearchComponent),
                        multi: true
                    }
                ], template: "<div class=\"search-panel\">\n    <fusion-input class=\"is-search-style\"\n                  [formControl]=\"searchValue\"\n                  [placeholder]=\"placeholder\"\n                  showSearchIcon=\"right\"\n                  [clear]=\"true\"\n                  #inputComponent></fusion-input>\n</div>\n", styles: [":host .search-panel{color:#fff;border:none;background-color:transparent;margin-left:-8px;margin-right:-25px}\n"] }]
    }], null, null); })();
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DropdownSearchComponent, { className: "DropdownSearchComponent", filePath: "dropdown-search.component.ts", lineNumber: 18 }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJvcGRvd24tc2VhcmNoLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Z1c2lvbi11aS9jb21wb25lbnRzL2Ryb3Bkb3duLXNlYXJjaC92Mi9kcm9wZG93bi1zZWFyY2guY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZnVzaW9uLXVpL2NvbXBvbmVudHMvZHJvcGRvd24tc2VhcmNoL2NvbW1vbi9iYXNlL2Ryb3Bkb3duLXNlYXJjaC5iYXNlLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyx1QkFBdUIsRUFBRSxTQUFTLEVBQUUsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQzdFLE9BQU8sRUFBQywyQkFBMkIsRUFBQyxNQUFNLDhEQUE4RCxDQUFDO0FBQ3pHLE9BQU8sRUFBQyxpQkFBaUIsRUFBQyxNQUFNLGdCQUFnQixDQUFDOzs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