import { CommonModule } from '@angular/common';
import * as i0 from '@angular/core';
import { Pipe, NgModule } from '@angular/core';

class SpaCapitalizePipe {
    transform(value, ..._args) {
        return value = value ? value.charAt(0).toUpperCase() + value.substr(1).toLowerCase() : '';
    }
    static transform(value, ..._args) {
        return new SpaCapitalizePipe().transform(value, _args);
    }
}
SpaCapitalizePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SpaCapitalizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
SpaCapitalizePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: SpaCapitalizePipe, name: "capitalize" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SpaCapitalizePipe, decorators: [{
            type: Pipe,
            args: [{
                    name: 'capitalize'
                }]
        }] });

class SpaCapitalizeModule {
}
SpaCapitalizeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SpaCapitalizeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
SpaCapitalizeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: SpaCapitalizeModule, declarations: [SpaCapitalizePipe], imports: [CommonModule], exports: [SpaCapitalizePipe] });
SpaCapitalizeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SpaCapitalizeModule, imports: [CommonModule] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SpaCapitalizeModule, decorators: [{
            type: NgModule,
            args: [{
                    declarations: [
                        SpaCapitalizePipe
                    ],
                    imports: [
                        CommonModule,
                    ],
                    exports: [
                        SpaCapitalizePipe
                    ]
                }]
        }] });

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

export { SpaCapitalizeModule, SpaCapitalizePipe };
//# sourceMappingURL=softpak-ng-components-spa-capitalize.mjs.map
