"use strict";
(self["webpackChunkfieldtec_web_ng_cli"] = self["webpackChunkfieldtec_web_ng_cli"] || []).push([["client_app_modules_audit_audit_module_ts"],{

/***/ 50679:
/*!********************************************************!*\
  !*** ./client/app/components/audit/audit.component.ts ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "AuditComponent": () => (/* binding */ AuditComponent)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ 98806);
/* harmony import */ var _services_audit_audit_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @services/audit/audit.service */ 60415);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 14001);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ 13252);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 28267);
/* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/button */ 47752);
/* harmony import */ var _angular_material_slider__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/material/slider */ 35291);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/forms */ 18346);











const _c0 = ["diffView"];
function AuditComponent_div_3_Template(rf, ctx) { if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r0.error, " ");
} }
function AuditComponent_div_5_p_3_Template(rf, ctx) { if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", ctx_r4.numberOfVersions, " version(s) available");
} }
function AuditComponent_div_5_mat_slider_8_Template(rf, ctx) { if (rf & 1) {
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "mat-slider", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("input", function AuditComponent_div_5_mat_slider_8_Template_mat_slider_input_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r7); const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r6.onInputChange($event); });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
    const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("max", ctx_r5.max)("min", ctx_r5.min);
} }
function AuditComponent_div_5_Template(rf, ctx) { if (rf & 1) {
    const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "div", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, AuditComponent_div_5_p_3_Template, 2, 1, "p", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "error-template ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "button", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AuditComponent_div_5_Template_button_click_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r8.auditService.navigateToFormUrl(ctx_r8.id); });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, "Open in Form");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, AuditComponent_div_5_mat_slider_8_Template, 1, 2, "mat-slider", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.numberOfVersions);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.numberOfVersions);
} }
function AuditComponent_div_6_option_2_Template(rf, ctx) { if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "option", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
    const version1_r12 = ctx.$implicit;
    const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", version1_r12.versionId);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r10.formatVersionId(version1_r12));
} }
function AuditComponent_div_6_option_4_Template(rf, ctx) { if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "option", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
    const version2_r13 = ctx.$implicit;
    const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", version2_r13.versionId);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r11.formatVersionId(version2_r13));
} }
function AuditComponent_div_6_Template(rf, ctx) { if (rf & 1) {
    const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "select", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function AuditComponent_div_6_Template_select_ngModelChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r15); const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r14.cbxVersionOne = $event; })("ngModelChange", function AuditComponent_div_6_Template_select_ngModelChange_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r15); const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r16.display(); });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, AuditComponent_div_6_option_2_Template, 2, 2, "option", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "select", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function AuditComponent_div_6_Template_select_ngModelChange_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r15); const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r17.cbxVersionTwo = $event; })("ngModelChange", function AuditComponent_div_6_Template_select_ngModelChange_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r15); const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r18.display(); });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, AuditComponent_div_6_option_4_Template, 2, 2, "option", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r2.cbxVersionOne);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r2.versionIds);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r2.cbxVersionTwo);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r2.versionIds);
} }
const _c1 = function (a0, a1) { return { "spinner-showing": a0, "spinner-loading": a1 }; };
const _c2 = function (a0, a1) { return { "spinner-hide": a0, "spinner-show": a1 }; };
class AuditComponent {
    constructor(auditService, element, route) {
        this.auditService = auditService;
        this.element = element;
        this.route = route;
        this.cbxVersionOne = '';
        this.cbxVersionTwo = '';
        this.versionIds = [];
        this.versions = [];
        this.basicValue = 0;
        this.min = 0;
        this.max = 0;
        this.isLoading = true;
    }
    displayDiff(baseDoc, newDoc) {
        return (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__awaiter)(this, void 0, void 0, function* () {
            const base = JSON.stringify(baseDoc, null, 4).replace(/\\n/g, '\n');
            const baseVersion = yield this.auditService.formatVersionId(baseDoc);
            const newBase = JSON.stringify(newDoc, null, 4).replace(/\\n/g, '\n');
            const newBaseVersion = yield this.auditService.formatVersionId(newDoc);
            const diffHTML = yield this.auditService.getDiff(base, newBase, baseVersion, newBaseVersion);
            if (this.previousHTML) {
                this.diffView.nativeElement.removeChild(this.previousHTML);
            }
            if (diffHTML) {
                this.diffView.nativeElement.appendChild(diffHTML);
            }
            this.previousHTML = diffHTML;
            this.isLoading = false;
        });
    }
    getObjProcessDataDiff(index, max, versions, versionIds) {
        return (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__awaiter)(this, void 0, void 0, function* () {
            const processDataDiffResult = yield this.auditService.processDataDiff(index, max, versions, versionIds);
            return processDataDiffResult;
        });
    }
    callDisplayDiff(objDataDiff) {
        return (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__awaiter)(this, void 0, void 0, function* () {
            if (!objDataDiff) {
                this.isLoading = false;
                return;
            }
            yield this.displayDiff(objDataDiff[0], objDataDiff[1]);
            this.cbxVersionOne = objDataDiff[2];
            this.cbxVersionTwo = objDataDiff[3];
        });
    }
    display() {
        return (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__awaiter)(this, void 0, void 0, function* () {
            if (!this.versionIds) {
                return;
            }
            const versionOne = this.cbxVersionOne;
            const versionTwo = this.cbxVersionTwo;
            const fetchResult = yield this.auditService.fetch(this.versions, versionOne, versionTwo);
            return yield this.callDisplayDiff(fetchResult);
        });
    }
    ngOnInit() {
        this.sub = this.route.params.subscribe(params => {
            if (params) {
                this.id = params['id'];
                this.error = null;
                this.auditService
                    .getVersions(this.id)
                    .then(results => {
                    if (results && results.length) {
                        this.numberOfVersions = results.length;
                        this.versionIds = results;
                        this.max = results.length - 1;
                        this.getObjProcessDataDiff(0, this.max, this.versions, this.versionIds).then(result => this.callDisplayDiff(result));
                    }
                    else {
                        this.isLoading = false;
                        this.error = `Document ${this.id} doesn't exist.`;
                    }
                }).catch(error => {
                    console.log(error);
                });
            }
        });
    }
    ngOnDestroy() {
        this.sub.unsubscribe();
    }
    formatVersionId({ versionId, createdDate }) {
        return this.auditService.formatVersionId({ systemHeader: { versionId, createdDate } });
    }
    onInputChange(event) {
        const index = event.value;
        this.basicValue = index;
        return this.getObjProcessDataDiff(index, this.max, this.versions, this.versionIds).then(result => this.callDisplayDiff(result));
    }
}
AuditComponent.ɵfac = function AuditComponent_Factory(t) { return new (t || AuditComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_services_audit_audit_service__WEBPACK_IMPORTED_MODULE_0__.AuditService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_3__.ActivatedRoute)); };
AuditComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AuditComponent, selectors: [["ft-audit-view"]], viewQuery: function AuditComponent_Query(rf, ctx) { if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](_c0, 7);
    } if (rf & 2) {
        let _t;
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.diffView = _t.first);
    } }, decls: 12, vars: 11, consts: [[1, "mat-body"], ["id", "ft-wrapper", 1, "container-fluid", "initialTransitionClass"], ["ft-form-color", "", "ft-main-form-dimension", "", "role", "main", 1, "mainContent"], ["class", "audit-error", 4, "ngIf"], [1, "audit-container"], ["class", "well text-center", 4, "ngIf"], ["class", "version-select-container", 4, "ngIf"], [1, "diff-container", 3, "ngClass"], ["diffView", ""], [1, "spin-loader", 3, "ngClass"], ["viewBox", "25 25 50 50", 1, "circular"], ["cx", "50", "cy", "50", "r", "20", "fill", "none", "stroke-width", "2", "stroke-miterlimit", "10", 1, "path"], [1, "audit-error"], [1, "well", "text-center"], [1, "customColumn-4"], ["class", "lead text-left", 4, "ngIf"], ["type", "button", "mat-raised-button", "", "color", "primary", 1, "customBtnCls", 3, "click"], ["thumbLabel", "", 3, "max", "min", "input", 4, "ngIf"], [1, "lead", "text-left"], ["thumbLabel", "", 3, "max", "min", "input"], [1, "version-select-container"], ["ng-disabled", "readOnly", 1, "cbx-version", 3, "ngModel", "ngModelChange"], [3, "value", 4, "ngFor", "ngForOf"], ["ng-disabled", "readonly", 1, "cbx-version", 3, "ngModel", "ngModelChange"], [3, "value"]], template: function AuditComponent_Template(rf, ctx) { if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, AuditComponent_div_3_Template, 2, 1, "div", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, AuditComponent_div_5_Template, 9, 2, "div", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, AuditComponent_div_6_Template, 5, 4, "div", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](7, "div", 7, 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnamespaceSVG"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "svg", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](11, "circle", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    } if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.error);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.error);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.error);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](5, _c1, !ctx.isLoading, ctx.isLoading));
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](8, _c2, !ctx.isLoading, ctx.isLoading));
    } }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_4__.NgClass, _angular_material_button__WEBPACK_IMPORTED_MODULE_5__.MatButton, _angular_material_slider__WEBPACK_IMPORTED_MODULE_6__.MatSlider, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgModel, _angular_common__WEBPACK_IMPORTED_MODULE_4__.NgForOf, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_7__["ɵNgSelectMultipleOption"]], styles: ["/*\r\nThis is part of jsdifflib v1.0. <http://github.com/cemerick/jsdifflib>\r\n\r\nCopyright 2007 - 2011 Chas Emerick <cemerick@snowtide.com>. All rights reserved.\r\n\r\nRedistribution and use in source and binary forms, with or without modification, are\r\npermitted provided that the following conditions are met:\r\n\r\n   1. Redistributions of source code must retain the above copyright notice, this list of\r\n      conditions and the following disclaimer.\r\n\r\n   2. Redistributions in binary form must reproduce the above copyright notice, this list\r\n      of conditions and the following disclaimer in the documentation and/or other materials\r\n      provided with the distribution.\r\n\r\nTHIS SOFTWARE IS PROVIDED BY Chas Emerick ``AS IS'' AND ANY EXPRESS OR IMPLIED\r\nWARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND\r\nFITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL Chas Emerick OR\r\nCONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\r\nCONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\r\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\r\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r\nNEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF\r\nADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r\n\r\nThe views and conclusions contained in the software and documentation are those of the\r\nauthors and should not be interpreted as representing official policies, either expressed\r\nor implied, of Chas Emerick.\r\n*/\r\ntable.diff {\r\n\tborder-collapse:collapse;\r\n\tborder:1px solid darkgray;\r\n\twhite-space:pre-wrap\r\n}\r\ntable.diff tbody { \r\n\tfont-family:Courier, monospace\r\n}\r\ntable.diff tbody th {\r\n\tfont-family:verdana,arial,'Bitstream Vera Sans',helvetica,sans-serif;\r\n\tbackground:#EED;\r\n\tfont-size:11px;\r\n\tfont-weight:normal;\r\n\tborder:1px solid #BBC;\r\n\tcolor:#886;\r\n\tpadding:.3em .5em .1em 2em;\r\n\ttext-align:right;\r\n\tvertical-align:top\r\n}\r\ntable.diff thead {\r\n\tborder-bottom:1px solid #BBC;\r\n\tbackground:#EFEFEF;\r\n\tfont-family:Verdana\r\n}\r\ntable.diff thead th.texttitle {\r\n\ttext-align:left\r\n}\r\ntable.diff tbody td {\r\n\tpadding:0px .4em;\r\n\tpadding-top:.4em;\r\n\tvertical-align:top;\r\n}\r\ntable.diff .empty {\r\n\tbackground-color:#DDD;\r\n}\r\ntable.diff .replace {\r\n\tbackground-color:#FD8\r\n}\r\ntable.diff .delete {\r\n\tbackground-color:#E99;\r\n}\r\ntable.diff .skip {\r\n\tbackground-color:#EFEFEF;\r\n\tborder:1px solid #AAA;\r\n\tborder-right:1px solid #BBC;\r\n}\r\ntable.diff .insert {\r\n\tbackground-color:#9E9\r\n}\r\ntable.diff th.author {\r\n\ttext-align:right;\r\n\tborder-top:1px solid #BBC;\r\n\tbackground:#EFEFEF\r\n}\r\n.version-select-container {\n  display: flex;\n  justify-content: space-between;\n  width: 100%;\n}\r\n.cbx-version {\n  flex: 1 1 200px;\n  margin-bottom: 20px;\n  height: 35px;\n  min-width: 200px;\n  max-width: 46%;\n}\r\n.spin-loader svg {\n  width: 65px;\n  height: 65px;\n}\r\n.spin-loader {\n  position: absolute;\n  top: 50%;\n  left: 50%;\n}\r\n.spinner-hide {\n  display: none;\n}\r\n.spinner-show {\n  display: unset;\n}\r\n.spinner-loading {\n  opacity: 0.5;\n}\r\n.spinner-showing {\n  opacity: 1;\n}\r\nmat-slider {\n  width: 100%;\n}\r\n.audit-container {\n  padding: 10px;\n}\r\n.audit-container p {\n  margin: 0;\n}\r\n.audit-container .well.text-center {\n  min-height: 136px;\n}\r\n.audit-error {\n  background-color: rgba(237, 61, 61, 0.9);\n  width: 100%;\n  color: #fff;\n  font-family: Montserrat, Arial, sans-serif;\n  font-weight: 500;\n  animation-delay: 0.25s;\n  line-height: 1.5em;\n  text-align: center;\n  box-shadow: 0 3px 7px 0 rgba(0, 0, 0, 0.25);\n  flex-direction: column;\n  box-sizing: border-box;\n  display: flex;\n  place-content: center;\n  align-items: center;\n  display: block;\n  position: inherit;\n  padding: 20px;\n}\r\n.audit-container > div > div {\n  justify-content: center;\n}\r\n.audit-container .well {\n  background: #E0E0E0;\n  margin-bottom: 0;\n  padding: 20px;\n}\r\n.audit-container .well {\n  background: #E0E0E0;\n  margin-bottom: 0;\n}\r\n.audit-container .slider {\n  position: relative;\n  overflow: visible;\n  margin-top: 15px;\n  margin-bottom: 15px;\n  background: none;\n  width: 100% !important;\n}\r\n.audit-container .lead {\n  display: inline-block;\n  margin-right: 20px;\n}\r\ntable.diff {\n  width: 100% !important;\n  max-width: 100% !important;\n  margin-bottom: 20px;\n}\r\n.customColumn-4 {\n  width: 33.33333333%;\n  float: left;\n  position: relative;\n  min-height: 1px;\n  padding: 0px;\n}\r\n.customBtnCls {\n  float: right;\n  background: #0d8fd1 !important;\n  color: white !important;\n  text-transform: none !important;\n}\r\n.text-left {\n  text-align: left;\n}\r\n@media (min-width: 768px) {\n  .lead {\n    font-size: 21px;\n  }\n}\r\n.text-center {\n  text-align: center;\n}\r\n/*# sourceMappingURL=data:application/json;base64,  */"], encapsulation: 2 });


/***/ }),

/***/ 8404:
/*!**********************************************************!*\
  !*** ./client/app/modules/audit/audit-routing.module.ts ***!
  \**********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "AuditRoutingModule": () => (/* binding */ AuditRoutingModule)
/* harmony export */ });
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ 28267);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/router */ 13252);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/forms */ 18346);
/* harmony import */ var _angular_material_slider__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/material/slider */ 35291);
/* harmony import */ var _components_top_bar_top_bar_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @components/top-bar/top-bar.component */ 68686);
/* harmony import */ var _components_audit_audit_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @components/audit/audit.component */ 50679);
/* harmony import */ var _services_audit_audit_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @services/audit/audit.service */ 60415);
/* harmony import */ var _top_bar_top_bar_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../top-bar/top-bar.module */ 85653);
/* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/material/button */ 47752);
/* harmony import */ var _angular_material_badge__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/material/badge */ 9379);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 14001);












const auditRoutes = [
    {
        path: '',
        component: _components_top_bar_top_bar_component__WEBPACK_IMPORTED_MODULE_0__.TopBarComponent,
        children: [
            { path: ':id', component: _components_audit_audit_component__WEBPACK_IMPORTED_MODULE_1__.AuditComponent }
        ]
    }
];
class AuditRoutingModule {
}
AuditRoutingModule.ɵfac = function AuditRoutingModule_Factory(t) { return new (t || AuditRoutingModule)(); };
AuditRoutingModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineNgModule"]({ type: AuditRoutingModule });
AuditRoutingModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjector"]({ providers: [
        _services_audit_audit_service__WEBPACK_IMPORTED_MODULE_2__.AuditService,
    ], imports: [[
            _angular_common__WEBPACK_IMPORTED_MODULE_5__.CommonModule,
            _angular_material_slider__WEBPACK_IMPORTED_MODULE_6__.MatSliderModule,
            _top_bar_top_bar_module__WEBPACK_IMPORTED_MODULE_3__.TopBarModule,
            _angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormsModule,
            _angular_forms__WEBPACK_IMPORTED_MODULE_7__.ReactiveFormsModule,
            _angular_router__WEBPACK_IMPORTED_MODULE_8__.RouterModule.forChild(auditRoutes),
            _angular_material_button__WEBPACK_IMPORTED_MODULE_9__.MatButtonModule,
            _angular_material_badge__WEBPACK_IMPORTED_MODULE_10__.MatBadgeModule
        ]] });
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsetNgModuleScope"](AuditRoutingModule, { declarations: [_components_audit_audit_component__WEBPACK_IMPORTED_MODULE_1__.AuditComponent], imports: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.CommonModule,
        _angular_material_slider__WEBPACK_IMPORTED_MODULE_6__.MatSliderModule,
        _top_bar_top_bar_module__WEBPACK_IMPORTED_MODULE_3__.TopBarModule,
        _angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormsModule,
        _angular_forms__WEBPACK_IMPORTED_MODULE_7__.ReactiveFormsModule, _angular_router__WEBPACK_IMPORTED_MODULE_8__.RouterModule, _angular_material_button__WEBPACK_IMPORTED_MODULE_9__.MatButtonModule,
        _angular_material_badge__WEBPACK_IMPORTED_MODULE_10__.MatBadgeModule] }); })();


/***/ }),

/***/ 32470:
/*!**************************************************!*\
  !*** ./client/app/modules/audit/audit.module.ts ***!
  \**************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "AuditModule": () => (/* binding */ AuditModule)
/* harmony export */ });
/* harmony import */ var _common_formbird_common_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../common/formbird-common.module */ 57046);
/* harmony import */ var _formbird_services__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @formbird/services */ 41557);
/* harmony import */ var _audit_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./audit-routing.module */ 8404);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 14001);




class AuditModule {
    constructor() { }
    ngDoBootstrap() { }
}
AuditModule.ɵfac = function AuditModule_Factory(t) { return new (t || AuditModule)(); };
AuditModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineNgModule"]({ type: AuditModule });
AuditModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjector"]({ providers: [], imports: [[
            _common_formbird_common_module__WEBPACK_IMPORTED_MODULE_0__.FormbirdCommonModule,
            _formbird_services__WEBPACK_IMPORTED_MODULE_1__.FormbirdServicesModule,
            _audit_routing_module__WEBPACK_IMPORTED_MODULE_2__.AuditRoutingModule,
        ]] });
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsetNgModuleScope"](AuditModule, { imports: [_common_formbird_common_module__WEBPACK_IMPORTED_MODULE_0__.FormbirdCommonModule,
        _formbird_services__WEBPACK_IMPORTED_MODULE_1__.FormbirdServicesModule,
        _audit_routing_module__WEBPACK_IMPORTED_MODULE_2__.AuditRoutingModule] }); })();


/***/ })

}]);
//# sourceMappingURL=client_app_modules_audit_audit_module_ts.f5ea20c5975ac3ba.js.map