import * as i0 from '@angular/core';
import { Injectable } from '@angular/core';

class EnumService {
    getKeys(en) {
        const items = Object.keys(en);
        const halfLength = items.length / 2;
        return items.slice(halfLength);
    }
    getValues(en) {
        const items = Object.keys(en);
        const halfLength = items.length / 2;
        return items.slice(0, halfLength);
    }
    getItems(en) {
        return this.getKeys(en).map((key) => {
            return {
                key,
                value: en[key],
            };
        });
    }
}
EnumService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: EnumService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
EnumService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: EnumService, providedIn: 'root' });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: EnumService, decorators: [{
            type: Injectable,
            args: [{
                    providedIn: 'root'
                }]
        }] });

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

export { EnumService };
//# sourceMappingURL=mintplayer-ng-bootstrap-enum.mjs.map
