import { Component } from '@angular/core';
import { REPORT_CASE } from '../../constants/report-case.constants';
import * as i0 from "@angular/core";
import * as i1 from "../../services/report-a-case.service";
import * as i2 from "../../../ui-kit/tooltip/tooltip.directive";
export class InformationBlockComponent {
    constructor(reportACaseService) {
        this.reportACaseService = reportACaseService;
        this.workflowDetails = {};
        this.defaultFlow = REPORT_CASE.default_flow;
        this.reportText = REPORT_CASE;
        this.isDefaultFlow = true;
        this.getWorkflowDetails();
    }
    getWorkflowDetails() {
        this.reportACaseService.workflow$.subscribe((res) => {
            this.workflowDetails = res?.data?.workflow_details;
            if (res) {
                this.isDefaultFlow = res?.data?.workflow_details?.isDefault;
            }
        });
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InformationBlockComponent, deps: [{ token: i1.ReportACaseService }], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: InformationBlockComponent, selector: "app-information-block", ngImport: i0, template: "<div class=\"information-block vx-mb-3\" [class.warning]=\"!isDefaultFlow\">\n  <div class=\"vx-d-flex\">\n    <div class=\"vx-fs-11 vx-fw-500 vx-label-txt vx-tt-uppercase vx-mb-2\">\n      THIS WORKFLOW IS ASSIGNED TO THIS CASE BASED ON THE INFORMATION ADDED\n      WITHIN THE CASE DETAILS SECTION.\n    </div>\n    <i\n      class=\"icons info vx-fs-12 vx-txt-blue\"\n      [appTooltip]=\"reportText.tooltipMessage.workflow\"\n      placement=\"bottom-right\"\n      delay=\"0\"\n      type=\"white\"\n      [tooltipMandatory]=\"true\"\n      >&#xe91f;</i\n    >\n  </div>\n  <div\n    class=\"information-block-chip vx-d-inline-flex vx-align-center vx-pl-2 vx-pr-2\"\n  >\n    <div class=\"value vx-fs-11\">\n      {{\n        isDefaultFlow\n          ? defaultFlow\n          : workflowDetails?.workflow_name\n      }}\n    </div>\n    <!-- <div\n      class=\"preview-text vx-fs-11 vx-fw-500 vx-tt-uppercase vx-pl-2 vx-ml-2\"\n    >\n      PREVIEW\n    </div> -->\n  </div>\n  <div\n    class=\"vx-fs-11 vx-fw-500 vx-label-txt vx-tt-uppercase vx-lh-4 vx-mt-3 vx-d-flex\"\n  >\n    <i class=\"icons vx-fs-12 vx-mr-1\">&#xe933;</i>THE WORKFLOW HAS BEEN UPDATED\n    AS PER YOUR SELECTION\n  </div>\n</div>\n", styles: ["@import\"https://cdn.v-comply.com/design-system/css/icons/icons.css\";@import\"https://cdn.v-comply.com/design-system/css/mixin/mixin.css\";@import\"https://cdn.v-comply.com/design-system/css/text/text.css\";@import\"https://cdn.v-comply.com/design-system/css/color/color.css\";@import\"https://cdn.v-comply.com/design-system/css/display/display.css\";@import\"https://cdn.v-comply.com/design-system/css/alignment/alignment.css\";@import\"https://cdn.v-comply.com/design-system/css/width/width.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-top.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-bottom.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-left.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-right.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-top.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-bottom.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-left.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-right.css\";::ng-deep .information-block{background:#f2f2f5;margin:-9px -40px 0;padding:1.5rem 2.5rem 1.25rem}::ng-deep .information-block.warning{background:#fcf2cf}::ng-deep .information-block .info{cursor:pointer;height:.75rem;margin:.125rem 0 0 1.5rem}::ng-deep .information-block-chip{background:#fff;border-radius:.125rem;border:1px solid #f4f8ff;box-shadow:0 0 2px #1e5dd326;height:1.5rem}::ng-deep .information-block-chip .value{color:#000;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}::ng-deep .information-block-chip .preview-text{color:#000;position:relative}::ng-deep .information-block-chip .preview-text:before{background:#000;content:\"\";position:absolute;top:3px;left:0;width:1px;height:10px}\n"], dependencies: [{ kind: "directive", type: i2.ToolTipDirective, selector: "[appTooltip]", inputs: ["appTooltip", "placement", "type", "tooltipMandatory", "showTooltip", "animate"] }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InformationBlockComponent, decorators: [{
            type: Component,
            args: [{ selector: 'app-information-block', template: "<div class=\"information-block vx-mb-3\" [class.warning]=\"!isDefaultFlow\">\n  <div class=\"vx-d-flex\">\n    <div class=\"vx-fs-11 vx-fw-500 vx-label-txt vx-tt-uppercase vx-mb-2\">\n      THIS WORKFLOW IS ASSIGNED TO THIS CASE BASED ON THE INFORMATION ADDED\n      WITHIN THE CASE DETAILS SECTION.\n    </div>\n    <i\n      class=\"icons info vx-fs-12 vx-txt-blue\"\n      [appTooltip]=\"reportText.tooltipMessage.workflow\"\n      placement=\"bottom-right\"\n      delay=\"0\"\n      type=\"white\"\n      [tooltipMandatory]=\"true\"\n      >&#xe91f;</i\n    >\n  </div>\n  <div\n    class=\"information-block-chip vx-d-inline-flex vx-align-center vx-pl-2 vx-pr-2\"\n  >\n    <div class=\"value vx-fs-11\">\n      {{\n        isDefaultFlow\n          ? defaultFlow\n          : workflowDetails?.workflow_name\n      }}\n    </div>\n    <!-- <div\n      class=\"preview-text vx-fs-11 vx-fw-500 vx-tt-uppercase vx-pl-2 vx-ml-2\"\n    >\n      PREVIEW\n    </div> -->\n  </div>\n  <div\n    class=\"vx-fs-11 vx-fw-500 vx-label-txt vx-tt-uppercase vx-lh-4 vx-mt-3 vx-d-flex\"\n  >\n    <i class=\"icons vx-fs-12 vx-mr-1\">&#xe933;</i>THE WORKFLOW HAS BEEN UPDATED\n    AS PER YOUR SELECTION\n  </div>\n</div>\n", styles: ["@import\"https://cdn.v-comply.com/design-system/css/icons/icons.css\";@import\"https://cdn.v-comply.com/design-system/css/mixin/mixin.css\";@import\"https://cdn.v-comply.com/design-system/css/text/text.css\";@import\"https://cdn.v-comply.com/design-system/css/color/color.css\";@import\"https://cdn.v-comply.com/design-system/css/display/display.css\";@import\"https://cdn.v-comply.com/design-system/css/alignment/alignment.css\";@import\"https://cdn.v-comply.com/design-system/css/width/width.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-top.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-bottom.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-left.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-right.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-top.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-bottom.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-left.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-right.css\";::ng-deep .information-block{background:#f2f2f5;margin:-9px -40px 0;padding:1.5rem 2.5rem 1.25rem}::ng-deep .information-block.warning{background:#fcf2cf}::ng-deep .information-block .info{cursor:pointer;height:.75rem;margin:.125rem 0 0 1.5rem}::ng-deep .information-block-chip{background:#fff;border-radius:.125rem;border:1px solid #f4f8ff;box-shadow:0 0 2px #1e5dd326;height:1.5rem}::ng-deep .information-block-chip .value{color:#000;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}::ng-deep .information-block-chip .preview-text{color:#000;position:relative}::ng-deep .information-block-chip .preview-text:before{background:#000;content:\"\";position:absolute;top:3px;left:0;width:1px;height:10px}\n"] }]
        }], ctorParameters: function () { return [{ type: i1.ReportACaseService }]; } });
//# sourceMappingURL=data:application/json;base64, 