<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[73],{

/***/ "./node_modules/ngx-bootstrap/tooltip/ngx-bootstrap-tooltip.ngfactory.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/ngx-bootstrap/tooltip/ngx-bootstrap-tooltip.ngfactory.js ***!
  \*******************************************************************************/
/*! exports provided: TooltipModuleNgFactory, RenderType_TooltipContainerComponent, View_TooltipContainerComponent_0, View_TooltipContainerComponent_Host_0, TooltipContainerComponentNgFactory */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TooltipModuleNgFactory", function() { return TooltipModuleNgFactory; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RenderType_TooltipContainerComponent", function() { return RenderType_TooltipContainerComponent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "View_TooltipContainerComponent_0", function() { return View_TooltipContainerComponent_0; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "View_TooltipContainerComponent_Host_0", function() { return View_TooltipContainerComponent_Host_0; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TooltipContainerComponentNgFactory", function() { return TooltipContainerComponentNgFactory; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var ngx_bootstrap_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ngx-bootstrap/tooltip */ "./node_modules/ngx-bootstrap/tooltip/fesm5/ngx-bootstrap-tooltip.js");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js");
/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */



var TooltipModuleNgFactory = /*@__PURE__*/ /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµcmf"](ngx_bootstrap_tooltip__WEBPACK_IMPORTED_MODULE_1__["TooltipModule"], [], function (_l) { return _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµmod"]([_angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµmpd"](512, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ÉµCodegenComponentFactoryResolver"], [[8, [TooltipContainerComponentNgFactory]], [3, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModuleRef"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµmpd"](4608, _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgLocalization"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgLocaleLocalization"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"], [2, _angular_common__WEBPACK_IMPORTED_MODULE_2__["Éµangular_packages_common_common_a"]]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµmpd"](1073742336, _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµmpd"](1073742336, ngx_bootstrap_tooltip__WEBPACK_IMPORTED_MODULE_1__["TooltipModule"], ngx_bootstrap_tooltip__WEBPACK_IMPORTED_MODULE_1__["TooltipModule"], [])]); });

var styles_TooltipContainerComponent = [".tooltip[_nghost-%COMP%] {\n      display: block;\n      pointer-events: none;\n    }\n    .bs3.tooltip.top[_nghost-%COMP%] &gt; .arrow[_ngcontent-%COMP%] {\n      margin-left: -2px;\n    }\n    .bs3.tooltip.bottom[_nghost-%COMP%] {\n      margin-top: 0px;\n    }\n    .bs3.bs-tooltip-left[_nghost-%COMP%], .bs3.bs-tooltip-right[_nghost-%COMP%]{\n      margin: 0px;\n    }\n    .bs3.bs-tooltip-right[_nghost-%COMP%]   .arrow[_ngcontent-%COMP%], .bs3.bs-tooltip-left[_nghost-%COMP%]   .arrow[_ngcontent-%COMP%] {\n      margin: .3rem 0;\n    }"];
var RenderType_TooltipContainerComponent = /*@__PURE__*/ /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµcrt"]({ encapsulation: 0, styles: styles_TooltipContainerComponent, data: {} });

function View_TooltipContainerComponent_0(_l) { return _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµvid"](2, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµeld"](0, 0, null, null, 0, "div", [["class", "tooltip-arrow arrow"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµeld"](1, 0, null, null, 1, "div", [["class", "tooltip-inner"]], null, null, null, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµncd"](null, 0)], null, null); }
function View_TooltipContainerComponent_Host_0(_l) { return _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµeld"](0, 0, null, null, 1, "bs-tooltip-container", [["role", "tooltip"]], [[8, "className", 0], [2, "show", null], [2, "bs3", null], [1, "id", 0]], null, null, View_TooltipContainerComponent_0, RenderType_TooltipContainerComponent)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµdid"](1, 4243456, null, 0, ngx_bootstrap_tooltip__WEBPACK_IMPORTED_MODULE_1__["TooltipContainerComponent"], [ngx_bootstrap_tooltip__WEBPACK_IMPORTED_MODULE_1__["TooltipConfig"]], null, null)], null, function (_ck, _v) { var currVal_0 = (((((((("tooltip in tooltip-" + _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµnov"](_v, 1).placement) + " ") + "bs-tooltip-") + _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµnov"](_v, 1).placement) + " ") + _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµnov"](_v, 1).placement) + " ") + _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµnov"](_v, 1).containerClass); var currVal_1 = !_angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµnov"](_v, 1).isBs3; var currVal_2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµnov"](_v, 1).isBs3; var currVal_3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµnov"](_v, 1).id; _ck(_v, 0, 0, currVal_0, currVal_1, currVal_2, currVal_3); }); }
var TooltipContainerComponentNgFactory = /*@__PURE__*/ /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµccf"]("bs-tooltip-container", ngx_bootstrap_tooltip__WEBPACK_IMPORTED_MODULE_1__["TooltipContainerComponent"], View_TooltipContainerComponent_Host_0, {}, {}, ["*"]);



/***/ }),

/***/ "./src/app/patton/login/accept-legal.component.ngfactory.js":
/*!******************************************************************!*\
  !*** ./src/app/patton/login/accept-legal.component.ngfactory.js ***!
  \******************************************************************/
/*! exports provided: RenderType_AcceptLegal, View_AcceptLegal_0, View_AcceptLegal_Host_0, AcceptLegalNgFactory */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RenderType_AcceptLegal", function() { return RenderType_AcceptLegal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "View_AcceptLegal_0", function() { return View_AcceptLegal_0; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "View_AcceptLegal_Host_0", function() { return View_AcceptLegal_Host_0; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AcceptLegalNgFactory", function() { return AcceptLegalNgFactory; });
/* harmony import */ var _login_style_scss_ngstyle__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./login.style.scss.ngstyle */ "./src/app/patton/login/login.style.scss.ngstyle.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/fesm5/forms.js");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js");
/* harmony import */ var _accept_legal_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./accept-legal.component */ "./src/app/patton/login/accept-legal.component.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _shared_context_context_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../shared/context/context.service */ "./src/app/patton/shared/context/context.service.ts");
/* harmony import */ var _shared_rest_api_services_authentication_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../shared/rest-api/services/authentication.service */ "./src/app/patton/shared/rest-api/services/authentication.service.ts");
/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */








var styles_AcceptLegal = [_login_style_scss_ngstyle__WEBPACK_IMPORTED_MODULE_0__["styles"]];
var RenderType_AcceptLegal = /*@__PURE__*/ /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµcrt"]({ encapsulation: 2, styles: styles_AcceptLegal, data: {} });

function View_AcceptLegal_2(_l) {
    return _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](0, 0, null, null, 15, "div", [["style", "margin-bottom:2em"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](1, 0, null, null, 5, "div", [["style", "margin-bottom:.5em"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](2, 0, null, null, 4, "p", [["style", "text-align:left"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµted"](-1, null, [" Please review our "])), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](4, 0, null, null, 1, "a", [["target", "_blank"]], [[8, "href", 4]], null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµted"](5, null, ["", ""])), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµted"](-1, null, [" carefully and accept it by ticking the box below. "])), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](7, 0, null, null, 8, "div", [["class", "checkbox abc-checkbox abc-checkbox-success widget-login-info"], ["style", "text-align:right"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](8, 0, null, null, 5, "input", [["type", "checkbox"], ["value", "1"]], [[8, "id", 0], [2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null]], [[null, "ngModelChange"], [null, "change"], [null, "blur"]], function (_v, en, $event) {
            var ad = true;
            if (("change" === en)) {
                var pd_0 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 9).onChange($event.target.checked) !== false);
                ad = (pd_0 &amp;&amp; ad);
            }
            if (("blur" === en)) {
                var pd_1 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 9).onTouched() !== false);
                ad = (pd_1 &amp;&amp; ad);
            }
            if (("ngModelChange" === en)) {
                var pd_2 = ((_v.parent.context.$implicit.isAccepted = $event) !== false);
                ad = (pd_2 &amp;&amp; ad);
            }
            return ad;
        }, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](9, 16384, null, 0, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["CheckboxControlValueAccessor"], [_angular_core__WEBPACK_IMPORTED_MODULE_1__["Renderer2"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]], null, null), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµprd"](1024, null, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NG_VALUE_ACCESSOR"], function (p0_0) { return [p0_0]; }, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["CheckboxControlValueAccessor"]]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](11, 671744, null, 0, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgModel"], [[2, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ControlContainer"]], [8, null], [8, null], [6, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NG_VALUE_ACCESSOR"]]], { name: [0, "name"], model: [1, "model"] }, { update: "ngModelChange" }), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµprd"](2048, null, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControl"], null, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgModel"]]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](13, 16384, null, 0, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], [[4, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControl"]]], null, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](14, 0, null, null, 1, "label", [], [[8, "htmlFor", 0]], null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµted"](15, null, ["Accept the ", ""]))], function (_ck, _v) { var currVal_10 = ("checkbox_" + _v.parent.context.$implicit.type); var currVal_11 = _v.parent.context.$implicit.isAccepted; _ck(_v, 11, 0, currVal_10, currVal_11); }, function (_ck, _v) { var currVal_0 = _v.parent.context.$implicit.url; _ck(_v, 4, 0, currVal_0); var currVal_1 = _v.parent.context.$implicit.name; _ck(_v, 5, 0, currVal_1); var currVal_2 = ("checkbox_" + _v.parent.context.$implicit.type); var currVal_3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 13).ngClassUntouched; var currVal_4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 13).ngClassTouched; var currVal_5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 13).ngClassPristine; var currVal_6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 13).ngClassDirty; var currVal_7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 13).ngClassValid; var currVal_8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 13).ngClassInvalid; var currVal_9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 13).ngClassPending; _ck(_v, 8, 0, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6, currVal_7, currVal_8, currVal_9); var currVal_12 = ("checkbox_" + _v.parent.context.$implicit.type); _ck(_v, 14, 0, currVal_12); var currVal_13 = _v.parent.context.$implicit.name; _ck(_v, 15, 0, currVal_13); });
}
function View_AcceptLegal_1(_l) { return _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](0, 0, null, null, 2, "div", [], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµand"](16777216, null, null, 1, null, View_AcceptLegal_2)), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](2, 16384, null, 0, _angular_common__WEBPACK_IMPORTED_MODULE_3__["NgIf"], [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewContainerRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["TemplateRef"]], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) { var currVal_0 = _v.context.$implicit.isAcceptanceRequired; _ck(_v, 2, 0, currVal_0); }, null); }
function View_AcceptLegal_0(_l) {
    return _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](0, 0, null, null, 23, "div", [], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](1, 0, null, null, 20, "main", [["class", "widget-login-container"], ["id", "content"], ["role", "main"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](2, 0, null, null, 19, "div", [["class", "row"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](3, 0, null, null, 18, "div", [["class", "col-xl-4 col-md-6 col-10 offset-xl-4 offset-md-3 offset-1"], ["style", "text-align:center"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](4, 0, null, null, 17, "section", [["class", "widget widget-login animated fadeInUp"], ["style", "display:inline-block;box-shadow:2px 2px 20px 4px #bbb"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](5, 0, null, null, 3, "header", [], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](6, 0, null, null, 1, "h4", [], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµted"](-1, null, ["Legal Information"])), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](8, 0, null, null, 0, "img", [["alt", "Patton logo"], ["src", "assets/img/patton-logo2.png"], ["style", "margin-top:.8em;margin-bottom:.8em"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](9, 0, null, null, 12, "div", [["class", "widget-body"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](10, 0, null, null, 11, "form", [["class", "login-form mt-lg parsleyjs"], ["data-parsley-priority-enabled", "false"], ["id", "set-password-form"], ["method", "post"], ["novalidate", ""]], [[2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null]], [[null, "submit"], [null, "reset"]], function (_v, en, $event) {
            var ad = true;
            var _co = _v.component;
            if (("submit" === en)) {
                var pd_0 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 12).onSubmit($event) !== false);
                ad = (pd_0 &amp;&amp; ad);
            }
            if (("reset" === en)) {
                var pd_1 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 12).onReset() !== false);
                ad = (pd_1 &amp;&amp; ad);
            }
            if (("submit" === en)) {
                var pd_2 = (_co.accept() !== false);
                ad = (pd_2 &amp;&amp; ad);
            }
            return ad;
        }, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](11, 16384, null, 0, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Éµangular_packages_forms_forms_bh"], [], null, null), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](12, 4210688, null, 0, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgForm"], [[8, null], [8, null]], null, null), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµprd"](2048, null, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ControlContainer"], null, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgForm"]]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](14, 16384, null, 0, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatusGroup"], [[4, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ControlContainer"]]], null, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](15, 0, null, null, 2, "div", [["class", "form-group"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµand"](16777216, null, null, 1, null, View_AcceptLegal_1)), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](17, 278528, null, 0, _angular_common__WEBPACK_IMPORTED_MODULE_3__["NgForOf"], [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewContainerRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["TemplateRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["IterableDiffers"]], { ngForOf: [0, "ngForOf"] }, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](18, 0, null, null, 3, "div", [["class", "clearfix"], ["style", "margin-top:3em"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](19, 0, null, null, 2, "div", [["class", "btn-toolbar float-right"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](20, 0, null, null, 1, "button", [["class", "btn btn-primary btn-sm"], ["type", "submit"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµted"](-1, null, ["Accept"])), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](22, 0, null, null, 1, "footer", [["class", "page-footer"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµted"](-1, null, [" \u00A9 Patton Electronics Co. 2017-2023 "]))], function (_ck, _v) { var _co = _v.component; var currVal_7 = _co.legal; _ck(_v, 17, 0, currVal_7); }, function (_ck, _v) { var currVal_0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 14).ngClassUntouched; var currVal_1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 14).ngClassTouched; var currVal_2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 14).ngClassPristine; var currVal_3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 14).ngClassDirty; var currVal_4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 14).ngClassValid; var currVal_5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 14).ngClassInvalid; var currVal_6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 14).ngClassPending; _ck(_v, 10, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6); });
}
function View_AcceptLegal_Host_0(_l) { return _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](0, 0, null, null, 1, "accept-legal", [["class", "login-page app"]], null, null, null, View_AcceptLegal_0, RenderType_AcceptLegal)), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](1, 114688, null, 0, _accept_legal_component__WEBPACK_IMPORTED_MODULE_4__["AcceptLegal"], [_angular_router__WEBPACK_IMPORTED_MODULE_5__["Router"], _shared_context_context_service__WEBPACK_IMPORTED_MODULE_6__["Context"], _shared_rest_api_services_authentication_service__WEBPACK_IMPORTED_MODULE_7__["AuthenticationRestApi"]], null, null)], function (_ck, _v) { _ck(_v, 1, 0); }, null); }
var AcceptLegalNgFactory = /*@__PURE__*/ /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµccf"]("accept-legal", _accept_legal_component__WEBPACK_IMPORTED_MODULE_4__["AcceptLegal"], View_AcceptLegal_Host_0, {}, {}, []);



/***/ }),

/***/ "./src/app/patton/login/accept-legal.component.ts":
/*!********************************************************!*\
  !*** ./src/app/patton/login/accept-legal.component.ts ***!
  \********************************************************/
/*! exports provided: AcceptLegal */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AcceptLegal", function() { return AcceptLegal; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var debug_levels__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! debug-levels */ "./node_modules/debug-levels/index.js");
/* harmony import */ var debug_levels__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(debug_levels__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _context_context_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @context/context.service */ "./src/app/patton/shared/context/context.service.ts");
/* harmony import */ var _rest__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @rest */ "./src/app/patton/shared/rest-api/index.ts");

// Framework


// Debugging

var debug = debug_levels__WEBPACK_IMPORTED_MODULE_3__('pcloud:login');
// Shared services

// Data model

var AcceptLegal = /** @class */ (function () {
    // --- initialization ------------------------------------------------------
    function AcceptLegal(router, context, authApi) {
        this.router = router;
        this.context = context;
        this.authApi = authApi;
        // --- properties ----------------------------------------------------------
        // View model
        this.legal = [];
    }
    //--------------------------------------------------------------------------
    AcceptLegal.prototype.ngOnInit = function () {
        return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () {
            return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                // Set up form validation.
                this.validator = jQuery('.parsleyjs').parsley();
                // Navigate to the login page if the user is not logged in.
                if (!this.context.userInfo.user) {
                    debug('User not logged in; navigating to login screen.');
                    this.router.navigate(['login']);
                }
                debug('New user:', this.context.userInfo.user);
                // Store legal information locally.
                this.legal = this.context.userInfo.user.legal;
                debug('New legal information:', this.legal);
                return [2 /*return*/];
            });
        });
    };
    // --- functions called by view --------------------------------------------
    AcceptLegal.prototype.accept = function () {
        return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () {
            var _i, _a, document_1;
            return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_b) {
                switch (_b.label) {
                    case 0:
                        debug('Accepting legal documents; validating form...');
                        this.validator = jQuery('.parsleyjs').parsley();
                        if (!this.validator.validate()) return [3 /*break*/, 6];
                        debug('Form data is valid');
                        _i = 0, _a = this.legal;
                        _b.label = 1;
                    case 1:
                        if (!(_i &lt; _a.length)) return [3 /*break*/, 5];
                        document_1 = _a[_i];
                        if (!document_1.isAcceptanceRequired) return [3 /*break*/, 4];
                        if (!document_1.isAccepted) return [3 /*break*/, 3];
                        debug('The user has accepted the', document_1.name);
                        return [4 /*yield*/, this.authApi.acceptLegal(document_1.type)];
                    case 2:
                        _b.sent();
                        return [3 /*break*/, 4];
                    case 3:
                        debug('The user has NOT accepted the', document_1.name);
                        this.context.error('Accept legal document', "Please accept the " + document_1.name);
                        return [2 /*return*/];
                    case 4:
                        _i++;
                        return [3 /*break*/, 1];
                    case 5:
                        debug('Navigating to the home page');
                        this.context.home();
                        return [3 /*break*/, 7];
                    case 6:
                        debug('Form data is not yet valid');
                        _b.label = 7;
                    case 7: return [2 /*return*/];
                }
            });
        });
    };
    return AcceptLegal;
}());

// --- eof -------------------------------------------------------------------


/***/ }),

/***/ "./src/app/patton/login/login.component.ngfactory.js":
/*!***********************************************************!*\
  !*** ./src/app/patton/login/login.component.ngfactory.js ***!
  \***********************************************************/
/*! exports provided: RenderType_Login, View_Login_0, View_Login_Host_0, LoginNgFactory */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RenderType_Login", function() { return RenderType_Login; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "View_Login_0", function() { return View_Login_0; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "View_Login_Host_0", function() { return View_Login_Host_0; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LoginNgFactory", function() { return LoginNgFactory; });
/* harmony import */ var _login_style_scss_ngstyle__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./login.style.scss.ngstyle */ "./src/app/patton/login/login.style.scss.ngstyle.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/fesm5/forms.js");
/* harmony import */ var ngx_bootstrap_tooltip__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ngx-bootstrap/tooltip */ "./node_modules/ngx-bootstrap/tooltip/fesm5/ngx-bootstrap-tooltip.js");
/* harmony import */ var ngx_bootstrap_component_loader__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ngx-bootstrap/component-loader */ "./node_modules/ngx-bootstrap/component-loader/fesm5/ngx-bootstrap-component-loader.js");
/* harmony import */ var ngx_bootstrap_positioning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ngx-bootstrap/positioning */ "./node_modules/ngx-bootstrap/positioning/fesm5/ngx-bootstrap-positioning.js");
/* harmony import */ var angular2_text_mask__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! angular2-text-mask */ "./node_modules/angular2-text-mask/dist/angular2TextMask.js");
/* harmony import */ var angular2_text_mask__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(angular2_text_mask__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js");
/* harmony import */ var _login_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./login.component */ "./src/app/patton/login/login.component.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _shared_context_context_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../shared/context/context.service */ "./src/app/patton/shared/context/context.service.ts");
/* harmony import */ var _shared_rest_api_services_authentication_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../shared/rest-api/services/authentication.service */ "./src/app/patton/shared/rest-api/services/authentication.service.ts");
/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */












var styles_Login = [_login_style_scss_ngstyle__WEBPACK_IMPORTED_MODULE_0__["styles"]];
var RenderType_Login = /*@__PURE__*/ /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµcrt"]({ encapsulation: 2, styles: styles_Login, data: {} });

function View_Login_1(_l) { return _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](0, 0, null, null, 1, "p", [["class", "widget-login-info"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµted"](-1, null, [" Use your email address and password to sign in. Don't have an account? Ask the administrator of your organization! "]))], null, null); }
function View_Login_2(_l) { return _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](0, 0, null, null, 1, "p", [["class", "widget-login-info"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµted"](-1, null, [" Use your email address to sign in. You will be asked to set your password immediately afterwards! "]))], null, null); }
function View_Login_3(_l) {
    return _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](0, 0, null, null, 9, "div", [["class", "form-group input-group"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](1, 0, null, null, 5, "input", [["class", "form-control"], ["id", "password"], ["name", "password"], ["placeholder", "Enter your password"]], [[8, "type", 0], [2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null]], [[null, "ngModelChange"], [null, "input"], [null, "blur"], [null, "compositionstart"], [null, "compositionend"]], function (_v, en, $event) {
            var ad = true;
            var _co = _v.component;
            if (("input" === en)) {
                var pd_0 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 2)._handleInput($event.target.value) !== false);
                ad = (pd_0 &amp;&amp; ad);
            }
            if (("blur" === en)) {
                var pd_1 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 2).onTouched() !== false);
                ad = (pd_1 &amp;&amp; ad);
            }
            if (("compositionstart" === en)) {
                var pd_2 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 2)._compositionStart() !== false);
                ad = (pd_2 &amp;&amp; ad);
            }
            if (("compositionend" === en)) {
                var pd_3 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 2)._compositionEnd($event.target.value) !== false);
                ad = (pd_3 &amp;&amp; ad);
            }
            if (("ngModelChange" === en)) {
                var pd_4 = ((_co.password = $event) !== false);
                ad = (pd_4 &amp;&amp; ad);
            }
            return ad;
        }, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](2, 16384, null, 0, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], [_angular_core__WEBPACK_IMPORTED_MODULE_1__["Renderer2"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], [2, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["COMPOSITION_BUFFER_MODE"]]], null, null), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµprd"](1024, null, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NG_VALUE_ACCESSOR"], function (p0_0) { return [p0_0]; }, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"]]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](4, 671744, null, 0, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgModel"], [[2, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ControlContainer"]], [8, null], [8, null], [6, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NG_VALUE_ACCESSOR"]]], { name: [0, "name"], isDisabled: [1, "isDisabled"], model: [2, "model"] }, { update: "ngModelChange" }), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµprd"](2048, null, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControl"], null, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgModel"]]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](6, 16384, null, 0, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], [[4, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControl"]]], null, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](7, 0, null, null, 2, "span", [["class", "input-group-addon"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](8, 16777216, null, null, 1, "i", [["class", "fa fa-eye fa-fw"], ["placement", "right"], ["tooltip", "Show/hide password"]], [[2, "fa-eye-slash", null], [2, "fa-eye", null]], [[null, "click"]], function (_v, en, $event) {
            var ad = true;
            var _co = _v.component;
            if (("click" === en)) {
                var pd_0 = ((_co.hidePassword = !_co.hidePassword) !== false);
                ad = (pd_0 &amp;&amp; ad);
            }
            return ad;
        }, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](9, 212992, null, 0, ngx_bootstrap_tooltip__WEBPACK_IMPORTED_MODULE_3__["TooltipDirective"], [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewContainerRef"], ngx_bootstrap_component_loader__WEBPACK_IMPORTED_MODULE_4__["ComponentLoaderFactory"], ngx_bootstrap_tooltip__WEBPACK_IMPORTED_MODULE_3__["TooltipConfig"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["Renderer2"], ngx_bootstrap_positioning__WEBPACK_IMPORTED_MODULE_5__["PositioningService"]], { tooltip: [0, "tooltip"], placement: [1, "placement"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_8 = "password"; var currVal_9 = _co.showProgress; var currVal_10 = _co.password; _ck(_v, 4, 0, currVal_8, currVal_9, currVal_10); var currVal_13 = "Show/hide password"; var currVal_14 = "right"; _ck(_v, 9, 0, currVal_13, currVal_14); }, function (_ck, _v) { var _co = _v.component; var currVal_0 = (_co.hidePassword ? "password" : "text"); var currVal_1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 6).ngClassUntouched; var currVal_2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 6).ngClassTouched; var currVal_3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 6).ngClassPristine; var currVal_4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 6).ngClassDirty; var currVal_5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 6).ngClassValid; var currVal_6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 6).ngClassInvalid; var currVal_7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 6).ngClassPending; _ck(_v, 1, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6, currVal_7); var currVal_11 = _co.hidePassword; var currVal_12 = !_co.hidePassword; _ck(_v, 8, 0, currVal_11, currVal_12); });
}
function View_Login_4(_l) {
    return _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](0, 0, null, null, 11, "div", [["class", "form-group input-group"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](1, 0, null, null, 1, "p", [["class", "widget-login-info"], ["style", "text-align:left;margin-bottom:.5em;margin-top:.5em"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµted"](-1, null, [" Please enter your personal six-digit authentication token displayed on your smartphone app to login. "])), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](3, 0, [[2, 0], ["tokenField", 1]], null, 6, "input", [["class", "form-control"], ["id", "token"], ["name", "token"], ["placeholder", "Enter personal authentication token"], ["type", "text"]], [[2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null]], [[null, "ngModelChange"], [null, "input"], [null, "blur"], [null, "compositionstart"], [null, "compositionend"]], function (_v, en, $event) {
            var ad = true;
            var _co = _v.component;
            if (("input" === en)) {
                var pd_0 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 4)._handleInput($event.target.value) !== false);
                ad = (pd_0 &amp;&amp; ad);
            }
            if (("blur" === en)) {
                var pd_1 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 4).onTouched() !== false);
                ad = (pd_1 &amp;&amp; ad);
            }
            if (("compositionstart" === en)) {
                var pd_2 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 4)._compositionStart() !== false);
                ad = (pd_2 &amp;&amp; ad);
            }
            if (("compositionend" === en)) {
                var pd_3 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 4)._compositionEnd($event.target.value) !== false);
                ad = (pd_3 &amp;&amp; ad);
            }
            if (("input" === en)) {
                var pd_4 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 5)._handleInput($event.target.value) !== false);
                ad = (pd_4 &amp;&amp; ad);
            }
            if (("blur" === en)) {
                var pd_5 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 5).onTouched() !== false);
                ad = (pd_5 &amp;&amp; ad);
            }
            if (("compositionstart" === en)) {
                var pd_6 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 5)._compositionStart() !== false);
                ad = (pd_6 &amp;&amp; ad);
            }
            if (("compositionend" === en)) {
                var pd_7 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 5)._compositionEnd($event.target.value) !== false);
                ad = (pd_7 &amp;&amp; ad);
            }
            if (("ngModelChange" === en)) {
                var pd_8 = ((_co.token = _co.unmask($event)) !== false);
                ad = (pd_8 &amp;&amp; ad);
            }
            return ad;
        }, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](4, 16384, null, 0, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], [_angular_core__WEBPACK_IMPORTED_MODULE_1__["Renderer2"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], [2, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["COMPOSITION_BUFFER_MODE"]]], null, null), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](5, 540672, null, 0, angular2_text_mask__WEBPACK_IMPORTED_MODULE_6__["MaskedInputDirective"], [_angular_core__WEBPACK_IMPORTED_MODULE_1__["Renderer2"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], [2, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["COMPOSITION_BUFFER_MODE"]]], { textMaskConfig: [0, "textMaskConfig"] }, null), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµprd"](1024, null, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NG_VALUE_ACCESSOR"], function (p0_0, p1_0) { return [p0_0, p1_0]; }, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], angular2_text_mask__WEBPACK_IMPORTED_MODULE_6__["MaskedInputDirective"]]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](7, 671744, null, 0, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgModel"], [[2, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ControlContainer"]], [8, null], [8, null], [6, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NG_VALUE_ACCESSOR"]]], { name: [0, "name"], isDisabled: [1, "isDisabled"], model: [2, "model"] }, { update: "ngModelChange" }), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµprd"](2048, null, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControl"], null, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgModel"]]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](9, 16384, null, 0, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], [[4, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControl"]]], null, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](10, 0, null, null, 1, "span", [["class", "input-group-addon"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](11, 0, null, null, 0, "i", [["class", "fa fa-lock fa-fw"]], null, null, null, null, null))], function (_ck, _v) { var _co = _v.component; var currVal_7 = _co.tokenMask; _ck(_v, 5, 0, currVal_7); var currVal_8 = "token"; var currVal_9 = _co.showProgress; var currVal_10 = _co.token; _ck(_v, 7, 0, currVal_8, currVal_9, currVal_10); }, function (_ck, _v) { var currVal_0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 9).ngClassUntouched; var currVal_1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 9).ngClassTouched; var currVal_2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 9).ngClassPristine; var currVal_3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 9).ngClassDirty; var currVal_4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 9).ngClassValid; var currVal_5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 9).ngClassInvalid; var currVal_6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 9).ngClassPending; _ck(_v, 3, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6); });
}
function View_Login_5(_l) {
    return _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](0, 0, null, null, 11, "div", [["class", "row"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](1, 0, null, null, 10, "div", [["class", "col-12"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](2, 0, null, null, 9, "div", [["class", "clearfix"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](3, 0, null, null, 8, "div", [["class", "form-check abc-checkbox widget-login-info float-right pl-0"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](4, 0, null, null, 5, "input", [["id", "remember"], ["name", "remember"], ["type", "checkbox"], ["value", "1"]], [[2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null]], [[null, "ngModelChange"], [null, "change"], [null, "blur"]], function (_v, en, $event) {
            var ad = true;
            var _co = _v.component;
            if (("change" === en)) {
                var pd_0 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 5).onChange($event.target.checked) !== false);
                ad = (pd_0 &amp;&amp; ad);
            }
            if (("blur" === en)) {
                var pd_1 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 5).onTouched() !== false);
                ad = (pd_1 &amp;&amp; ad);
            }
            if (("ngModelChange" === en)) {
                var pd_2 = ((_co.remember = $event) !== false);
                ad = (pd_2 &amp;&amp; ad);
            }
            return ad;
        }, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](5, 16384, null, 0, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["CheckboxControlValueAccessor"], [_angular_core__WEBPACK_IMPORTED_MODULE_1__["Renderer2"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]], null, null), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµprd"](1024, null, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NG_VALUE_ACCESSOR"], function (p0_0) { return [p0_0]; }, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["CheckboxControlValueAccessor"]]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](7, 671744, null, 0, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgModel"], [[2, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ControlContainer"]], [8, null], [8, null], [6, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NG_VALUE_ACCESSOR"]]], { name: [0, "name"], isDisabled: [1, "isDisabled"], model: [2, "model"] }, { update: "ngModelChange" }), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµprd"](2048, null, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControl"], null, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgModel"]]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](9, 16384, null, 0, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], [[4, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControl"]]], null, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](10, 0, null, null, 1, "label", [["for", "remember"], ["style", "white-space:nowrap;padding-top:2px"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµted"](-1, null, ["Keep me signed in "]))], function (_ck, _v) { var _co = _v.component; var currVal_7 = "remember"; var currVal_8 = _co.showProgress; var currVal_9 = _co.remember; _ck(_v, 7, 0, currVal_7, currVal_8, currVal_9); }, function (_ck, _v) { var currVal_0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 9).ngClassUntouched; var currVal_1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 9).ngClassTouched; var currVal_2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 9).ngClassPristine; var currVal_3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 9).ngClassDirty; var currVal_4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 9).ngClassValid; var currVal_5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 9).ngClassInvalid; var currVal_6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 9).ngClassPending; _ck(_v, 4, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6); });
}
function View_Login_6(_l) { return _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](0, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµted"](-1, null, ["Login"]))], null, null); }
function View_Login_7(_l) { return _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](0, 0, null, null, 2, "span", [], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµted"](-1, null, ["Logging in "])), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](2, 0, null, null, 0, "i", [["class", "fa fa-spinner fa-spin"]], null, null, null, null, null))], null, null); }
function View_Login_0(_l) {
    return _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµvid"](0, [_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµqud"](402653184, 1, { emailField: 0 }), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµqud"](671088640, 2, { tokenField: 0 }), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](2, 0, null, null, 58, "div", [["class", "container"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](3, 0, null, null, 55, "main", [["class", "widget-login-container"], ["id", "content"], ["role", "main"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](4, 0, null, null, 54, "div", [["class", "row justify-content-center"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](5, 0, null, null, 53, "div", [["class", "col-12"], ["style", "text-align:center"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](6, 0, null, null, 52, "section", [["class", "widget widget-login animated fadeInUp"], ["style", "display:inline-block;box-shadow:2px 2px 20px 4px #bbb"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](7, 0, null, null, 3, "header", [], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](8, 0, null, null, 1, "h4", [], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµted"](-1, null, ["Login to the"])), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](10, 0, null, null, 0, "img", [["alt", "Patton logo"], ["src", "assets/img/patton-logo2.png"], ["style", "margin-top:.8em;margin-bottom:.8em"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](11, 0, null, null, 47, "div", [["class", "widget-body"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµand"](16777216, null, null, 1, null, View_Login_1)), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](13, 16384, null, 0, _angular_common__WEBPACK_IMPORTED_MODULE_7__["NgIf"], [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewContainerRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµand"](16777216, null, null, 1, null, View_Login_2)), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](15, 16384, null, 0, _angular_common__WEBPACK_IMPORTED_MODULE_7__["NgIf"], [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewContainerRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](16, 0, null, null, 42, "form", [["class", "login-form mt-lg"], ["novalidate", ""]], [[2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null]], [[null, "submit"], [null, "reset"]], function (_v, en, $event) {
            var ad = true;
            if (("submit" === en)) {
                var pd_0 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 18).onSubmit($event) !== false);
                ad = (pd_0 &amp;&amp; ad);
            }
            if (("reset" === en)) {
                var pd_1 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 18).onReset() !== false);
                ad = (pd_1 &amp;&amp; ad);
            }
            return ad;
        }, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](17, 16384, null, 0, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Éµangular_packages_forms_forms_bh"], [], null, null), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](18, 4210688, null, 0, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgForm"], [[8, null], [8, null]], null, null), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµprd"](2048, null, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ControlContainer"], null, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgForm"]]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](20, 16384, null, 0, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatusGroup"], [[4, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ControlContainer"]]], null, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](21, 0, null, null, 8, "div", [["class", "form-group input-group"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](22, 0, [[1, 0], ["emailField", 1]], null, 5, "input", [["autofocus", ""], ["class", "form-control"], ["id", "email"], ["name", "email"], ["placeholder", "Please enter email address"], ["type", "text"]], [[2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null]], [[null, "ngModelChange"], [null, "input"], [null, "blur"], [null, "compositionstart"], [null, "compositionend"]], function (_v, en, $event) {
            var ad = true;
            var _co = _v.component;
            if (("input" === en)) {
                var pd_0 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 23)._handleInput($event.target.value) !== false);
                ad = (pd_0 &amp;&amp; ad);
            }
            if (("blur" === en)) {
                var pd_1 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 23).onTouched() !== false);
                ad = (pd_1 &amp;&amp; ad);
            }
            if (("compositionstart" === en)) {
                var pd_2 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 23)._compositionStart() !== false);
                ad = (pd_2 &amp;&amp; ad);
            }
            if (("compositionend" === en)) {
                var pd_3 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 23)._compositionEnd($event.target.value) !== false);
                ad = (pd_3 &amp;&amp; ad);
            }
            if (("ngModelChange" === en)) {
                var pd_4 = ((_co.email = $event) !== false);
                ad = (pd_4 &amp;&amp; ad);
            }
            return ad;
        }, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](23, 16384, null, 0, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], [_angular_core__WEBPACK_IMPORTED_MODULE_1__["Renderer2"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], [2, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["COMPOSITION_BUFFER_MODE"]]], null, null), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµprd"](1024, null, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NG_VALUE_ACCESSOR"], function (p0_0) { return [p0_0]; }, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"]]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](25, 671744, null, 0, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgModel"], [[2, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ControlContainer"]], [8, null], [8, null], [6, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NG_VALUE_ACCESSOR"]]], { name: [0, "name"], isDisabled: [1, "isDisabled"], model: [2, "model"] }, { update: "ngModelChange" }), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµprd"](2048, null, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControl"], null, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgModel"]]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](27, 16384, null, 0, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], [[4, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControl"]]], null, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](28, 0, null, null, 1, "span", [["class", "input-group-addon"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](29, 0, null, null, 0, "i", [["class", "fa fa-user fa-fw"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµand"](16777216, null, null, 1, null, View_Login_3)), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](31, 16384, null, 0, _angular_common__WEBPACK_IMPORTED_MODULE_7__["NgIf"], [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewContainerRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµand"](16777216, null, null, 1, null, View_Login_4)), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](33, 16384, null, 0, _angular_common__WEBPACK_IMPORTED_MODULE_7__["NgIf"], [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewContainerRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµand"](16777216, null, null, 1, null, View_Login_5)), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](35, 16384, null, 0, _angular_common__WEBPACK_IMPORTED_MODULE_7__["NgIf"], [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewContainerRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](36, 0, null, null, 13, "div", [["class", "row"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](37, 0, null, null, 12, "div", [["class", "col-12"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](38, 0, null, null, 11, "p", [], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµted"](-1, null, [" By logging in you accept"])), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](40, 0, null, null, 0, "br", [], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµted"](-1, null, [" Patton's "])), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](42, 0, null, null, 1, "a", [["href", "https://www.patton.com/legal/cloud-sla.asp"], ["target", "_blank"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµted"](-1, null, ["Service-Level Aggreement (SLA)"])), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµted"](-1, null, [","])), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](45, 0, null, null, 0, "br", [], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµted"](-1, null, [" and our "])), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](47, 0, null, null, 1, "a", [["href", "https://www.patton.com/legal/privacy.asp"], ["target", "_blank"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµted"](-1, null, ["Privacy Statement"])), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµted"](-1, null, [". "])), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](50, 0, null, null, 8, "div", [["class", "row"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](51, 0, null, null, 7, "div", [["class", "col-12"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](52, 0, null, null, 6, "div", [["class", "clearfix"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](53, 0, null, null, 5, "div", [["class", "btn-toolbar float-right"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](54, 0, null, null, 4, "button", [["class", "btn btn-primary btn-sm"], ["style", "min-width:10em; margin-top:1.5em"]], [[8, "disabled", 0]], [[null, "click"]], function (_v, en, $event) {
            var ad = true;
            var _co = _v.component;
            if (("click" === en)) {
                var pd_0 = (_co.login() !== false);
                ad = (pd_0 &amp;&amp; ad);
            }
            return ad;
        }, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµand"](16777216, null, null, 1, null, View_Login_6)), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](56, 16384, null, 0, _angular_common__WEBPACK_IMPORTED_MODULE_7__["NgIf"], [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewContainerRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµand"](16777216, null, null, 1, null, View_Login_7)), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](58, 16384, null, 0, _angular_common__WEBPACK_IMPORTED_MODULE_7__["NgIf"], [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewContainerRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](59, 0, null, null, 1, "footer", [["class", "page-footer"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµted"](-1, null, [" \u00A9 Patton Electronics Co. 2017-2023 "]))], function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.showPasswordField; _ck(_v, 13, 0, currVal_0); var currVal_1 = !_co.showPasswordField; _ck(_v, 15, 0, currVal_1); var currVal_16 = "email"; var currVal_17 = _co.showProgress; var currVal_18 = _co.email; _ck(_v, 25, 0, currVal_16, currVal_17, currVal_18); var currVal_19 = _co.showPasswordField; _ck(_v, 31, 0, currVal_19); var currVal_20 = _co.showTokenField; _ck(_v, 33, 0, currVal_20); var currVal_21 = _co.showPasswordField; _ck(_v, 35, 0, currVal_21); var currVal_23 = !_co.showProgress; _ck(_v, 56, 0, currVal_23); var currVal_24 = _co.showProgress; _ck(_v, 58, 0, currVal_24); }, function (_ck, _v) { var _co = _v.component; var currVal_2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 20).ngClassUntouched; var currVal_3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 20).ngClassTouched; var currVal_4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 20).ngClassPristine; var currVal_5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 20).ngClassDirty; var currVal_6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 20).ngClassValid; var currVal_7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 20).ngClassInvalid; var currVal_8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 20).ngClassPending; _ck(_v, 16, 0, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6, currVal_7, currVal_8); var currVal_9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 27).ngClassUntouched; var currVal_10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 27).ngClassTouched; var currVal_11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 27).ngClassPristine; var currVal_12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 27).ngClassDirty; var currVal_13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 27).ngClassValid; var currVal_14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 27).ngClassInvalid; var currVal_15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 27).ngClassPending; _ck(_v, 22, 0, currVal_9, currVal_10, currVal_11, currVal_12, currVal_13, currVal_14, currVal_15); var currVal_22 = _co.showProgress; _ck(_v, 54, 0, currVal_22); });
}
function View_Login_Host_0(_l) { return _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](0, 0, null, null, 1, "login", [["class", "login-page app"]], null, null, null, View_Login_0, RenderType_Login)), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](1, 4440064, null, 0, _login_component__WEBPACK_IMPORTED_MODULE_8__["Login"], [_angular_router__WEBPACK_IMPORTED_MODULE_9__["ActivatedRoute"], _angular_router__WEBPACK_IMPORTED_MODULE_9__["Router"], _shared_context_context_service__WEBPACK_IMPORTED_MODULE_10__["Context"], _shared_rest_api_services_authentication_service__WEBPACK_IMPORTED_MODULE_11__["AuthenticationRestApi"]], null, null)], function (_ck, _v) { _ck(_v, 1, 0); }, null); }
var LoginNgFactory = /*@__PURE__*/ /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµccf"]("login", _login_component__WEBPACK_IMPORTED_MODULE_8__["Login"], View_Login_Host_0, {}, {}, []);



/***/ }),

/***/ "./src/app/patton/login/login.component.ts":
/*!*************************************************!*\
  !*** ./src/app/patton/login/login.component.ts ***!
  \*************************************************/
/*! exports provided: Login */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Login", function() { return Login; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var debug_levels__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! debug-levels */ "./node_modules/debug-levels/index.js");
/* harmony import */ var debug_levels__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(debug_levels__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _context_context_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @context/context.service */ "./src/app/patton/shared/context/context.service.ts");
/* harmony import */ var _rest__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @rest */ "./src/app/patton/shared/rest-api/index.ts");

// Framework


// Debugging

var debug = debug_levels__WEBPACK_IMPORTED_MODULE_3__('pcloud:login');
// Shared services

// Data model

var Login = /** @class */ (function () {
    // --- initialization ------------------------------------------------------
    function Login(route, router, context, authApi) {
        this.route = route;
        this.router = router;
        this.context = context;
        this.authApi = authApi;
        this.tokenMask = {
            mask: [/\d/, /\d/, /\d/, ' ', /\d/, /\d/, /\d/]
        };
        this.password = '';
        this.token = '';
        this.remember = true;
        this.showPasswordField = true;
        this.hidePassword = true;
        this.showTokenField = false;
        this.showProgress = false;
        this.successUrl = null;
    }
    // -------------------------------------------------------------------------
    Login.prototype.ngOnInit = function () {
        var _this = this;
        this.context.logout(false);
        this.queryParamsSub = this.route.queryParams.subscribe(function (params) {
            debug('Query parameters: %o', params);
            _this.showPasswordField = !(params['password'] === 'false');
            debug('%s password field', _this.showPasswordField ? 'Show' : 'Hide');
            _this.successUrl = params['successUrl'];
            debug('Success URL:', _this.successUrl);
        });
    };
    // -------------------------------------------------------------------------
    Login.prototype.ngOnDestroy = function () {
        this.queryParamsSub.unsubscribe();
    };
    // -------------------------------------------------------------------------
    Login.prototype.ngAfterViewInit = function () {
        return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () {
            return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                this.emailField.nativeElement.focus();
                return [2 /*return*/];
            });
        });
    };
    // --- functions called by view --------------------------------------------
    Login.prototype.unmask = function (event) {
        return event.replace(/\D+/g, '');
    };
    // -------------------------------------------------------------------------
    Login.prototype.login = function () {
        return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () {
            return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                if (this.showTokenField) {
                    return [2 /*return*/, this.loginForReal()];
                }
                else {
                    return [2 /*return*/, this.getLoginInfo()];
                }
                return [2 /*return*/];
            });
        });
    };
    // -------------------------------------------------------------------------
    Login.prototype.getLoginInfo = function () {
        return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () {
            var loginInfo, e_1;
            var _this = this;
            return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                switch (_a.label) {
                    case 0:
                        debug('Get login info for', this.email);
                        this.showProgress = true;
                        loginInfo = null;
                        _a.label = 1;
                    case 1:
                        _a.trys.push([1, 3, , 4]);
                        return [4 /*yield*/, this.authApi.getLoginInfo(this.email, this.password)];
                    case 2:
                        loginInfo = _a.sent();
                        return [3 /*break*/, 4];
                    case 3:
                        e_1 = _a.sent();
                        return [3 /*break*/, 4];
                    case 4:
                        debug('Login info:', loginInfo);
                        if (!loginInfo || loginInfo.twoFactorAuthenticationStatus !== 'enabled') {
                            return [2 /*return*/, this.loginForReal()];
                        }
                        // Two-factor authentication is required. Let the user enter the
                        // personal authentication token.
                        this.showProgress = false;
                        this.showTokenField = true;
                        setTimeout(function () { return _this.tokenField.nativeElement.focus(); }, 200);
                        this.context.warning('Login', 'Your personal authentication token is required');
                        return [2 /*return*/];
                }
            });
        });
    };
    // -------------------------------------------------------------------------
    Login.prototype.loginForReal = function () {
        return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () {
            var userInfo, allLegalDocumentsAccepted;
            return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                switch (_a.label) {
                    case 0:
                        debug('Logging in as', this.email);
                        this.showProgress = true;
                        return [4 /*yield*/, this.context.login(this.email, this.password, this.token, this.remember)];
                    case 1:
                        userInfo = _a.sent();
                        if (userInfo) {
                            if (userInfo.user.isPasswordSet) {
                                allLegalDocumentsAccepted = userInfo.user.legal.reduce(function (result, document) { return result &amp;&amp; !document.isAcceptanceRequired; }, true);
                                if (allLegalDocumentsAccepted) {
                                    if (this.successUrl) {
                                        debug('Navigating to the original URL:', this.successUrl);
                                        if (this.successUrl.startsWith('http:') || this.successUrl.startsWith('https:')) {
                                            document.location.href = this.successUrl;
                                        }
                                        else {
                                            this.router.navigateByUrl("/api/v2/auth/redirect-authenticated?href=" + encodeURIComponent(this.successUrl));
                                        }
                                    }
                                    else {
                                        debug('Navigating to the home page');
                                        this.context.home();
                                    }
                                }
                                else {
                                    debug('The user needs to accept some legal documents');
                                    this.router.navigate(['login', 'accept']);
                                }
                            }
                            else {
                                debug('Not password set for the logged in user');
                                this.router.navigate(['login', 'set-password']);
                            }
                        }
                        else {
                            this.showProgress = false;
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    return Login;
}());

// --- eof -------------------------------------------------------------------


/***/ }),

/***/ "./src/app/patton/login/login.module.ngfactory.js":
/*!********************************************************!*\
  !*** ./src/app/patton/login/login.module.ngfactory.js ***!
  \********************************************************/
/*! exports provided: LoginModuleNgFactory */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LoginModuleNgFactory", function() { return LoginModuleNgFactory; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _login_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./login.module */ "./src/app/patton/login/login.module.ts");
/* harmony import */ var _node_modules_ngx_bootstrap_tooltip_ngx_bootstrap_tooltip_ngfactory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../node_modules/ngx-bootstrap/tooltip/ngx-bootstrap-tooltip.ngfactory */ "./node_modules/ngx-bootstrap/tooltip/ngx-bootstrap-tooltip.ngfactory.js");
/* harmony import */ var _node_modules_angular_router_router_ngfactory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../node_modules/@angular/router/router.ngfactory */ "./node_modules/@angular/router/router.ngfactory.js");
/* harmony import */ var _login_component_ngfactory__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./login.component.ngfactory */ "./src/app/patton/login/login.component.ngfactory.js");
/* harmony import */ var _set_password_component_ngfactory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./set-password.component.ngfactory */ "./src/app/patton/login/set-password.component.ngfactory.js");
/* harmony import */ var _accept_legal_component_ngfactory__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./accept-legal.component.ngfactory */ "./src/app/patton/login/accept-legal.component.ngfactory.js");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/fesm5/forms.js");
/* harmony import */ var ngx_bootstrap_tooltip__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-bootstrap/tooltip */ "./node_modules/ngx-bootstrap/tooltip/fesm5/ngx-bootstrap-tooltip.js");
/* harmony import */ var ngx_bootstrap_positioning__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ngx-bootstrap/positioning */ "./node_modules/ngx-bootstrap/positioning/fesm5/ngx-bootstrap-positioning.js");
/* harmony import */ var ngx_bootstrap_component_loader__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ngx-bootstrap/component-loader */ "./node_modules/ngx-bootstrap/component-loader/fesm5/ngx-bootstrap-component-loader.js");
/* harmony import */ var angular2_text_mask__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! angular2-text-mask */ "./node_modules/angular2-text-mask/dist/angular2TextMask.js");
/* harmony import */ var angular2_text_mask__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(angular2_text_mask__WEBPACK_IMPORTED_MODULE_12__);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _login_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./login.component */ "./src/app/patton/login/login.component.ts");
/* harmony import */ var _set_password_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./set-password.component */ "./src/app/patton/login/set-password.component.ts");
/* harmony import */ var _accept_legal_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./accept-legal.component */ "./src/app/patton/login/accept-legal.component.ts");
/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */

















var LoginModuleNgFactory = /*@__PURE__*/ /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµcmf"](_login_module__WEBPACK_IMPORTED_MODULE_1__["LoginModule"], [], function (_l) { return _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµmod"]([_angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµmpd"](512, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ÉµCodegenComponentFactoryResolver"], [[8, [_node_modules_ngx_bootstrap_tooltip_ngx_bootstrap_tooltip_ngfactory__WEBPACK_IMPORTED_MODULE_2__["TooltipContainerComponentNgFactory"], _node_modules_angular_router_router_ngfactory__WEBPACK_IMPORTED_MODULE_3__["ÉµEmptyOutletComponentNgFactory"], _login_component_ngfactory__WEBPACK_IMPORTED_MODULE_4__["LoginNgFactory"], _set_password_component_ngfactory__WEBPACK_IMPORTED_MODULE_5__["SetPasswordNgFactory"], _accept_legal_component_ngfactory__WEBPACK_IMPORTED_MODULE_6__["AcceptLegalNgFactory"]]], [3, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModuleRef"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµmpd"](4608, _angular_common__WEBPACK_IMPORTED_MODULE_7__["NgLocalization"], _angular_common__WEBPACK_IMPORTED_MODULE_7__["NgLocaleLocalization"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"], [2, _angular_common__WEBPACK_IMPORTED_MODULE_7__["Éµangular_packages_common_common_a"]]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµmpd"](4608, _angular_forms__WEBPACK_IMPORTED_MODULE_8__["Éµangular_packages_forms_forms_j"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["Éµangular_packages_forms_forms_j"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµmpd"](4608, ngx_bootstrap_tooltip__WEBPACK_IMPORTED_MODULE_9__["TooltipConfig"], ngx_bootstrap_tooltip__WEBPACK_IMPORTED_MODULE_9__["TooltipConfig"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµmpd"](4608, ngx_bootstrap_positioning__WEBPACK_IMPORTED_MODULE_10__["PositioningService"], ngx_bootstrap_positioning__WEBPACK_IMPORTED_MODULE_10__["PositioningService"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["RendererFactory2"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµmpd"](4608, ngx_bootstrap_component_loader__WEBPACK_IMPORTED_MODULE_11__["ComponentLoaderFactory"], ngx_bootstrap_component_loader__WEBPACK_IMPORTED_MODULE_11__["ComponentLoaderFactory"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"], ngx_bootstrap_positioning__WEBPACK_IMPORTED_MODULE_10__["PositioningService"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ApplicationRef"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµmpd"](1073742336, _angular_common__WEBPACK_IMPORTED_MODULE_7__["CommonModule"], _angular_common__WEBPACK_IMPORTED_MODULE_7__["CommonModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµmpd"](1073742336, _angular_forms__WEBPACK_IMPORTED_MODULE_8__["Éµangular_packages_forms_forms_bc"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["Éµangular_packages_forms_forms_bc"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµmpd"](1073742336, _angular_forms__WEBPACK_IMPORTED_MODULE_8__["FormsModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["FormsModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµmpd"](1073742336, angular2_text_mask__WEBPACK_IMPORTED_MODULE_12__["TextMaskModule"], angular2_text_mask__WEBPACK_IMPORTED_MODULE_12__["TextMaskModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµmpd"](1073742336, ngx_bootstrap_tooltip__WEBPACK_IMPORTED_MODULE_9__["TooltipModule"], ngx_bootstrap_tooltip__WEBPACK_IMPORTED_MODULE_9__["TooltipModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµmpd"](1073742336, _angular_router__WEBPACK_IMPORTED_MODULE_13__["RouterModule"], _angular_router__WEBPACK_IMPORTED_MODULE_13__["RouterModule"], [[2, _angular_router__WEBPACK_IMPORTED_MODULE_13__["Éµangular_packages_router_router_a"]], [2, _angular_router__WEBPACK_IMPORTED_MODULE_13__["Router"]]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµmpd"](1073742336, _login_module__WEBPACK_IMPORTED_MODULE_1__["LoginModule"], _login_module__WEBPACK_IMPORTED_MODULE_1__["LoginModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["Éµmpd"](1024, _angular_router__WEBPACK_IMPORTED_MODULE_13__["ROUTES"], function () { return [[{ path: "", component: _login_component__WEBPACK_IMPORTED_MODULE_14__["Login"], pathMatch: "full" }, { path: "set-password", component: _set_password_component__WEBPACK_IMPORTED_MODULE_15__["SetPassword"] }, { path: "accept", component: _accept_legal_component__WEBPACK_IMPORTED_MODULE_16__["AcceptLegal"] }]]; }, [])]); });



/***/ }),

/***/ "./src/app/patton/login/login.module.ts":
/*!**********************************************!*\
  !*** ./src/app/patton/login/login.module.ts ***!
  \**********************************************/
/*! exports provided: LoginModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LoginModule", function() { return LoginModule; });
var LoginModule = /** @class */ /*@__PURE__*/ (function () {
    function LoginModule() {
    }
    return LoginModule;
}());



/***/ }),

/***/ "./src/app/patton/login/login.style.scss.ngstyle.js":
/*!**********************************************************!*\
  !*** ./src/app/patton/login/login.style.scss.ngstyle.js ***!
  \**********************************************************/
/*! exports provided: styles */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "styles", function() { return styles; });
/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */
var styles = ["\n\n\n\n.login-page {\n  background-color: #f5f5f5 !important; }\n.login-page .page-footer {\n  margin-bottom: 25px;\n  font-size: 0.9rem;\n  color: #798892;\n  text-align: center; }\n@media (min-height: 600px) {\n    .login-page .page-footer {\n      position: fixed;\n      bottom: 0;\n      left: 0;\n      right: 0; } }\n.widget-login-container {\n  padding-top: 10%; }\n.widget-login-logo {\n  margin-top: 15px;\n  margin-bottom: 15px;\n  text-align: center;\n  font-weight: 400; }\n.widget-login-logo .fa-circle {\n    font-size: 13px;\n    margin: 0 20px; }\n.widget-login {\n  padding: 30px;\n  max-width: 28em; }\n.widget-login &gt; header h1, .widget-login &gt; header h2, .widget-login &gt; header h3, .widget-login &gt; header h4, .widget-login &gt; header h5, .widget-login &gt; header h6 {\n    font-weight: 400;\n    text-align: center; }\n.widget-login-info {\n  font-size: 0.9rem;\n  color: #888;\n  margin-top: 1px;\n  margin-bottom: 0;\n  text-align: left; }\n.widget-login-info.abc-checkbox {\n    margin-left: -25px; }\n.login-form .form-control {\n  font-size: 0.9rem;\n  border: 1px solid rgba(0, 0, 0, 0.15);\n  background-color: #e9ecef; }\n.login-form .form-control:focus {\n    background-color: #d6dee5; }\n.login-form p {\n  margin-top: 1.5em;\n  margin-bottom: 0;\n  text-align: right;\n  font-size: smaller;\n  color: #aaa; }\n"];



/***/ }),

/***/ "./src/app/patton/login/set-password.component.ngfactory.js":
/*!******************************************************************!*\
  !*** ./src/app/patton/login/set-password.component.ngfactory.js ***!
  \******************************************************************/
/*! exports provided: RenderType_SetPassword, View_SetPassword_0, View_SetPassword_Host_0, SetPasswordNgFactory */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RenderType_SetPassword", function() { return RenderType_SetPassword; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "View_SetPassword_0", function() { return View_SetPassword_0; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "View_SetPassword_Host_0", function() { return View_SetPassword_Host_0; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SetPasswordNgFactory", function() { return SetPasswordNgFactory; });
/* harmony import */ var _login_style_scss_ngstyle__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./login.style.scss.ngstyle */ "./src/app/patton/login/login.style.scss.ngstyle.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/fesm5/forms.js");
/* harmony import */ var _set_password_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./set-password.component */ "./src/app/patton/login/set-password.component.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _shared_context_context_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../shared/context/context.service */ "./src/app/patton/shared/context/context.service.ts");
/* harmony import */ var _shared_rest_api_services_authentication_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../shared/rest-api/services/authentication.service */ "./src/app/patton/shared/rest-api/services/authentication.service.ts");
/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */







var styles_SetPassword = [_login_style_scss_ngstyle__WEBPACK_IMPORTED_MODULE_0__["styles"]];
var RenderType_SetPassword = /*@__PURE__*/ /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµcrt"]({ encapsulation: 2, styles: styles_SetPassword, data: {} });

function View_SetPassword_0(_l) {
    return _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](0, 0, null, null, 36, "div", [], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](1, 0, null, null, 33, "main", [["class", "widget-login-container"], ["id", "content"], ["role", "main"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](2, 0, null, null, 32, "div", [["class", "row"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](3, 0, null, null, 31, "div", [["class", "col-xl-4 col-md-6 col-10 offset-xl-4 offset-md-3 offset-1"], ["style", "text-align:center"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](4, 0, null, null, 30, "section", [["class", "widget widget-login animated fadeInUp"], ["style", "display:inline-block;box-shadow:2px 2px 20px 4px #bbb"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](5, 0, null, null, 3, "header", [], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](6, 0, null, null, 1, "h4", [], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµted"](-1, null, ["Set Password"])), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](8, 0, null, null, 0, "img", [["alt", "Patton logo"], ["src", "assets/img/patton-logo2.png"], ["style", "margin-top:.8em;margin-bottom:.8em"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](9, 0, null, null, 25, "div", [["class", "widget-body"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](10, 0, null, null, 1, "p", [["class", "widget-login-info"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµted"](-1, null, [" This is the first time you are logging into the Patton cloud. Please enter your password twice below. We recommend you to use a strong password with a mix of upper and lower case letters, digits, and other symbols. "])), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](12, 0, null, null, 22, "form", [["class", "login-form mt-lg parsleyjs"], ["data-parsley-priority-enabled", "false"], ["id", "set-password-form"], ["method", "post"], ["novalidate", ""]], [[2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null]], [[null, "submit"], [null, "reset"]], function (_v, en, $event) {
            var ad = true;
            var _co = _v.component;
            if (("submit" === en)) {
                var pd_0 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 14).onSubmit($event) !== false);
                ad = (pd_0 &amp;&amp; ad);
            }
            if (("reset" === en)) {
                var pd_1 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 14).onReset() !== false);
                ad = (pd_1 &amp;&amp; ad);
            }
            if (("submit" === en)) {
                var pd_2 = (_co.setPassword() !== false);
                ad = (pd_2 &amp;&amp; ad);
            }
            return ad;
        }, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](13, 16384, null, 0, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Éµangular_packages_forms_forms_bh"], [], null, null), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](14, 4210688, null, 0, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgForm"], [[8, null], [8, null]], null, null), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµprd"](2048, null, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ControlContainer"], null, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgForm"]]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](16, 16384, null, 0, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatusGroup"], [[4, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ControlContainer"]]], null, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](17, 0, null, null, 6, "div", [["class", "form-group"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](18, 0, null, null, 5, "input", [["autofocus", ""], ["class", "form-control"], ["data-parsley-minlength", "8"], ["data-parsley-required", ""], ["id", "pwd1"], ["name", "pwd1"], ["placeholder", "Please enter your new password"], ["type", "password"]], [[2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null]], [[null, "ngModelChange"], [null, "input"], [null, "blur"], [null, "compositionstart"], [null, "compositionend"]], function (_v, en, $event) {
            var ad = true;
            var _co = _v.component;
            if (("input" === en)) {
                var pd_0 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 19)._handleInput($event.target.value) !== false);
                ad = (pd_0 &amp;&amp; ad);
            }
            if (("blur" === en)) {
                var pd_1 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 19).onTouched() !== false);
                ad = (pd_1 &amp;&amp; ad);
            }
            if (("compositionstart" === en)) {
                var pd_2 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 19)._compositionStart() !== false);
                ad = (pd_2 &amp;&amp; ad);
            }
            if (("compositionend" === en)) {
                var pd_3 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 19)._compositionEnd($event.target.value) !== false);
                ad = (pd_3 &amp;&amp; ad);
            }
            if (("ngModelChange" === en)) {
                var pd_4 = ((_co.pwd1 = $event) !== false);
                ad = (pd_4 &amp;&amp; ad);
            }
            return ad;
        }, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](19, 16384, null, 0, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], [_angular_core__WEBPACK_IMPORTED_MODULE_1__["Renderer2"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], [2, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["COMPOSITION_BUFFER_MODE"]]], null, null), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµprd"](1024, null, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NG_VALUE_ACCESSOR"], function (p0_0) { return [p0_0]; }, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"]]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](21, 671744, null, 0, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgModel"], [[2, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ControlContainer"]], [8, null], [8, null], [6, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NG_VALUE_ACCESSOR"]]], { name: [0, "name"], model: [1, "model"] }, { update: "ngModelChange" }), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµprd"](2048, null, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControl"], null, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgModel"]]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](23, 16384, null, 0, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], [[4, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControl"]]], null, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](24, 0, null, null, 6, "div", [["class", "form-group"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](25, 0, null, null, 5, "input", [["class", "form-control"], ["data-parsley-equalto", "#pwd1"], ["id", "pwd2"], ["name", "pwd2"], ["placeholder", "Re-enter the password"], ["type", "password"]], [[2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null]], [[null, "ngModelChange"], [null, "input"], [null, "blur"], [null, "compositionstart"], [null, "compositionend"]], function (_v, en, $event) {
            var ad = true;
            var _co = _v.component;
            if (("input" === en)) {
                var pd_0 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 26)._handleInput($event.target.value) !== false);
                ad = (pd_0 &amp;&amp; ad);
            }
            if (("blur" === en)) {
                var pd_1 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 26).onTouched() !== false);
                ad = (pd_1 &amp;&amp; ad);
            }
            if (("compositionstart" === en)) {
                var pd_2 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 26)._compositionStart() !== false);
                ad = (pd_2 &amp;&amp; ad);
            }
            if (("compositionend" === en)) {
                var pd_3 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 26)._compositionEnd($event.target.value) !== false);
                ad = (pd_3 &amp;&amp; ad);
            }
            if (("ngModelChange" === en)) {
                var pd_4 = ((_co.pwd2 = $event) !== false);
                ad = (pd_4 &amp;&amp; ad);
            }
            return ad;
        }, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](26, 16384, null, 0, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], [_angular_core__WEBPACK_IMPORTED_MODULE_1__["Renderer2"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], [2, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["COMPOSITION_BUFFER_MODE"]]], null, null), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµprd"](1024, null, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NG_VALUE_ACCESSOR"], function (p0_0) { return [p0_0]; }, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"]]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](28, 671744, null, 0, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgModel"], [[2, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ControlContainer"]], [8, null], [8, null], [6, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NG_VALUE_ACCESSOR"]]], { name: [0, "name"], model: [1, "model"] }, { update: "ngModelChange" }), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµprd"](2048, null, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControl"], null, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgModel"]]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](30, 16384, null, 0, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], [[4, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControl"]]], null, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](31, 0, null, null, 3, "div", [["class", "clearfix"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](32, 0, null, null, 2, "div", [["class", "btn-toolbar float-right m-t-1"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](33, 0, null, null, 1, "button", [["class", "btn btn-primary btn-sm"], ["type", "submit"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµted"](-1, null, ["Set Password"])), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](35, 0, null, null, 1, "footer", [["class", "page-footer"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµted"](-1, null, [" \u00A9 Patton Electronics Co. 2017-2023 "]))], function (_ck, _v) { var _co = _v.component; var currVal_14 = "pwd1"; var currVal_15 = _co.pwd1; _ck(_v, 21, 0, currVal_14, currVal_15); var currVal_23 = "pwd2"; var currVal_24 = _co.pwd2; _ck(_v, 28, 0, currVal_23, currVal_24); }, function (_ck, _v) { var currVal_0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 16).ngClassUntouched; var currVal_1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 16).ngClassTouched; var currVal_2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 16).ngClassPristine; var currVal_3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 16).ngClassDirty; var currVal_4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 16).ngClassValid; var currVal_5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 16).ngClassInvalid; var currVal_6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 16).ngClassPending; _ck(_v, 12, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6); var currVal_7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 23).ngClassUntouched; var currVal_8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 23).ngClassTouched; var currVal_9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 23).ngClassPristine; var currVal_10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 23).ngClassDirty; var currVal_11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 23).ngClassValid; var currVal_12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 23).ngClassInvalid; var currVal_13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 23).ngClassPending; _ck(_v, 18, 0, currVal_7, currVal_8, currVal_9, currVal_10, currVal_11, currVal_12, currVal_13); var currVal_16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 30).ngClassUntouched; var currVal_17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 30).ngClassTouched; var currVal_18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 30).ngClassPristine; var currVal_19 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 30).ngClassDirty; var currVal_20 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 30).ngClassValid; var currVal_21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 30).ngClassInvalid; var currVal_22 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµnov"](_v, 30).ngClassPending; _ck(_v, 25, 0, currVal_16, currVal_17, currVal_18, currVal_19, currVal_20, currVal_21, currVal_22); });
}
function View_SetPassword_Host_0(_l) { return _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµeld"](0, 0, null, null, 1, "set-password", [["class", "login-page app"]], null, null, null, View_SetPassword_0, RenderType_SetPassword)), _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµdid"](1, 114688, null, 0, _set_password_component__WEBPACK_IMPORTED_MODULE_3__["SetPassword"], [_angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"], _shared_context_context_service__WEBPACK_IMPORTED_MODULE_5__["Context"], _shared_rest_api_services_authentication_service__WEBPACK_IMPORTED_MODULE_6__["AuthenticationRestApi"]], null, null)], function (_ck, _v) { _ck(_v, 1, 0); }, null); }
var SetPasswordNgFactory = /*@__PURE__*/ /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["Éµccf"]("set-password", _set_password_component__WEBPACK_IMPORTED_MODULE_3__["SetPassword"], View_SetPassword_Host_0, {}, {}, []);



/***/ }),

/***/ "./src/app/patton/login/set-password.component.ts":
/*!********************************************************!*\
  !*** ./src/app/patton/login/set-password.component.ts ***!
  \********************************************************/
/*! exports provided: SetPassword */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SetPassword", function() { return SetPassword; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var debug_levels__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! debug-levels */ "./node_modules/debug-levels/index.js");
/* harmony import */ var debug_levels__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(debug_levels__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _context_context_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @context/context.service */ "./src/app/patton/shared/context/context.service.ts");
/* harmony import */ var _rest__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @rest */ "./src/app/patton/shared/rest-api/index.ts");

// Framework


// Debugging

var debug = debug_levels__WEBPACK_IMPORTED_MODULE_3__('pcloud:login');
// Shared services

// Data model

var SetPassword = /** @class */ (function () {
    // --- initialization ------------------------------------------------------
    function SetPassword(router, context, authApi) {
        this.router = router;
        this.context = context;
        this.authApi = authApi;
    }
    //--------------------------------------------------------------------------
    SetPassword.prototype.ngOnInit = function () {
        return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () {
            return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                // Set up form validation.
                this.validator = jQuery('.parsleyjs').parsley();
                // Navigate to the login page if the user is not logged in.
                if (!this.context.userInfo.user) {
                    debug('User not logged in; navigating to login screen.');
                    this.router.navigate(['login']);
                }
                return [2 /*return*/];
            });
        });
    };
    // --- functions called by view --------------------------------------------
    SetPassword.prototype.setPassword = function () {
        return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, function () {
            var allLegalDocumentsAccepted;
            return tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"](this, function (_a) {
                switch (_a.label) {
                    case 0:
                        debug('Set password button pressed; validating form...');
                        this.validator = jQuery('.parsleyjs').parsley();
                        if (!this.validator.validate()) return [3 /*break*/, 2];
                        debug('Form data is valid');
                        // Change the user's password on the backend.
                        return [4 /*yield*/, this.authApi.changePassword('', this.pwd1)];
                    case 1:
                        // Change the user's password on the backend.
                        _a.sent();
                        allLegalDocumentsAccepted = this.context.userInfo.user.legal.reduce(function (result, document) { return result &amp;&amp; !document.isAcceptanceRequired; }, true);
                        if (allLegalDocumentsAccepted) {
                            debug('Navigating to the home page');
                            this.context.home();
                        }
                        else {
                            debug('The user needs to accept some legal documents');
                            this.router.navigate(['login', 'accept']);
                        }
                        return [3 /*break*/, 3];
                    case 2:
                        debug('Form data is not yet valid');
                        _a.label = 3;
                    case 3: return [2 /*return*/];
                }
            });
        });
    };
    return SetPassword;
}());

// --- eof -------------------------------------------------------------------


/***/ })

}]);</pre></body></html>