import * as i0 from '@angular/core';
import { Directive, NgModule } from '@angular/core';
import { switchClass } from '@wm/core';
import { CommonModule } from '@angular/common';
import { WmComponentsModule } from '@wm/components/base';

class SearchDirective {
    constructor(elRef) {
        switchClass(elRef.nativeElement, 'app-mobile-search');
    }
    static { this.ɵfac = function SearchDirective_Factory(t) { return new (t || SearchDirective)(i0.ɵɵdirectiveInject(i0.ElementRef)); }; }
    static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: SearchDirective, selectors: [["", "wmSearch", ""]] }); }
}
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchDirective, [{
        type: Directive,
        args: [{
                selector: '[wmSearch]'
            }]
    }], () => [{ type: i0.ElementRef }], null); })();

const components = [
    SearchDirective
];
class SearchModule {
    static { this.ɵfac = function SearchModule_Factory(t) { return new (t || SearchModule)(); }; }
    static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: SearchModule }); }
    static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
            WmComponentsModule] }); }
}
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchModule, [{
        type: NgModule,
        args: [{
                imports: [
                    CommonModule,
                    WmComponentsModule
                ],
                declarations: [...components],
                exports: [...components]
            }]
    }], null, null); })();
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(SearchModule, { declarations: [SearchDirective], imports: [CommonModule,
        WmComponentsModule], exports: [SearchDirective] }); })();

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

export { SearchDirective, SearchModule };
//# sourceMappingURL=index.mjs.map
