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

const registerProps = () => {
    register('wm-marquee', new Map([
        ['class', PROP_STRING],
        ['direction', PROP_STRING],
        ['name', PROP_STRING],
        ['scrollamount', PROP_NUMBER],
        ['scrolldelay', PROP_NUMBER],
        ['show', { value: true, ...PROP_BOOLEAN }]
    ]));
};

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

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

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

export { MarqueeDirective, MarqueeModule };
//# sourceMappingURL=index.mjs.map
