import * as i0 from '@angular/core';
import { Directive, Inject, Optional, NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { PROP_STRING, register, StylableComponent, styler, provideAsWidgetRef, WmComponentsModule } from '@wm/components/base';

const registerProps = () => {
    register('wm-top-nav', new Map([
        ['name', PROP_STRING],
        ['content', PROP_STRING],
        ['hint', PROP_STRING],
        ['arialabel', PROP_STRING]
    ]));
};

const DEFAULT_CLS = 'app-top-nav';
const WIDGET_CONFIG = { widgetType: 'wm-top-nav', hostClass: DEFAULT_CLS };
class TopNavDirective extends StylableComponent {
    static { this.initializeProps = registerProps(); }
    constructor(inj, explicitContext) {
        super(inj, WIDGET_CONFIG, explicitContext);
        styler(this.nativeElement, this);
    }
    static { this.ɵfac = function TopNavDirective_Factory(t) { return new (t || TopNavDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
    static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TopNavDirective, selectors: [["", "wmTopNav", ""]], exportAs: ["wmTopNav"], features: [i0.ɵɵProvidersFeature([
                provideAsWidgetRef(TopNavDirective)
            ]), i0.ɵɵInheritDefinitionFeature] }); }
}
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TopNavDirective, [{
        type: Directive,
        args: [{
                selector: '[wmTopNav]',
                providers: [
                    provideAsWidgetRef(TopNavDirective)
                ],
                exportAs: 'wmTopNav'
            }]
    }], () => [{ type: i0.Injector }, { type: undefined, decorators: [{
                type: Inject,
                args: ['EXPLICIT_CONTEXT']
            }, {
                type: Optional
            }] }], null); })();

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

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

export { TopNavDirective, TopNavModule };
//# sourceMappingURL=index.mjs.map
