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(t) { return (ɵDropdownSearchComponent_BaseFactory || (ɵDropdownSearchComponent_BaseFactory = i0.ɵɵgetInheritedFactory(DropdownSearchComponent)))(t || 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: [[1, "search-panel"], ["showSearchIcon", "right", 1, "is-search-style", 3, "formControl", "placeholder", "clear"], ["inputComponent", ""]], template: function DropdownSearchComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵelement(1, "fusion-input", 1, 2);
            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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJvcGRvd24tc2VhcmNoLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Z1c2lvbi11aS9jb21wb25lbnRzL2Ryb3Bkb3duLXNlYXJjaC92Mi9kcm9wZG93bi1zZWFyY2guY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZnVzaW9uLXVpL2NvbXBvbmVudHMvZHJvcGRvd24tc2VhcmNoL2NvbW1vbi9iYXNlL2Ryb3Bkb3duLXNlYXJjaC5iYXNlLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyx1QkFBdUIsRUFBRSxTQUFTLEVBQUUsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQzdFLE9BQU8sRUFBQywyQkFBMkIsRUFBQyxNQUFNLDhEQUE4RCxDQUFDO0FBQ3pHLE9BQU8sRUFBQyxpQkFBaUIsRUFBQyxNQUFNLGdCQUFnQixDQUFDOzs7O0FBZWpELE1BQU0s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