import { __decorate, __values } from "tslib";
import { Component, Input } from "@angular/core";
import { ItemService } from "../../item-service/item-service.service";
import { FormBuilder, FormGroup, FormArray, FormControl, ValidatorFn, AbstractControl } from "@angular/forms";
var ClinicalMultipleResponseComponent = /** @class */ (function () {
    function ClinicalMultipleResponseComponent(itemService, formBuilder) {
        this.itemService = itemService;
        this.formBuilder = formBuilder;
        // Declare the variables
        this.userAnswer = [];
        this.correctAns = [];
        this.assetData = [];
        this.selectedOrderIds = [];
        this.questionDetails1 = [];
        this.assetPosition = [];
        this.incorrectRationale = [];
        this.imagePath = [];
    }
    Object.defineProperty(ClinicalMultipleResponseComponent.prototype, "questionDetails", {
        get: function () {
            return this.questionDetails;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(ClinicalMultipleResponseComponent.prototype, "questionCurrentData", {
        set: function (value) {
            if (value) {
                this.questionDetails1 = value;
                this.createQuestion();
            }
            else {
                this.questionDetails1 = [];
                this.createQuestion();
            }
        },
        enumerable: true,
        configurable: true
    });
    /* Init */
    ClinicalMultipleResponseComponent.prototype.ngOnInit = function () { };
    ClinicalMultipleResponseComponent.prototype.ngOnChanges = function (changes) {
        console.log("clinical multiple response changes", changes);
    };
    /* Do check */
    ClinicalMultipleResponseComponent.prototype.ngDoCheck = function () {
        if (this.isClearAnswer === true) {
            this.clearUserInputs();
            this.itemService.userAnswerMethod([]);
            this.itemService.clearAnswerMethodFalse(false);
            this.itemService.hideAnswer(false);
        }
        if (this.isShowHide === true) {
            this.message = true;
        }
        else if (this.isShowHide === false) {
            this.message = false;
        }
    };
    /* function to get correct answer */
    ClinicalMultipleResponseComponent.prototype.correctAnswer = function () {
        var e_1, _a;
        try {
            for (var _b = __values(this.questionDetails1.choiceInteraction.simpleChoices), _c = _b.next(); !_c.done; _c = _b.next()) {
                var i = _c.value;
                if (i.correct === true) {
                    this.correctAns.push(i);
                    this.correctAnsString = (this.correctAnsString) ? this.correctAnsString + ', ' + i.label : i.label;
                }
            }
        }
        catch (e_1_1) { e_1 = { error: e_1_1 }; }
        finally {
            try {
                if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
            }
            finally { if (e_1) throw e_1.error; }
        }
        this.incorrectRationale = this.questionDetails1.choiceInteraction.simpleChoices.filter(function (item) { return item.rationale !== null && item.correct !== true; });
    };
    /* function to get selected answer */
    ClinicalMultipleResponseComponent.prototype.selectAnswer = function (option, i) {
        var _this = this;
        this.selectedOrderIds = this.form.value.orders
            .map(function (v, i) {
            return v
                ? _this.questionDetails1.choiceInteraction.simpleChoices[i].choiceId
                : null;
        })
            .filter(function (v) { return v !== null; });
        this.commaSeperatedUserResponseLabel();
        this.userAnswer = this.selectedOrderIds;
        if (this.userAnswer.length !== 0) {
            var answerObj = this.userAnswer;
            this.itemService.userAnswerMethod(answerObj);
            this.itemService.validateAnswerValueMethod(this.isUserAnswersCorrect());
        }
        else {
            this.itemService.userAnswerMethod([]);
            this.itemService.validateAnswerValueMethod(false);
        }
    };
    /* Check wheather the user answer value is correct or not */
    ClinicalMultipleResponseComponent.prototype.isUserAnswersCorrect = function () {
        var e_2, _a;
        var _this = this;
        this.selectedOrderIds = this.form.value.orders
            .map(function (v, i) {
            return v
                ? _this.questionDetails1.choiceInteraction.simpleChoices[i].choiceId
                : null;
        })
            .filter(function (v) { return v !== null; });
        if (this.selectedOrderIds.length !== this.correctAns.length) {
            return false;
        }
        else {
            var _loop_1 = function (answer) {
                if (!this_1.selectedOrderIds.find(function (item) { return item === answer.choiceId; })) {
                    return { value: false };
                }
            };
            var this_1 = this;
            try {
                for (var _b = __values(this.correctAns), _c = _b.next(); !_c.done; _c = _b.next()) {
                    var answer = _c.value;
                    var state_1 = _loop_1(answer);
                    if (typeof state_1 === "object")
                        return state_1.value;
                }
            }
            catch (e_2_1) { e_2 = { error: e_2_1 }; }
            finally {
                try {
                    if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
                }
                finally { if (e_2) throw e_2.error; }
            }
        }
        return true;
    };
    /* function to clear user inputs */
    ClinicalMultipleResponseComponent.prototype.clearUserInputs = function () {
        this.userAnswer = [];
        this.form.reset();
    };
    /* Get choice css class */
    ClinicalMultipleResponseComponent.prototype.getChoiceClassName = function (choiceDetails) {
        var e_3, _a;
        var checked = false;
        try {
            for (var _b = __values(this.selectedOrderIds), _c = _b.next(); !_c.done; _c = _b.next()) {
                var item = _c.value;
                if (choiceDetails["choiceId"] === item) {
                    checked = true;
                }
            }
        }
        catch (e_3_1) { e_3 = { error: e_3_1 }; }
        finally {
            try {
                if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
            }
            finally { if (e_3) throw e_3.error; }
        }
        if (choiceDetails.correct) {
            return "wk-icon-checkmark green-checkmark";
        }
        else if (!choiceDetails.correct && checked === true) {
            return "wk-icon-close wrong-checkmark";
        }
        else {
            return "wk-icon-checkmark disabled-checkmark";
        }
    };
    /* Check the value is changed or not */
    ClinicalMultipleResponseComponent.prototype.valueChanged = function () {
        var _this = this;
        this.selectedOrderIds = this.form.value.orders
            .map(function (v, i) {
            return v
                ? _this.questionDetails1.choiceInteraction.simpleChoices[i].choiceId
                : null;
        })
            .filter(function (v) { return v !== null; });
        this.commaSeperatedUserResponseLabel();
        this.userAnswer = this.selectedOrderIds;
        if (this.userAnswer.length !== 0) {
            var answerObj = this.userAnswer;
            this.itemService.userAnswerMethod(answerObj);
            this.itemService.validateAnswerValueMethod(this.isUserAnswersCorrect());
        }
        else {
            this.itemService.userAnswerMethod([]);
            this.itemService.validateAnswerValueMethod(false);
        }
    };
    ClinicalMultipleResponseComponent.prototype.getFormArray = function () {
        return this.form.get("orders");
    };
    ClinicalMultipleResponseComponent.prototype.createQuestion = function () {
        var e_4, _a;
        this.assetData = this.questionDetails1.parentDetails.assets;
        this.userAnswer = [];
        this.correctAns = [];
        this.incorrectRationale = [];
        this.itemService.userAnswerMethod([]);
        this.itemService.validateAnswerValueMethod(false);
        if (this.assetData.length !== 0) {
            this.assetPosition = this.questionDetails1.parentDetails.assets[0]["assetsPosition"];
        }
        var controls = this.questionDetails1.choiceInteraction.simpleChoices.map(function (c) { return new FormControl(false); });
        this.form = this.formBuilder.group({
            orders: new FormArray(controls)
        });
        this.getFormArray();
        if (this.questionDetails1.userAttemptDetails.userAnswer.length !== 0) {
            for (var i = 0; i < this.questionDetails1.choiceInteraction.simpleChoices.length; i++) {
                try {
                    for (var _b = (e_4 = void 0, __values(this.questionDetails1.userAttemptDetails.userAnswer)), _c = _b.next(); !_c.done; _c = _b.next()) {
                        var j = _c.value;
                        if (this.questionDetails1.choiceInteraction.simpleChoices[i]["choiceId"] === j) {
                            controls[i].setValue(true);
                        }
                    }
                }
                catch (e_4_1) { e_4 = { error: e_4_1 }; }
                finally {
                    try {
                        if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
                    }
                    finally { if (e_4) throw e_4.error; }
                }
            }
            this.valueChanged();
        }
        this.correctAnswer();
    };
    ClinicalMultipleResponseComponent.prototype.commaSeperatedUserResponseLabel = function () {
        var _this = this;
        this.userResponseLabel = '';
        this.selectedOrderIds.forEach(function (selected) {
            var selectedChoice = _this.questionDetails1.choiceInteraction.simpleChoices.find(function (choice) { return choice.choiceId == selected; });
            if (selectedChoice) {
                _this.userResponseLabel = (_this.userResponseLabel) ? _this.userResponseLabel + ', ' + selectedChoice.label : selectedChoice.label;
            }
        });
    };
    ClinicalMultipleResponseComponent.ctorParameters = function () { return [
        { type: ItemService },
        { type: FormBuilder }
    ]; };
    __decorate([
        Input("questionDetails")
    ], ClinicalMultipleResponseComponent.prototype, "questionCurrentData", null);
    __decorate([
        Input()
    ], ClinicalMultipleResponseComponent.prototype, "examEngineType", void 0);
    __decorate([
        Input()
    ], ClinicalMultipleResponseComponent.prototype, "isClearAnswer", void 0);
    __decorate([
        Input()
    ], ClinicalMultipleResponseComponent.prototype, "isShowHide", void 0);
    __decorate([
        Input()
    ], ClinicalMultipleResponseComponent.prototype, "imagePath", void 0);
    __decorate([
        Input()
    ], ClinicalMultipleResponseComponent.prototype, "checkQuizSubmission", void 0);
    __decorate([
        Input()
    ], ClinicalMultipleResponseComponent.prototype, "canShowMetadata", void 0);
    __decorate([
        Input()
    ], ClinicalMultipleResponseComponent.prototype, "preferredTextFormat", void 0);
    ClinicalMultipleResponseComponent = __decorate([
        Component({
            selector: "clinical-multiple-response",
            template: "<!-- ########################## QP exam Engine Type ##########################-->\n<ng-container *ngIf=\"examEngineType == 'QP' || examEngineType == 'NCLEX'\">\n  <!--Question & answer choice Block-->\n  <div class=\"wkqp-row mb20 clinical-res-mb0 clinical-minhight fullwidth-box\">\n    <!--Question Answer Choice-->\n    <div class=\"wkqp-row mb20 clinical-res fullwidth-box\">\n      <div class=\"wkqp-layout-item\">\n        <div class=\"wkqp-field-item normal-font mb0 fullwidth-box\">\n          <fieldset class=\"common-full-width\">\n            <legend\n              class=\"offscreen\"\n              libGetFormatText\n              [preferredTextFormat]=\"preferredTextFormat\"\n              [plainText]=\"questionDetails1.promptText\"\n              [richText]=\"questionDetails1.richPromptText\"\n            ></legend>\n\n            <form [formGroup]=\"form\">\n              <ng-container\n                formArrayName=\"orders\"\n                *ngFor=\"let order of getFormArray().controls; let i = index\"\n              >\n                <div>\n                  <span\n                    *ngIf=\"message\"\n                    [ngClass]=\"\n                      getChoiceClassName(\n                        questionDetails1.choiceInteraction.simpleChoices[i]\n                      )\n                    \"\n                  ></span>\n                  <input\n                    type=\"checkbox\"\n                    [formControlName]=\"i\"\n                    [hidden]=\"message\"\n                    (change)=\"\n                      selectAnswer(\n                        questionDetails1.choiceInteraction.simpleChoices[i],\n                        i\n                      )\n                    \"\n                  />\n                  <span\n                    libGetFormatText\n                    [preferredTextFormat]=\"preferredTextFormat\"\n                    [plainText]=\"\n                      questionDetails1.choiceInteraction.simpleChoices[i].label\n                    \"\n                    [richText]=\"\n                      questionDetails1.choiceInteraction.simpleChoices[i]\n                        .richLabel\n                    \"\n                  ></span>\n                </div>\n                <div\n                  class=\"wkqp-alert-info wkqp-prewrap correct-rationale-section wkqp-prewrap rational-inline\"\n                  *ngIf=\"\n                    message &&\n                    questionDetails1.choiceInteraction.simpleChoices[i]\n                      .rationale\n                  \"\n                >\n                  <strong class=\"rationale-\">Rationale: </strong>\n                  <span\n                    libGetFormatText\n                    [preferredTextFormat]=\"preferredTextFormat\"\n                    [plainText]=\"\n                      questionDetails1.choiceInteraction.simpleChoices[i]\n                        .rationale\n                    \"\n                    [richText]=\"\n                      questionDetails1.choiceInteraction.simpleChoices[i]\n                        .richRationale\n                    \"\n                  ></span>\n                </div>\n              </ng-container>\n            </form>\n          </fieldset>\n        </div>\n      </div>\n    </div>\n\n    <!--Question prompt text-->\n    <div class=\"wkqp-field-item\">\n      <div class=\"wkqp-field-header custom-field-header\">\n        <p\n          class=\"mb20 normal-font wkqp-prewrap heading-h2 heading-h2-pb0 question-prompt-text ng-binding\"\n          libGetFormatText\n          [preferredTextFormat]=\"preferredTextFormat\"\n          [plainText]=\"questionDetails1.promptText\"\n          [richText]=\"questionDetails1.richPromptText\"\n        ></p>\n      </div>\n    </div>\n    <div class=\"wkqp-row mb20 clinical-res\">\n      <div class=\"wkqp-field-header label-heading clinical-heading\">\n        <span>Clinical Presenting Symptoms</span>\n      </div>\n      <!--Carousel-->\n      <media-carousel\n        *ngIf=\"\n          questionDetails1.parentDetails.assets &&\n          questionDetails1.parentDetails.assets.length != 0 &&\n          assetPosition != 'Bottom' &&\n          assetPosition != 'WithinText'\n        \"\n        [imagePath]=\"imagePath\"\n        [assetData]=\"assetData\"\n        [assetsPosition]=\"assetPosition\"\n      ></media-carousel>\n\n      <div\n        [ngClass]=\"{\n          'wk-col-8':\n            questionDetails1.parentDetails.assets != undefined &&\n            questionDetails1.parentDetails.assets.length != 0 &&\n            assetPosition != 'WithinText',\n          'wk-col-12':\n            questionDetails1.parentDetails.assets == undefined ||\n            questionDetails1.parentDetails.assets.length == 0 ||\n            assetPosition == 'WithinText',\n          'right-assets-position-question': assetPosition == 'Right',\n          'left-assets-position-question': assetPosition == 'Left',\n          'top-assets-position-question': assetPosition == 'Top',\n          'bottom-assets-position-question': assetPosition == 'Bottom'\n        }\"\n      >\n        <div class=\"wkqp-layout-item\">\n          <div class=\"wkqp-field-item normal-font mb0 \">\n            <div\n              class=\"wkqp-field-header\"\n              *ngIf=\"assetPosition != 'WithinText'\"\n            >\n              <p\n                class=\"mb20 normal-font wkqp-prewrap heading-h3 headingh3-res question-parent-text\"\n              >\n                {{ questionDetails1.parentDetails.promptText }}\n              </p>\n            </div>\n            <div\n              class=\"wkqp-field-header\"\n              *ngIf=\"assetPosition == 'WithinText'\"\n            >\n              <item-text-assets\n                [promptText]=\"questionDetails1.parentDetails.promptText\"\n                [imagePath]=\"imagePath\"\n                [assetData]=\"assetData\"\n                [assetsPosition]=\"assetPosition\"\n              ></item-text-assets>\n            </div>\n          </div>\n        </div>\n\n        <media-carousel\n          *ngIf=\"\n            questionDetails1.parentDetails.assets &&\n            questionDetails1.parentDetails.assets.length != 0 &&\n            assetPosition == 'Bottom' &&\n            assetPosition != 'WithinText'\n          \"\n          [imagePath]=\"imagePath\"\n          [assetData]=\"assetData\"\n          [assetsPosition]=\"assetPosition\"\n        ></media-carousel>\n      </div>\n    </div>\n  </div>\n  <div *ngIf=\"canShowMetadata && message != true\">\n    <lib-metadata [itemData]=\"questionDetails1\"></lib-metadata>\n  </div>\n\n  <!-- User answer and correct answer block-->\n  <ng-container *ngIf=\"message\">\n    <!--your response-->\n    <span\n      class=\"wkqp-prewrap mt10-al-in  mb20\"\n      [ngClass]=\"\n        isUserAnswersCorrect()\n          ? 'wkqp-alert-success wkqp-success'\n          : 'wkqp-alert-danger wkqp-danger'\n      \"\n      *ngIf=\"userAnswer.length != 0\"\n    >\n      <strong>Your Response:</strong>\n      <span class=\"optionlevel\">{{ userResponseLabel }}</span>\n    </span>\n\n    <!--Correct response-->\n    <span\n      class=\"wkqp-prewrap wkqp-alert-success wkqp-success  mb20\"\n      *ngIf=\"!isUserAnswersCorrect()\"\n    >\n      <strong>Correct Response:</strong>\n      <span class=\"optionlevel\">{{ correctAnsString }}</span>\n    </span>\n    <div *ngIf=\"canShowMetadata\">\n      <lib-metadata [itemData]=\"questionDetails1\"></lib-metadata>\n    </div>\n\n    <div class=\"common-full-width mb20\">\n      <lib-rationale\n        [itemData]=\"questionDetails1.modelFeedback\"\n        [preferredTextFormat]=\"preferredTextFormat\"\n      ></lib-rationale>\n\n      <!--Remediation-->\n      <lib-remediation\n        [itemData]=\"questionDetails1.remediationLinks\"\n        [preferredTextFormat]=\"preferredTextFormat\"\n      ></lib-remediation>\n    </div>\n  </ng-container>\n</ng-container>\n\n<!-- ########################## USMLE exam Engine Type ##########################-->\n<ng-container *ngIf=\"examEngineType == 'USMLE'\">\n  <!--Question and answer block starts-->\n  <div class=\"wkqp-row mb20 clinical-res-mb0 clinical-minhight\">\n    <!--Question answer choice-->\n    <div class=\"wkqp-row mb20 clinical-res\">\n      <div class=\"wkqp-layout-item\">\n        <div class=\"wkqp-field-item normal-font mb0\">\n          <fieldset class=\"common-full-width\">\n            <legend class=\"offscreen\">{{ questionDetails1.promptText }}</legend>\n\n            <form [formGroup]=\"form\">\n              <ng-container\n                formArrayName=\"orders\"\n                *ngFor=\"let order of getFormArray().controls; let i = index\"\n              >\n                <div>\n                  <span\n                    *ngIf=\"checkQuizSubmission == true\"\n                    [ngClass]=\"\n                      getChoiceClassName(\n                        questionDetails1.choiceInteraction.simpleChoices[i]\n                      )\n                    \"\n                  ></span>\n                  <input\n                    type=\"checkbox\"\n                    [formControlName]=\"i\"\n                    [hidden]=\"checkQuizSubmission == true\"\n                    (change)=\"\n                      selectAnswer(\n                        questionDetails1.choiceInteraction.simpleChoices[i],\n                        i\n                      )\n                    \"\n                  />\n                  {{\n                    questionDetails1.choiceInteraction.simpleChoices[i].label\n                  }}\n                </div>\n                <div\n                  class=\"wkqp-alert-info wkqp-prewrap correct-rationale-section wkqp-prewrap\"\n                  *ngIf=\"\n                    checkQuizSubmission == true &&\n                    questionDetails1.choiceInteraction.simpleChoices[i]\n                      .rationale\n                  \"\n                >\n                  <strong>Rationale: </strong>\n                  {{\n                    questionDetails1.choiceInteraction.simpleChoices[i]\n                      .rationale\n                  }}\n                </div>\n              </ng-container>\n            </form>\n          </fieldset>\n        </div>\n      </div>\n    </div>\n\n    <!--Question prompt text-->\n    <div class=\"wkqp-field-item\">\n      <div class=\"wkqp-field-header custom-field-header\">\n        <div class=\"mb20 normal-font wkqp-prewrap\">\n          {{ questionDetails1.promptText }}\n        </div>\n      </div>\n    </div>\n    <div class=\"wkqp-row mb20 clinical-res\">\n      <div class=\"wkqp-field-header label-heading clinical-heading\">\n        <span>Clinical Presenting Symptoms</span>\n      </div>\n      <!--Carousel-->\n      <media-carousel\n        *ngIf=\"\n          questionDetails1.parentDetails.assets &&\n          questionDetails1.parentDetails.assets.length != 0 &&\n          assetPosition != 'Bottom' &&\n          assetPosition != 'WithinText'\n        \"\n        [imagePath]=\"imagePath\"\n        [assetData]=\"assetData\"\n        [assetsPosition]=\"assetPosition\"\n      ></media-carousel>\n\n      <div\n        [ngClass]=\"{\n          'wk-col-8':\n            questionDetails1.parentDetails.assets != undefined &&\n            questionDetails1.parentDetails.assets.length != 0 &&\n            assetPosition != 'WithinText',\n          'wk-col-12':\n            questionDetails1.parentDetails.assets == undefined ||\n            questionDetails1.parentDetails.assets.length == 0 ||\n            assetPosition == 'WithinText',\n          'right-assets-position-question': assetPosition == 'Right',\n          'left-assets-position-question': assetPosition == 'Left',\n          'top-assets-position-question': assetPosition == 'Top',\n          'bottom-assets-position-question': assetPosition == 'Bottom'\n        }\"\n      >\n        <div class=\"wkqp-layout-item\">\n          <div class=\"wkqp-field-item normal-font mb0 \">\n            <div\n              class=\"wkqp-field-header\"\n              *ngIf=\"assetPosition != 'WithinText'\"\n            >\n              <div class=\"mb20 normal-font wkqp-prewrap\">\n                {{ questionDetails1.parentDetails.promptText }}\n              </div>\n            </div>\n            <div\n              class=\"wkqp-field-header\"\n              *ngIf=\"assetPosition == 'WithinText'\"\n            >\n              <item-text-assets\n                [promptText]=\"questionDetails1.parentDetails.promptText\"\n                [imagePath]=\"imagePath\"\n                [assetData]=\"assetData\"\n                [assetsPosition]=\"assetPosition\"\n              ></item-text-assets>\n            </div>\n          </div>\n        </div>\n\n        <media-carousel\n          *ngIf=\"\n            questionDetails1.parentDetails.assets &&\n            questionDetails1.parentDetails.assets.length != 0 &&\n            assetPosition == 'Bottom' &&\n            assetPosition != 'WithinText'\n          \"\n          [imagePath]=\"imagePath\"\n          [assetData]=\"assetData\"\n          [assetsPosition]=\"assetPosition\"\n        ></media-carousel>\n      </div>\n    </div>\n  </div>\n\n  <!--User answer and correct answer-->\n  <ng-container *ngIf=\"checkQuizSubmission == true\">\n    <!--Your response-->\n    <span\n      class=\"wkqp-prewrap mt10-al-in  mb20\"\n      [ngClass]=\"\n        isUserAnswersCorrect()\n          ? 'wkqp-alert-success wkqp-success'\n          : 'wkqp-alert-danger wkqp-danger'\n      \"\n      *ngIf=\"userAnswer.length != 0\"\n    >\n      <strong>Your Response:</strong>\n\n      <form [formGroup]=\"form\" class=\"your-response-form\">\n        <ng-container\n          formArrayName=\"orders\"\n          *ngFor=\"let order of getFormArray().controls; let i = index\"\n        >\n          <span *ngIf=\"order.value === true\" class=\"optionlevel\">\n            {{ questionDetails1.choiceInteraction.simpleChoices[i].label }},\n          </span>\n        </ng-container>\n      </form>\n    </span>\n\n    <!--Correct response-->\n    <span\n      class=\"wkqp-prewrap wkqp-alert-success wkqp-success \"\n      *ngIf=\"!isUserAnswersCorrect()\"\n    >\n      <strong>Correct Response:</strong>\n      <ng-container *ngFor=\"let item of correctAns\">\n        <span class=\"optionlevel\"> {{ item.label }}, </span>\n      </ng-container>\n    </span>\n\n    <!--Rationale-->\n    <p\n      class=\"wk-row common-full-width\"\n      *ngIf=\"questionDetails1.modelFeedback[0].length !== 0\"\n    >\n      <strong>Rationale:</strong>\n      <span>{{ questionDetails1.modelFeedback[0].feedbackText }}</span>\n    </p>\n\n    <!--Remediation-->\n    <div\n      class=\"wk-row common-full-width\"\n      *ngIf=\"questionDetails1.remediationLinks.length !== 0\"\n    >\n      <strong>Remediation:</strong>\n      <div\n        *ngFor=\"\n          let Remediation of questionDetails1.remediationLinks;\n          let k = index\n        \"\n      >\n        <span *ngIf=\"Remediation.linkTypeId == 1\">{{\n          Remediation.linkText1\n        }}</span>\n        <span *ngIf=\"Remediation.linkTypeId != 1\">\n          {{ Remediation.linkText1 }}</span\n        >\n      </div>\n    </div>\n  </ng-container>\n</ng-container>\n",
            styles: [".bottom-assets-position-question{float:left!important;width:100%!important}"]
        })
    ], ClinicalMultipleResponseComponent);
    return ClinicalMultipleResponseComponent;
}());
export { ClinicalMultipleResponseComponent };
//# sourceMappingURL=data:application/json;base64, 