import { Component, Input } from '@angular/core';
import { NsContent } from '../../../_services/widget-content.model';
import * as i0 from "@angular/core";
import * as i1 from "@sunbird-cb/utils-v2";
import * as i2 from "@angular/common";
export class DisplayContentTypeComponent {
    constructor(langtranslations) {
        this.langtranslations = langtranslations;
        this.displayContentType = NsContent.EDisplayContentTypes.DEFAULT;
        this.displayContentTypeEnum = NsContent.EDisplayContentTypes;
    }
    ngOnInit() {
    }
    translateLabels(label, type) {
        return this.langtranslations.translateLabel(label, type, '');
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DisplayContentTypeComponent, deps: [{ token: i1.MultilingualTranslationsService }], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DisplayContentTypeComponent, selector: "ws-widget-display-content-type", inputs: { displayContentType: "displayContentType" }, ngImport: i0, template: "<ng-container *ngIf=\"displayContentType\">\n  <span [ngSwitch]=\"displayContentType\" class=\"content-type-class nodtranslate\">\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.ASSESSMENT\" >Assessment</ng-container>\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.AUDIO\" >Audio</ng-container>\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.CHANNEL\" >Channel</ng-container>\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.CERTIFICATION\" i18n\n      >Certification</ng-container\n    >\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.CLASS_DIAGRAM\" i18n\n      >Class Diagram</ng-container\n    >\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.COURSE\" >Course</ng-container>\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.DEFAULT\" >Content</ng-container>\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.DRAG_DROP\" >Drag & Drop</ng-container>\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.EXTERNAL_CERTIFICATION\" i18n\n      >External Certification</ng-container\n    >\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.EXTERNAL_COURSE\" i18n\n      >External Course</ng-container\n    >\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.HANDS_ON\" >Hands-On</ng-container>\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.IAP\" >Hands-On Assessment</ng-container>\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.INSTRUCTOR_LED\" i18n\n      >Instructor-Led</ng-container\n    >\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.INTERACTIVE_VIDEO\" i18n\n      >Interactive Video</ng-container\n    >\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.KNOWLEDGE_ARTIFACT\" i18n\n      >Knowledge Artifact</ng-container\n    >\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.KNOWLEDGE_BOARD\" i18n\n      >Knowledge Board</ng-container\n    >\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.LEARNING_JOURNEY\" i18n\n      >Learning Journey</ng-container\n    >\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.MODULE\" >Module</ng-container>\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.PDF\" >Pdf</ng-container>\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.PROGRAM\" >Program</ng-container>\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.QUIZ\" >Quiz</ng-container>\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.RESOURCE\" >Resource</ng-container>\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.VIDEO\" >Video</ng-container>\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.WEB_MODULE\" >Web Module</ng-container>\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.WEB_PAGE\" >Web Page</ng-container>\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.YOUTUBE\" >Youtube</ng-container>\n    <ng-container *ngSwitchDefault >{{ translateLabels(displayContentType, 'searchfilters') }}</ng-container>\n  </span>\n  </ng-container>\n<!-- <ng-container *ngIf=\"displayContentType\">{{displayContentType}}</ng-container> -->\n<!-- <span [ngSwitch]=\"displayContentType\">\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.ASSESSMENT\" >Assessment</ng-container>\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.AUDIO\" >Audio</ng-container>\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.CHANNEL\" >Channel</ng-container>\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.CERTIFICATION\" i18n\n    >Certification</ng-container\n  >\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.CLASS_DIAGRAM\" i18n\n    >Class Diagram</ng-container\n  >\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.COURSE\" >Course</ng-container>\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.DEFAULT\" >Content</ng-container>\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.DRAG_DROP\" >Drag & Drop</ng-container>\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.EXTERNAL_CERTIFICATION\" i18n\n    >External Certification</ng-container\n  >\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.EXTERNAL_COURSE\" i18n\n    >External Course</ng-container\n  >\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.HANDS_ON\" >Hands-On</ng-container>\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.IAP\" >Hands-On Assessment</ng-container>\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.INSTRUCTOR_LED\" i18n\n    >Instructor-Led</ng-container\n  >\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.INTERACTIVE_VIDEO\" i18n\n    >Interactive Video</ng-container\n  >\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.KNOWLEDGE_ARTIFACT\" i18n\n    >Knowledge Artifact</ng-container\n  >\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.KNOWLEDGE_BOARD\" i18n\n    >Knowledge Board</ng-container\n  >\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.LEARNING_JOURNEY\" i18n\n    >Learning Journey</ng-container\n  >\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.MODULE\" >Module</ng-container>\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.PDF\" >Pdf</ng-container>\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.PROGRAM\" >Program</ng-container>\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.QUIZ\" >Quiz</ng-container>\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.RESOURCE\" >Resource</ng-container>\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.VIDEO\" >Video</ng-container>\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.WEB_MODULE\" >Web Module</ng-container>\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.WEB_PAGE\" >Web Page</ng-container>\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.YOUTUBE\" >Youtube</ng-container>\n  <ng-container *ngSwitchDefault >Content</ng-container>\n</span> -->\n", styles: [".content-type-class{color:#000000de;word-break:break-all;white-space:initial;position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i2.NgSwitchDefault, selector: "[ngSwitchDefault]" }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DisplayContentTypeComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ws-widget-display-content-type', template: "<ng-container *ngIf=\"displayContentType\">\n  <span [ngSwitch]=\"displayContentType\" class=\"content-type-class nodtranslate\">\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.ASSESSMENT\" >Assessment</ng-container>\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.AUDIO\" >Audio</ng-container>\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.CHANNEL\" >Channel</ng-container>\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.CERTIFICATION\" i18n\n      >Certification</ng-container\n    >\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.CLASS_DIAGRAM\" i18n\n      >Class Diagram</ng-container\n    >\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.COURSE\" >Course</ng-container>\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.DEFAULT\" >Content</ng-container>\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.DRAG_DROP\" >Drag & Drop</ng-container>\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.EXTERNAL_CERTIFICATION\" i18n\n      >External Certification</ng-container\n    >\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.EXTERNAL_COURSE\" i18n\n      >External Course</ng-container\n    >\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.HANDS_ON\" >Hands-On</ng-container>\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.IAP\" >Hands-On Assessment</ng-container>\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.INSTRUCTOR_LED\" i18n\n      >Instructor-Led</ng-container\n    >\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.INTERACTIVE_VIDEO\" i18n\n      >Interactive Video</ng-container\n    >\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.KNOWLEDGE_ARTIFACT\" i18n\n      >Knowledge Artifact</ng-container\n    >\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.KNOWLEDGE_BOARD\" i18n\n      >Knowledge Board</ng-container\n    >\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.LEARNING_JOURNEY\" i18n\n      >Learning Journey</ng-container\n    >\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.MODULE\" >Module</ng-container>\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.PDF\" >Pdf</ng-container>\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.PROGRAM\" >Program</ng-container>\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.QUIZ\" >Quiz</ng-container>\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.RESOURCE\" >Resource</ng-container>\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.VIDEO\" >Video</ng-container>\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.WEB_MODULE\" >Web Module</ng-container>\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.WEB_PAGE\" >Web Page</ng-container>\n    <ng-container *ngSwitchCase=\"displayContentTypeEnum.YOUTUBE\" >Youtube</ng-container>\n    <ng-container *ngSwitchDefault >{{ translateLabels(displayContentType, 'searchfilters') }}</ng-container>\n  </span>\n  </ng-container>\n<!-- <ng-container *ngIf=\"displayContentType\">{{displayContentType}}</ng-container> -->\n<!-- <span [ngSwitch]=\"displayContentType\">\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.ASSESSMENT\" >Assessment</ng-container>\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.AUDIO\" >Audio</ng-container>\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.CHANNEL\" >Channel</ng-container>\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.CERTIFICATION\" i18n\n    >Certification</ng-container\n  >\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.CLASS_DIAGRAM\" i18n\n    >Class Diagram</ng-container\n  >\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.COURSE\" >Course</ng-container>\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.DEFAULT\" >Content</ng-container>\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.DRAG_DROP\" >Drag & Drop</ng-container>\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.EXTERNAL_CERTIFICATION\" i18n\n    >External Certification</ng-container\n  >\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.EXTERNAL_COURSE\" i18n\n    >External Course</ng-container\n  >\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.HANDS_ON\" >Hands-On</ng-container>\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.IAP\" >Hands-On Assessment</ng-container>\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.INSTRUCTOR_LED\" i18n\n    >Instructor-Led</ng-container\n  >\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.INTERACTIVE_VIDEO\" i18n\n    >Interactive Video</ng-container\n  >\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.KNOWLEDGE_ARTIFACT\" i18n\n    >Knowledge Artifact</ng-container\n  >\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.KNOWLEDGE_BOARD\" i18n\n    >Knowledge Board</ng-container\n  >\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.LEARNING_JOURNEY\" i18n\n    >Learning Journey</ng-container\n  >\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.MODULE\" >Module</ng-container>\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.PDF\" >Pdf</ng-container>\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.PROGRAM\" >Program</ng-container>\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.QUIZ\" >Quiz</ng-container>\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.RESOURCE\" >Resource</ng-container>\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.VIDEO\" >Video</ng-container>\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.WEB_MODULE\" >Web Module</ng-container>\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.WEB_PAGE\" >Web Page</ng-container>\n  <ng-container *ngSwitchCase=\"displayContentTypeEnum.YOUTUBE\" >Youtube</ng-container>\n  <ng-container *ngSwitchDefault >Content</ng-container>\n</span> -->\n", styles: [".content-type-class{color:#000000de;word-break:break-all;white-space:initial;position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}\n"] }]
        }], ctorParameters: function () { return [{ type: i1.MultilingualTranslationsService }]; }, propDecorators: { displayContentType: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64, 